Files
course-agent-od/backend
pengxiao 38865b0f7d feat: system knowledge base management with admin/user role separation
- Auto-create system KBs from data/knowledge_base/ subdirectories on startup
- Upgrade existing user KBs to system KBs when matching directory found
- Admin can upload to system KBs (saved to knowledge_base dir)
- Regular users see only their own KBs on knowledge page
- Fix API permission checks for system KBs (list, detail, documents, update, delete)
- Add is_superuser to UserResponse and frontend User type
- Fix sidebar session menu visibility for long titles

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-27 16:42:28 +08:00
..

国土空间规划课程智能体后端服务

基于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