修改readme
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Failing after 6m22s

This commit is contained in:
2026-05-05 13:57:19 +08:00
parent 424484ac20
commit d050dcf835
2 changed files with 302 additions and 276 deletions

View File

@@ -78,6 +78,10 @@ rag_indexer/
├── index_builder.py # 索引构建主流水线(自定义父子块实现)
├── loaders.py # 文档加载器(多格式支持)
├── splitters.py # 文本切分器(递归/语义/父子块)
├── config.py # 配置管理
├── cli.py # 命令行接口
├── clear_qdrant.py # 清空 Qdrant 集合
├── reset_qdrant.py # 重置 Qdrant 集合
└── README.md # 本文档
```
@@ -87,14 +91,28 @@ backend/rag_core/
├── vector_store.py # Qdrant 混合存储(异步)
├── sparse_embedder.py # BM25 稀疏嵌入
├── embedders.py # 嵌入模型封装
├── store.py # PostgreSQL 文档存储
├── doc_store.py # PostgreSQL 文档存储
├── client.py # Qdrant 同步/异步客户端工厂
└── config.py # 配置管理
```
```
backend/app/rag/
── retriever.py # 混合检索器(异步)
── retriever.py # 混合检索器(异步)
├── rerank.py # llama.cpp 远程重排序器
├── query_transform.py # 多路查询改写生成器
├── fusion.py # RRF 倒数排名融合算法
├── pipeline.py # RAG 流水线编排
├── tools.py # LangChain Tool 封装
├── evaluate.py # 评估工具
└── README.md # 本文档
```
```
backend/app/model_services/
├── embedding_services.py # 嵌入服务
├── chat_services.py # LLM 服务
└── rerank_services.py # 重排序服务
```
## 🎯 演进路线与核心算法 (Roadmap)