nex_docus/backend/app/api/v1
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
..
__init__.py Stage 2 & 3: Remove Graphy, integrate ZVec vectorization, and add knowledge base chat 2026-06-23 21:58:16 +08:00
auth.py 0.9.6 2026-03-11 15:27:52 +08:00
chat.py Stage 2 & 3: Remove Graphy, integrate ZVec vectorization, and add knowledge base chat 2026-06-23 21:58:16 +08:00
dashboard.py 优化了登录页 2026-01-14 11:35:50 +08:00
files.py Merge remote main with local model config features 2026-06-23 21:52:09 +08:00
git_repos.py v0.9.7 2026-04-09 01:03:57 +08:00
llm_model_configs.py v0.9.7 2026-04-09 01:03:57 +08:00
logs.py 0.9.2 2025-12-29 20:53:50 +08:00
menu.py 0.9.1 2025-12-20 19:18:59 +08:00
notifications.py 修改了部分bug 2026-01-28 19:55:01 +08:00
preview.py v0.9.7 2026-04-09 01:03:57 +08:00
projects.py v0.9.7 2026-05-09 10:45:30 +08:00
role_permissions.py 0.9.2 2025-12-23 13:02:10 +08:00
roles.py 0.9.2 2025-12-23 13:02:10 +08:00
search.py v0.9.7 2026-04-09 01:03:57 +08:00
shares.py v0.9.7 2026-05-11 09:48:19 +08:00
users.py 0.9.2 2025-12-29 20:53:50 +08:00