forked from microsoft/kernel-memory
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappsettings.json
More file actions
142 lines (142 loc) · 5.55 KB
/
appsettings.json
File metadata and controls
142 lines (142 loc) · 5.55 KB
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
{
"SemanticMemory": {
"Service": {
// Whether to run the web service that allows to upload files and search memory
// Use these booleans to deploy the web service and the handlers on same/different VMs
"RunWebService": false,
// Whether to run the asynchronous pipeline handlers
// Use these booleans to deploy the web service and the handlers on same/different VMs
"RunHandlers": false,
// Whether to expose OpenAPI swagger UI
"OpenApiEnabled": false,
},
// "AzureBlobs" or "SimpleFileStorage"
"ContentStorageType": "AzureBlobs",
// "AzureOpenAIText" or "OpenAI"
"TextGeneratorType": "AzureOpenAIText",
// Data ingestion pipelines configuration.
"DataIngestion": {
// - InProcess: in process .NET orchestrator, synchronous/no queues
// - Distributed: asynchronous queue based orchestrator
"OrchestrationType": "Distributed",
"DistributedOrchestration": {
// "AzureQueue", "RabbitMQ", "SimpleQueues"
"QueueType": "AzureQueue"
},
// Multiple generators can be used, e.g. for data migration, A/B testing, etc.
"EmbeddingGeneratorTypes": [
"AzureOpenAIEmbedding"
],
// Vectors can be written to multiple storages, e.g. for data migration, A/B testing, etc.
"VectorDbTypes": [
"AzureCognitiveSearch"
]
},
"Retrieval": {
// "AzureCognitiveSearch" or "Qdrant"
"VectorDbType": "AzureCognitiveSearch",
// "AzureOpenAIEmbedding" or "OpenAI"
"EmbeddingGeneratorType": "AzureOpenAIEmbedding"
},
"Services": {
"SimpleFileStorage": {
// Options: "Disk", "Volatile"
"StorageType": "Volatile",
"Directory": "tmp-files"
},
"SimpleQueues": {
// Options: "Disk", "Volatile"
"StorageType": "Volatile",
"Directory": "tmp-queues"
},
"SimpleVectorDb": {
// Options: "Disk", "Volatile"
"StorageType": "Volatile",
"Directory": "tmp-vectors"
},
"AzureBlobs": {
// "ConnectionString" or "AzureIdentity". For other options see <AzureBlobConfig>.
// AzureIdentity: use automatic AAD authentication mechanism. You can test locally
// using the env vars AZURE_TENANT_ID, AZURE_CLIENT_ID, AZURE_CLIENT_SECRET.
"Auth": "AzureIdentity",
// Azure Storage account name, required when using AzureIdentity auth
// Note: you can use an env var 'SemanticMemory__Services__AzureBlobs__Account' to set this
"Account": "",
// Container where to create directories and upload files
"Container": "smemory",
// Required when Auth == ConnectionString
// Note: you can use an env var 'SemanticMemory__Services__AzureBlobs__ConnectionString' to set this
"ConnectionString": "",
// Setting used only for country clouds
"EndpointSuffix": "core.windows.net"
},
"AzureQueue": {
// "ConnectionString" or "AzureIdentity". For other options see <AzureQueueConfig>.
// AzureIdentity: use automatic AAD authentication mechanism. You can test locally
// using the env vars AZURE_TENANT_ID, AZURE_CLIENT_ID, AZURE_CLIENT_SECRET.
"Auth": "AzureIdentity",
// Azure Storage account name, required when using AzureIdentity auth
// Note: you can use an env var 'SemanticMemory__Orchestration__DistributedPipeline__AzureQueue__Account' to set this
"Account": "",
// Required when Auth == ConnectionString
// Note: you can use an env var 'SemanticMemory__Orchestration__DistributedPipeline__AzureQueue__ConnectionString' to set this
"ConnectionString": "",
// Setting used only for country clouds
"EndpointSuffix": "core.windows.net"
},
"RabbitMq": {
"Host": "127.0.0.1",
"Port": "5672",
"Username": "user",
"Password": ""
},
"AzureCognitiveSearch": {
// "ApiKey" or "AzureIdentity". For other options see <AzureCognitiveSearchConfig>.
// AzureIdentity: use automatic AAD authentication mechanism. You can test locally
// using the env vars AZURE_TENANT_ID, AZURE_CLIENT_ID, AZURE_CLIENT_SECRET.
"Auth": "AzureIdentity",
"Endpoint": "https://<...>",
"APIKey": "",
},
"Qdrant": {
"Endpoint": "https://<...>",
"APIKey": "",
},
"AzureOpenAIText": {
// "ApiKey" or "AzureIdentity"
// AzureIdentity: use automatic AAD authentication mechanism. You can test locally
// using the env vars AZURE_TENANT_ID, AZURE_CLIENT_ID, AZURE_CLIENT_SECRET.
"Auth": "AzureIdentity",
"Endpoint": "https://<...>.openai.azure.com/",
"Deployment": "",
"APIKey": "",
// "ChatCompletion" or "TextCompletion"
"APIType": "ChatCompletion",
"MaxRetries": 10
},
"AzureOpenAIEmbedding": {
// "ApiKey" or "AzureIdentity"
// AzureIdentity: use automatic AAD authentication mechanism. You can test locally
// using the env vars AZURE_TENANT_ID, AZURE_CLIENT_ID, AZURE_CLIENT_SECRET.
"Auth": "AzureIdentity",
"Endpoint": "https://<...>.openai.azure.com/",
"Deployment": "",
"APIKey": "",
},
"OpenAI": {
"TextModel": "gpt-3.5-turbo-16k",
"EmbeddingModel": "text-embedding-ada-002",
"APIKey": "",
"OrgId": "",
"MaxRetries": 10
},
},
},
"Logging": {
"LogLevel": {
"Default": "Warning",
"Microsoft.AspNetCore": "Warning"
}
},
"AllowedHosts": "*"
}