UNPKG

@restnfeel/agentc-starter-kit

Version:

한국어 기업용 CMS 모듈 - Task Master AI와 함께 빠르게 웹사이트를 구현할 수 있는 재사용 가능한 컴포넌트 시스템

48 lines (43 loc) 1.34 kB
// Context Management export { ConversationContextManager } from "./context-manager"; export type { ConversationConfig, MessageSummary } from "./context-manager"; // Prompt Management export { PromptManager } from "./prompt-manager"; export type { PromptTemplate, PromptContext } from "./prompt-manager"; // Chatbot export { RAGChatbot } from "./chatbot"; export type { ChatbotConfig, ChatResponse, ChatRequest } from "./chatbot"; import { RAGChatbot } from "./chatbot"; // Utility function to create a simple chatbot instance export function createRAGChatbot(config: { ragEngine: any; llmConfig: { apiKey: string; modelName: string; temperature?: number; maxTokens?: number; }; options?: { defaultPromptTemplate?: string; languageDetection?: boolean; retrievalConfig?: { topK?: number; minScore?: number; searchMethod?: "hybrid" | "vector" | "keyword"; }; }; }): RAGChatbot { return new RAGChatbot({ ragEngine: config.ragEngine, llmConfig: config.llmConfig, defaultPromptTemplate: config.options?.defaultPromptTemplate || "rag-default-en", languageDetection: config.options?.languageDetection ?? true, retrievalConfig: { topK: 5, minScore: 0.1, searchMethod: "hybrid", ...config.options?.retrievalConfig, }, }); }