-
Notifications
You must be signed in to change notification settings - Fork 346
/
Copy pathconfig.ts
74 lines (72 loc) · 1.71 KB
/
config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
import { SupportedRegion, SystemConfig } from "../lib/shared/types";
import { existsSync, readFileSync } from "fs";
export function getConfig(): SystemConfig {
if (existsSync("./bin/config.json")) {
return JSON.parse(readFileSync("./bin/config.json").toString("utf8"));
}
// Default config
return {
prefix: "",
/* vpc: {
vpcId: "vpc-00000000000000000",
createVpcEndpoints: true,
},*/
privateWebsite: false,
certificate : "",
bedrock: {
enabled: true,
region: SupportedRegion.US_EAST_1,
},
llms: {
// sagemaker: [SupportedSageMakerModels.FalconLite]
sagemaker: [],
},
rag: {
enabled: false,
engines: {
aurora: {
enabled: false,
},
opensearch: {
enabled: false,
},
kendra: {
enabled: false,
createIndex: false,
enterprise: false
},
},
embeddingsModels: [
{
provider: "sagemaker",
name: "intfloat/multilingual-e5-large",
dimensions: 1024,
},
{
provider: "sagemaker",
name: "sentence-transformers/all-MiniLM-L6-v2",
dimensions: 384,
},
{
provider: "bedrock",
name: "amazon.titan-embed-text-v1",
dimensions: 1536,
default: true,
},
{
provider: "openai",
name: "text-embedding-ada-002",
dimensions: 1536,
},
],
crossEncoderModels: [
{
provider: "sagemaker",
name: "cross-encoder/ms-marco-MiniLM-L-12-v2",
default: true,
},
],
},
};
}
export const config: SystemConfig = getConfig();