mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-25 17:54:34 +08:00
Move the entire RAG module (~2458 lines) from electron/main/ai/rag/ to @openchatlab/node-runtime. Includes chunking, embedding, vector store, and semantic pipeline. Key changes: - Config operations use injected aiDataDir instead of getAiDataDir() - Logger uses injectable RagLogger interface - LLM config provided via getLLMConfig/getAssistantConfig callbacks - Deduplicated cosineSimilarity into shared utils.ts - Electron rag/index.ts is now a thin wrapper (~128 lines)