@restnfeel/agentc-starter-kit
Version:
한국어 기업용 CMS 모듈 - Task Master AI와 함께 빠르게 웹사이트를 구현할 수 있는 재사용 가능한 컴포넌트 시스템
24 lines (21 loc) • 891 B
JavaScript
"use client";
import { RAGChatbot } from './chatbot.js';
// Context Management
// Utility function to create a simple chatbot instance
function createRAGChatbot(config) {
var _a, _b, _c, _d;
return new RAGChatbot({
ragEngine: config.ragEngine,
llmConfig: config.llmConfig,
defaultPromptTemplate: ((_a = config.options) === null || _a === void 0 ? void 0 : _a.defaultPromptTemplate) || "rag-default-en",
languageDetection: (_c = (_b = config.options) === null || _b === void 0 ? void 0 : _b.languageDetection) !== null && _c !== void 0 ? _c : true,
retrievalConfig: {
topK: 5,
minScore: 0.1,
searchMethod: "hybrid",
...(_d = config.options) === null || _d === void 0 ? void 0 : _d.retrievalConfig,
},
});
}
export { RAGChatbot, createRAGChatbot };
//# sourceMappingURL=index.js.map