Commit Graph

9 Commits (e6c92551eafcc3e97e9ced382325256a54a04d92)

Author SHA1 Message Date
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 fc617cf678 v0.9.7 2026-05-09 10:45:30 +08:00
mula.liu b78fc3b269 0.9.6 2026-03-11 15:27:52 +08:00
mula.liu 2af47195c1 添加了项目git仓库管理 2026-01-05 18:50:29 +08:00
mula.liu 00253cd2e7 0.9.3 2025-12-25 12:22:35 +08:00
mula.liu 535350fd6f 修改了初始化系统菜单 2025-12-24 11:16:39 +08:00
mula.liu 945aab0635 fix: 修正数据库初始化中的字段错误 2025-12-23 17:45:49 +08:00
mula.liu bc897706b3 0.9.2 2025-12-23 13:02:10 +08:00
mula.liu 1712031528 0.9.1 2025-12-20 19:18:59 +08:00