源码引用已核验
核验范围:固定提交中的文件和行号;架构含义仍需评审。
- Celery broker configuration · 09a855d redis, api-redis, redis-worker
- Redis broker default · 09a855d redis, api-redis
- Retrieve context then generate answer · 09a855d api, api-vector, api-plugin
- Generate chat and return response stream · 09a855d caller, caller-nginx, nginx-api
- API and Worker are separate services · 09a855d api, worker, files
- Basic CHAT dispatch · 09a855d api
- Document embedding SQL cache · 09a855d worker-sql, worker-plugin
- Commit documents before submitting indexing · 09a855d api-sql, api-redis
- Download uploaded file for extraction · 09a855d files, worker-files
- File bytes and SQL metadata are separate · 09a855d web, api, files, sql, web-nginx, api-files, api-sql
- Extract, transform, persist segments, load index · 09a855d worker, sql, worker-files, worker-sql, worker-vector
- LLM and embedding model invocation · 09a855d worker-plugin, api-plugin
- Nginx API routes · 09a855d nginx, caller, web-nginx, caller-nginx, nginx-api
- High-quality paragraph vector indexing · 09a855d worker-vector
- HTTP client points at plugin daemon · 09a855d plugin, worker-plugin, api-plugin
- Plugin daemon service · 09a855d plugin
- Plugin daemon embedding HTTP contract · 09a855d plugin, worker-plugin, api-plugin
- Plugin daemon LLM HTTP contract · 09a855d plugin, api-plugin
- Model runtime delegates to plugin client · 09a855d api-plugin
- PostgreSQL deployment option · 09a855d sql
- Query embedding Redis cache · 09a855d redis, api-redis, api-plugin
- Selected internal dataset retrieval · 09a855d api-vector
- Semantic vector retrieval · 09a855d api-vector
- Storage and vector store defaults · 09a855d files, vector
- Indexing task entry points · 09a855d worker, redis-worker
- Self-hosted dispatch policy · 09a855d api-redis, redis-worker
- Direct Celery dispatch · 09a855d api-redis
- Task invokes IndexingRunner · 09a855d redis-worker, worker-files
- API-local thread and ChatAppRunner · 09a855d api
- Embed documents then write vectors · 09a855d vector, worker-vector, worker-plugin
- Embed query then search vectors · 09a855d vector, api-vector
- Web creates dataset documents · 09a855d web, web-nginx
探索架构
仅查询图中已定义的关系;无向边只参与邻接查询。
图表已就绪
关系明细(按输入声明,未经语义认证)
原尺寸滚动阅读 · 源码引用:verified · 语义复核:待复核 · 呈现可读性:待 visual-check 验收
| ID | 方向与端点 | 完整标签 | 关系类型 | 条件 | 协议 |
|---|---|---|---|---|---|
| web-nginx | Web 控制台 [web] → Nginx [nginx] | 上传 / 建文档 | http | Console request succeeds | |
| caller-nginx | API 调用方 [caller] ↔ Nginx [nginx] | 问答 / SSE | http | Basic CHAT; streaming response mode | |
| nginx-api | Nginx [nginx] ↔ API 服务 [api] | API 请求 / 响应 | http | Console API or /v1 route | |
| api-files | API 服务 [api] → 文件存储 [files] | 保存文件 | storage-access | Local uploaded text file; validation succeeds | |
| api-sql | API 服务 [api] → SQL 数据库 [sql] | 保存元数据 | database-access | Upload and document creation succeed | |
| api-redis | API 服务 [api] → Redis [redis] | 任务 / 查询缓存 | dependency | Index dispatch after document commit; query embedding cache access on semantic retrieval | |
| redis-worker | Redis [redis] → 索引 Worker [worker] | 领取索引任务 | task-delivery | Worker consumes Celery broker; self-hosted priority_dataset queue | |
| worker-files | 索引 Worker [worker] → 文件存储 [files] | 读取原文件 | storage-access | FILE source in extraction | |
| worker-sql | 索引 Worker [worker] → SQL 数据库 [sql] | 保存分段 | database-access | Successful paragraph indexing | |
| worker-vector | 索引 Worker [worker] → 向量库 [vector] | 写入索引 | vector-access | high_quality paragraph indexing; embedding succeeds | |
| api-vector | API 服务 [api] → 向量库 [vector] | 语义检索 | vector-access | Dataset configured and selected; internal high_quality semantic retrieval; filters permit results | |
| worker-plugin | 索引 Worker [worker] → 插件服务 [plugin] | 文档向量化 | model-invocation | Document embedding cache miss; model configured | |
| api-plugin | API 服务 [api] → 插件服务 [plugin] | Embedding / LLM | model-invocation | Query embedding cache miss and/or LLM invocation; validated normal CHAT path |