2023-05-26 01:36:15 +00:00
|
|
|
{
|
|
|
|
|
"Logging": {
|
|
|
|
|
"LogLevel": {
|
|
|
|
|
"Default": "Information",
|
|
|
|
|
"Microsoft.AspNetCore": "Warning"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"AllowedHosts": "*",
|
|
|
|
|
|
2023-06-11 23:46:02 +00:00
|
|
|
"Jwt": {
|
|
|
|
|
"Issuer": "botsharp",
|
|
|
|
|
"Audience": "botsharp",
|
|
|
|
|
"Key": "31ba6052aa6f4569901facc3a41fcb4a"
|
2023-05-27 01:58:31 +00:00
|
|
|
},
|
|
|
|
|
|
2023-07-22 11:35:30 +00:00
|
|
|
"Agent": {
|
2023-08-18 02:44:49 +00:00
|
|
|
"RouterId": "",
|
|
|
|
|
"DataDir": "agents",
|
|
|
|
|
"TemplateFormat": "liquid"
|
2023-07-22 11:35:30 +00:00
|
|
|
},
|
|
|
|
|
|
2023-06-19 16:33:27 +00:00
|
|
|
"Conversation": {
|
2023-08-10 04:54:50 +00:00
|
|
|
"DataDir": "conversations",
|
2023-06-27 18:31:13 +00:00
|
|
|
"ChatCompletion": "AzureOpenAI.Providers.ChatCompletionProvider"
|
2023-06-27 19:17:53 +00:00
|
|
|
// "ChatCompletion": "LLamaSharp.ChatCompletionProvider"
|
2023-06-19 16:33:27 +00:00
|
|
|
},
|
|
|
|
|
|
2023-05-27 01:58:31 +00:00
|
|
|
"LlamaSharp": {
|
2023-05-29 01:06:05 +00:00
|
|
|
"Interactive": true,
|
2023-08-07 10:21:31 +00:00
|
|
|
"ModelPath": "C:/Users/haipi/Downloads/llama-2-7b-chat.ggmlv3.q3_K_S.bin",
|
2023-06-27 23:36:50 +00:00
|
|
|
"MaxContextLength": 1024,
|
2023-06-03 17:01:38 +00:00
|
|
|
"NumberOfGpuLayer": 10
|
2023-05-28 16:30:27 +00:00
|
|
|
},
|
|
|
|
|
|
2023-06-07 01:10:09 +00:00
|
|
|
"AzureOpenAi": {
|
2023-05-28 16:30:27 +00:00
|
|
|
"ApiKey": "",
|
|
|
|
|
"Endpoint": "",
|
2023-06-19 18:32:49 +00:00
|
|
|
"DeploymentModel": {
|
|
|
|
|
"ChatCompletionModel": "",
|
|
|
|
|
"TextCompletionModel": ""
|
|
|
|
|
}
|
2023-06-03 02:07:30 +00:00
|
|
|
},
|
|
|
|
|
|
2023-06-17 13:32:39 +00:00
|
|
|
"MetaAi": {
|
|
|
|
|
"fastText": {
|
|
|
|
|
"ModelPath": "crawl-300d-2M-subword.bin"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
2023-08-07 10:21:31 +00:00
|
|
|
"MetaMessenger": {
|
|
|
|
|
"Endpoint": "https://graph.facebook.com",
|
|
|
|
|
"ApiVersion": "v17.0",
|
|
|
|
|
"PageId": "",
|
|
|
|
|
"PageAccessToken": ""
|
|
|
|
|
},
|
|
|
|
|
|
2023-06-03 02:07:30 +00:00
|
|
|
"Database": {
|
2023-08-10 04:54:50 +00:00
|
|
|
"Default": "FileRepository",
|
2023-06-03 02:07:30 +00:00
|
|
|
"MongoDb": {
|
2023-06-07 00:59:32 +00:00
|
|
|
"Master": "mongodb://localhost:27017/chat-ui"
|
2023-06-03 02:07:30 +00:00
|
|
|
},
|
2023-08-01 00:57:11 +00:00
|
|
|
"BotSharp": {
|
2023-06-27 18:31:13 +00:00
|
|
|
"Master": "Data Source=(localdb)\\ProjectModels;Initial Catalog=BotSharp;Integrated Security=True;Connect Timeout=30;Encrypt=False;Trust Server Certificate=False;Application Intent=ReadWrite;Multi Subnet Failover=False",
|
2023-06-11 23:46:02 +00:00
|
|
|
"Slavers": []
|
|
|
|
|
},
|
2023-08-14 18:16:35 +00:00
|
|
|
"FileRepository": "data",
|
2023-06-07 00:59:32 +00:00
|
|
|
"UseCamelCase": true,
|
2023-06-03 02:07:30 +00:00
|
|
|
"Assemblies": [ "BotSharp.Core" ]
|
2023-06-11 23:46:02 +00:00
|
|
|
},
|
|
|
|
|
|
2023-06-18 02:56:22 +00:00
|
|
|
"Qdrant": {
|
|
|
|
|
"Url": "",
|
|
|
|
|
"ApiKey": ""
|
|
|
|
|
},
|
|
|
|
|
|
2023-06-26 23:12:38 +00:00
|
|
|
"WeChat": {
|
2023-07-03 01:02:33 +00:00
|
|
|
"AgentId": "437bed34-1169-4833-95ce-c24b8b56154a",
|
2023-06-26 23:12:38 +00:00
|
|
|
"Token": "#{Token}#",
|
|
|
|
|
"EncodingAESKey": "#{EncodingAESKey}#",
|
|
|
|
|
"WeixinAppId": "#{WeixinAppId}#",
|
|
|
|
|
"WeixinAppSecret": "#{WeixinAppSecret}#"
|
|
|
|
|
},
|
|
|
|
|
|
2023-08-21 20:53:49 +00:00
|
|
|
"KnowledgeBase": {
|
|
|
|
|
"VectorDb": "MemVectorDatabase",
|
|
|
|
|
// "VectorDb": "QdrantDb",
|
|
|
|
|
"TextEmbedding": "fastTextEmbeddingProvider",
|
|
|
|
|
// "TextEmbedding": "LLamaSharp.TextEmbeddingProvider",
|
|
|
|
|
"TextCompletion": "AzureOpenAI.Providers.TextCompletionProvider",
|
|
|
|
|
// "TextCompletion": "LLamaSharp.TextCompletionProvider",
|
2023-08-28 15:24:43 +00:00
|
|
|
"Pdf2TextConverter": "PaddleSharp.Providers.Pdf2TextConverter"
|
2023-08-21 20:53:49 +00:00
|
|
|
},
|
2023-06-26 23:08:24 +00:00
|
|
|
|
2023-06-17 02:42:35 +00:00
|
|
|
"PluginLoader": {
|
|
|
|
|
"Assemblies": [
|
|
|
|
|
"BotSharp.Core",
|
2023-06-17 13:32:39 +00:00
|
|
|
"BotSharp.Plugin.AzureOpenAI",
|
2023-06-18 02:56:22 +00:00
|
|
|
"BotSharp.Plugin.MetaAI",
|
2023-06-19 18:32:49 +00:00
|
|
|
"BotSharp.Plugin.Qdrant",
|
2023-06-27 02:23:30 +00:00
|
|
|
"BotSharp.Plugin.PaddleSharp",
|
2023-06-26 23:12:38 +00:00
|
|
|
"BotSharp.Plugin.WeChat"
|
2023-06-19 16:33:27 +00:00
|
|
|
],
|
|
|
|
|
"Plugins": [
|
2023-06-26 23:08:24 +00:00
|
|
|
"KnowledgeBasePlugin",
|
|
|
|
|
"MemVecDbPlugin",
|
2023-06-27 19:17:53 +00:00
|
|
|
"LLamaSharpPlugin",
|
2023-06-19 16:33:27 +00:00
|
|
|
"AzureOpenAiPlugin",
|
|
|
|
|
"MetaAiPlugin",
|
2023-06-19 18:32:49 +00:00
|
|
|
"QdrantPlugin",
|
2023-06-26 23:12:38 +00:00
|
|
|
"PaddleSharpPlugin",
|
|
|
|
|
"WeChatPlugin"
|
2023-06-17 02:42:35 +00:00
|
|
|
]
|
2023-05-26 01:36:15 +00:00
|
|
|
}
|
|
|
|
|
}
|