62da8b3c58
- Fix knowledge_base_service calling async process_document synchronously in background threads — use asyncio.new_event_loop().run_until_complete() instead of bare call that returned unawaited coroutine - Same fix for _update_document and reindex_document - Replace ModeSelector with auto-detect: RAG mode when knowledge bases selected - Convert regenerateMessage to streaming (was synchronous API call) - Show "知识库检索模式" indicator above input when KB selected - Remove loadSessions side-effect from streaming onComplete - Fix chat page loading state to avoid flash - Improve forum page spacing and sizing Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
国土空间规划课程智能体后端服务
基于FastAPI和LangGraph的智能问答系统后端服务。
技术栈
- 框架: FastAPI + Uvicorn
- AI框架: LangChain + LangGraph
- 大模型: 硅基流动API (Qwen3-30B)
- 向量数据库: Chroma
- 数据库: PostgreSQL
快速开始
使用Docker(推荐)
docker-compose up -d
本地开发
uv sync
uv run main.py
API文档
启动服务后访问:http://localhost:8000/docs