Commit Graph

9 Commits (31cf2bfc1cb81b8a539669c27c510925b3a90e9a)

Author SHA1 Message Date
mula.liu 31cf2bfc1c v0.9.8 2026-07-24 15:37:22 +08:00
mula.liu e6c92551ea Stage 2 & 3: Remove Graphy, integrate ZVec vectorization, and add knowledge base chat
## Changes

### Stage 2: ZVec Integration
- Created `zvec_service.py` for MD file vectorization with Aliyun ZVec
- Added `document_vector.py` model for storing embeddings
- Integrated ZVec into file operations (create/update/delete MD files)
- Added `create_document_vector_table.sql` migration
- Background vectorization on file save, removal on file delete

### Stage 3: Knowledge Base Chat
- Created `chat_session.py` model for chat sessions and messages
- Implemented `rag_service.py` for RAG (vector retrieval + LLM generation)
- Added `chat.py` API endpoints (create sessions, send messages, list history)
- Created `Chat.jsx` frontend component with project/model selection
- Added `chat.js` API client
- Chat route integrated into App.jsx

### Cleanup
- Removed all graphy-related files (graphy/, graphy.py, graphy_task.py, etc.)
- Removed BUILD_GRAPH from enums (no longer needed)

### Database
- Created migration script for chat tables (ChatSession, ChatMessage)
- Created migration script for document vectors

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-06-23 21:58:16 +08:00
mula.liu cbef580776 预览页面增加了pdf导出 2026-02-26 17:52:09 +08:00
mula.liu e2211fbc9b 增加了项目转移 2026-02-09 18:08:38 +08:00
mula.liu b9f1b49572 修正了图片拷贝 2026-02-02 18:55:43 +08:00
mula.liu 08f4115889 修改兼容性 2026-01-22 19:52:29 +08:00
mula.liu 9a431fc046 0.9.5 2025-12-31 13:44:03 +08:00
mula.liu f5e1e8871a 0.9.2 2025-12-29 20:53:50 +08:00
mula.liu 1712031528 0.9.1 2025-12-20 19:18:59 +08:00