knowledge-rag
Use this sub-skill when a task touches BiSheng knowledge libraries, knowledge spaces, QA libraries, file upload/parse states, document parser providers, the Load → Transform → Ingest pipeline, Milvus + Elasticsearch dual recall, MinIO file artifacts, or knowledge_celery worker behavior.
Start here
Run bundled helper commands from this sub-skill directory, or adjust the script path to this directory after import.
- Inspect config-shaped text before debugging parser/storage problems:
python scripts/check_knowledge_config.py --config <bisheng-checkout>/docker/bisheng/config/config.yaml
- Read references/workflows.md for ingestion, parser, retrieval, and worker workflows.
- Read references/troubleshooting.md for parser, object storage, vector index, queue, and permission symptoms.
Owned responsibilities
- Knowledge API/domain services under
src/backend/bisheng/knowledge/.
- RAG pipeline files under
knowledge/rag/, especially file pipelines, loader/provider selection, transformers, Milvus and Elasticsearch factories.
bisheng_langchain/rag/ retrievers, RAG pipeline, scoring, and rerank integration when used by BiSheng knowledge workflows.
- Knowledge Celery workers under
src/backend/bisheng/worker/knowledge/.
- Tests under
src/backend/test/knowledge/, test/knowledge/rag/, and safe config/service tests.
- Frontend knowledge-space or knowledge-library callers only at routing depth; UI rendering details belong to
frontend-apps.
Route sibling areas instead of duplicating them
- Use
identity-permissions-tenancy for space visibility, OpenFGA/ReBAC, approval, tenant filtering, and cursor permission scans.
- Use
workflow-engine for workflow RAG node execution outside the knowledge pipeline itself.
- Use
backend-core for generic FastAPI router/envelope/service conventions.
- Use
frontend-apps for Platform/Client knowledge pages and request wrappers.
- Use
deployment-maintenance for Docker storage service startup and production config rollout.
Non-negotiables
- Treat Load, Transform, and Ingest as separate stages when debugging: a loader success does not prove vector writes or preview cache.
- Preserve Milvus dense and Elasticsearch sparse/BM25 behavior when changing retrieval.
- Do not run external parser services, OCR downloads, or large document parsing as a smoke check unless the environment is approved.
- Use small fixtures for tests; do not require production MinIO/Milvus/ES for unit-level parser or service logic.
- Keep parser-provider credentials, endpoints, and object-storage secrets out of skill output and committed test fixtures.
1---2name: knowledge-rag3description: "Operate on BiSheng knowledge libraries, knowledge spaces, document4 ingestion, parser providers, RAG pipeline, Milvus/Elasticsearch recall, and5 knowledge workers."6disable-model-invocation: true7metadata:8 source: https://skillmd.com/skills/vectorspacelab/knowledge-rag9 disco-role: operating10license: Apache 2.011---1213# knowledge-rag1415Use this sub-skill when a task touches BiSheng knowledge libraries, knowledge spaces, QA libraries, file upload/parse states, document parser providers, the Load → Transform → Ingest pipeline, Milvus + Elasticsearch dual recall, MinIO file artifacts, or `knowledge_celery` worker behavior.1617## Start here1819Run bundled helper commands from this sub-skill directory, or adjust the script path to this directory after import.2021221. Inspect config-shaped text before debugging parser/storage problems:23 ```bash24 python scripts/check_knowledge_config.py --config <bisheng-checkout>/docker/bisheng/config/config.yaml25 ```262. Read [references/workflows.md](references/workflows.md) for ingestion, parser, retrieval, and worker workflows.273. Read [references/troubleshooting.md](references/troubleshooting.md) for parser, object storage, vector index, queue, and permission symptoms.2829## Owned responsibilities3031- Knowledge API/domain services under `src/backend/bisheng/knowledge/`.32- RAG pipeline files under `knowledge/rag/`, especially file pipelines, loader/provider selection, transformers, Milvus and Elasticsearch factories.33- `bisheng_langchain/rag/` retrievers, RAG pipeline, scoring, and rerank integration when used by BiSheng knowledge workflows.34- Knowledge Celery workers under `src/backend/bisheng/worker/knowledge/`.35- Tests under `src/backend/test/knowledge/`, `test/knowledge/rag/`, and safe config/service tests.36- Frontend knowledge-space or knowledge-library callers only at routing depth; UI rendering details belong to `frontend-apps`.3738## Route sibling areas instead of duplicating them3940- Use `identity-permissions-tenancy` for space visibility, OpenFGA/ReBAC, approval, tenant filtering, and cursor permission scans.41- Use `workflow-engine` for workflow RAG node execution outside the knowledge pipeline itself.42- Use `backend-core` for generic FastAPI router/envelope/service conventions.43- Use `frontend-apps` for Platform/Client knowledge pages and request wrappers.44- Use `deployment-maintenance` for Docker storage service startup and production config rollout.4546## Non-negotiables4748- Treat Load, Transform, and Ingest as separate stages when debugging: a loader success does not prove vector writes or preview cache.49- Preserve Milvus dense and Elasticsearch sparse/BM25 behavior when changing retrieval.50- Do not run external parser services, OCR downloads, or large document parsing as a smoke check unless the environment is approved.51- Use small fixtures for tests; do not require production MinIO/Milvus/ES for unit-level parser or service logic.52- Keep parser-provider credentials, endpoints, and object-storage secrets out of skill output and committed test fixtures.