ChatRAG/appsettings.json
2025-06-22 19:58:43 -03:00

96 lines
2.5 KiB
JSON

{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning",
"Microsoft.AspNetCore.DataProtection": "None"
}
},
"VectorDatabase": {
"Provider": "Qdrant",
"MongoDB": {
"ConnectionString": "mongodb://admin:c4rn31r0@k3sw2:27017,k3ss1:27017/?authSource=admin",
"DatabaseName": "RAGProjects-dev-pt",
"TextCollectionName": "Texts",
"ProjectCollectionName": "Groups",
"UserDataName": "UserData"
},
"Qdrant": {
"Host": "192.168.0.100",
"Port": 6334,
"CollectionName": "texts-whats",
"GroupsCollectionName": "projects-whats",
"VectorSize": 384,
"Distance": "Cosine",
"HnswM": 16,
"HnswEfConstruct": 200,
"OnDisk": false
},
"Chroma": {
"Host": "localhost",
"Port": 8000,
"CollectionName": "rag_documents"
}
},
"Features": {
"UseQdrant": true,
"UseHierarchicalRAG": true,
"UseConfidenceAwareRAG": true,
"EnableConfidenceCheck": false
},
"ConfidenceAware": {
"EnableConfidenceCheck": true,
"UseStrictMode": true,
"ShowDebugInfo": false,
"DefaultDomain": "Servicos",
"Languages": {
"DefaultLanguage": "pt",
"AutoDetectLanguage": true
},
"DomainMappings": {
"software": "TI",
"sistema": "TI",
"funcionário": "RH",
"colaborador": "RH",
"financeiro": "Financeiro",
"contábil": "Financeiro",
"teste": "QA",
"qualidade": "QA"
}
},
"Confidence": {
"Thresholds": {
"overview": {
"MinDocuments": 2, // reduzido para chatbot
"MinRelevantDocuments": 1,
"MinOverallScore": 0.25 // mais flexível
},
"specific": {
"MinDocuments": 1, // bem flexível
"MinRelevantDocuments": 1,
"MinOverallScore": 0.3
},
"detailed": {
"MinDocuments": 1, // bem flexível
"MinMaxScore": 0.5,
"MinRelevantDocuments": 1,
"MinOverallScore": 0.3
}
},
"FallbackMessages": {
"pt": {
"NoDocuments": "Desculpe, não encontrei informações sobre esse serviço. Você pode falar com nosso atendente para mais detalhes.",
"Generic": "Não tenho informações suficientes sobre isso. Posso te conectar com um especialista?"
}
}
},
"PromptConfiguration": {
"Path": "Configuration/Prompts"
},
"AllowedHosts": "*",
"AppTenantId": "20190830-5fd4-4a72-b8fd-1c1cb35b25bc",
"AppClientID": "8f4248fc-ee30-4f54-8793-66edcca3fd20"
}