Files
course-agent-od/backend
pengxiao b8253b86a0 feat: global exception handler, concurrent VLM, and docker security
- Add global FastAPI exception handler for unhandled errors
- Add get_current_user_obj() dependency for cleaner auth patterns
- Switch VLM image description from serial to asyncio.gather concurrency
- Extract score conversion to shared score_utils module
- Docker: use env vars for passwords, remove hardcoded API key default
- Add .gitattributes and update .gitignore for tar.gz and tsbuildinfo

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-28 15:53:18 +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