How yh7dfhvbk4-code/ryy-projects works
This repository is a collection of five separate projects, not one integrated application. Their principal workflows are: submit ancient text for entity/relation extraction and graph construction; build a personal-document index and query it with RAG; use parking-management web interfaces; explore AI topics through a website; and run CNN-based zebra-crossing/obstacle recognition. The古籍 pipeline and RAG internals are supported by excerpts; other projects are represented from the file tree and README only, so their internal wiring is not inferred.
Main entry points: engine.py RAG引擎 · src/pipeline.py 文本流水线 · ingestion/pipeline.py 索引构建 · hybrid.py 混合检索
Components 34
古籍语义与图谱
- Web API
GuJi古籍翻译/src/web_api.py - 文本流水线
GuJi古籍翻译/src/pipeline.py - 文本清洗
GuJi古籍翻译/src/text_cleaner.py - 分词断句
GuJi古籍翻译/src/tokenizer.py - 实体识别
GuJi古籍翻译/src/ner/predictor.py - BERT-CRF模型
GuJi古籍翻译/src/ner/model.py - NER数据集
GuJi古籍翻译/src/ner/dataset.py - 少样本处理
GuJi古籍翻译/src/few_shot.py - 关系抽取
GuJi古籍翻译/src/relation_extractor.py - 知识图谱构建
GuJi古籍翻译/src/knowledge_graph.py
个人知识库 RAG
- RAG引擎
RAG/rag/engine.py - 索引构建
RAG/rag/ingestion/pipeline.py - 文档加载
RAG/rag/ingestion/loaders.py - 文本分片
RAG/rag/ingestion/chunking.py - 向量存储
RAG/rag/retrieval/vector_store.py - 文本嵌入
RAG/rag/retrieval/embeddings.py - BM25索引
RAG/rag/retrieval/bm25.py - 混合检索
RAG/rag/retrieval/hybrid.py - 结果重排
RAG/rag/retrieval/reranker.py - 上下文与提示
RAG/rag/generation/prompts.py - LLM客户端
RAG/rag/generation/llm.py
CNN视觉识别
- CNN识别模型
cnn 斑马线识别/cnn模型障碍物识别.py
Other components
- 文本用户
- Neo4j图数据库
- 知识库用户
- 兼容LLM服务
- 停车用户
- 网站访客
- 识别使用者
Connections 31
- 文本用户 → Web API: 提交文本
- Web API → 文本流水线: 调用流水线
GuJi古籍翻译/src/web_api.py - 文本流水线 → 文本清洗: 清洗文本
GuJi古籍翻译/src/pipeline.py - 文本流水线 → 分词断句: 分词断句
GuJi古籍翻译/src/pipeline.py - 文本流水线 → 实体识别: 识别实体
GuJi古籍翻译/src/pipeline.py - 实体识别 → BERT-CRF模型: 调用模型
GuJi古籍翻译/src/ner/predictor.py - 文本流水线 → 关系抽取: 抽取关系
GuJi古籍翻译/src/pipeline.py - 文本流水线 → 知识图谱构建: 构建图谱
GuJi古籍翻译/src/pipeline.py - 知识图谱构建 → Neo4j图数据库: 写入图数据
- NER数据集 → BERT-CRF模型: 提供训练数据
- 少样本处理 → NER数据集: 增强样本
GuJi古籍翻译/src/few_shot.py - 知识库用户 → RAG引擎: 提问建库
- RAG引擎 → 索引构建: 构建索引
RAG/rag/engine.py - 索引构建 → 文档加载: 加载文档
RAG/rag/ingestion/pipeline.py - 索引构建 → 文本分片: 切分文档
RAG/rag/ingestion/pipeline.py - 索引构建 → 向量存储: 写入分片
RAG/rag/ingestion/pipeline.py - 索引构建 → BM25索引: 重建索引
RAG/rag/ingestion/pipeline.py - 向量存储 → 文本嵌入: 向量编码
RAG/rag/retrieval/vector_store.py - RAG引擎 → BM25索引: 加载索引
RAG/rag/engine.py - RAG引擎 → 混合检索: 混合召回
RAG/rag/engine.py - 混合检索 → 向量存储: 向量检索
RAG/rag/retrieval/hybrid.py - 混合检索 → BM25索引: 关键词检索
RAG/rag/retrieval/hybrid.py - RAG引擎 → 结果重排: 重排候选
RAG/rag/engine.py - RAG引擎 → 上下文与提示: 组装上下文
RAG/rag/engine.py - RAG引擎 → LLM客户端: 生成回答
RAG/rag/engine.py - LLM客户端 → 兼容LLM服务: 请求补全
RAG/rag/generation/llm.py - 停车用户 → 前端应用: 使用界面
- 前端应用 → 后端应用: 请求服务
- 网站访客 → 网站主脚本: 访问网站
- 网站访客 → AI聊天界面: 使用聊天
- 识别使用者 → CNN识别模型: 提交图像