retrieval-graph-search
Operate M-flow retrieval modes, graph-routed Bundle Search, episodic tuning, and storage backend diagnostics.
- License 许可
- Apache-2.0
- 最近更新
- 2026-10-08
- Stars
- ★ 11
- Forks
- 3
01 前言 Front Matter
- name
- retrieval-graph-search
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Operate M-flow retrieval modes, graph-routed Bundle Search, episodic tuning, and storage backend diagnostics.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/api-reference.md9.7 KB
- 参考文档references/retrieval-architecture.md7.8 KB
- 参考文档references/storage-backends.md8.5 KB
- 参考文档references/troubleshooting.md9.4 KB
03 SKILL.md 正文
Retrieval graph search
Use this sub-skill when a task is about retrieving from already-memorized M-flow data:
- choose
RecallModeor simplifiedquery(mode=...)routing; - tune
SearchConfig,top_k,wide_search_top_k,triplet_distance_penalty, episodic display modes, hybrid search, time bonus, direct-hit/noise behavior, and adaptive weights; - understand graph-routed Bundle Search outputs over
Episode,Facet,FacetPoint,Entity, and semanticedge_text; - configure or diagnose graph, vector, relational, and cache storage backends without mutating data;
- troubleshoot empty/noisy search results, backend import/config failures, Cypher safety, or LLM endpoint issues that affect triplet answers.
Route elsewhere:
- add/memorize/ingest/delete/dataset core workflows → ../core-memory-api/SKILL.md;
- loader choice, content routing, custom pipeline stages, and
preferred_loaders→ ../ingestion-pipelines/SKILL.md; - API server, UI, MCP, Docker, auth, and service startup topology →
service-integrationsif available.
First decisions
- Confirm data is already memorized. Retrieval reads graph/vector/relational stores; if the user has not run ingestion/memorization, route to
core-memory-apioringestion-pipelinesbefore tuning search. - Pick the smallest recall mode. Use
EPISODICfor event/context recall,TRIPLET_COMPLETIONfor LLM answers over graph context,CHUNKS_LEXICALfor exact term lookup,PROCEDURALfor how-to/workflow memory, andCYPHERonly for explicit graph queries. - For noisy broad answers, tune output before changing stores. Prefer
display_mode="highly_related_summary"or"detail", lowertop_k, inspectverbose=True, and review Bundle Search scoring/direct-hit penalties in references/retrieval-architecture.md. - For backend switches, probe without connecting first. Run scripts/backend_config_probe.py to validate provider names, environment/config visibility, and optional import availability. It does not connect to remote services or mutate databases.
- Treat migrations as reference-only. Timestamp migration scripts are unsafe for routine search troubleshooting unless the user explicitly requests a dry-run migration plan; see references/storage-backends.md.
Safe bundled probe
From this sub-skill directory or with an explicit path:
python scripts/backend_config_probe.py --help
python scripts/backend_config_probe.py --json
python scripts/backend_config_probe.py --provider neo4j
python scripts/backend_config_probe.py --kind vector --provider pgvector --json
The probe reports recognized providers, selected environment/config keys, required fields, optional-extra hints, and missing Python imports. It masks secrets and never initializes graph/vector adapters, opens database connections, or writes data.
Reference map
- references/api-reference.md:
search(),query(), REST/CLI forms,RecallMode,SearchConfig, and episodic knobs. - references/retrieval-architecture.md: graph-routed Bundle Search, inverted cone topology, path costs, direct-hit penalty, adaptive scoring, output shapes.
- references/storage-backends.md: default SQLite/LanceDB/Kuzu stack, Neo4j/pgvector and other providers, env vars/extras, dry-run migration cautions.
- references/troubleshooting.md: empty/noisy results, missing extras, external service errors, Cypher gating, and LLM/embedding endpoint issues.
04 同仓库更多 Skills
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
python-api
Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP/mAP semantics, and source-style import diagnostics.
file-evaluation
Folder-based PASCAL VOC AP/mAP evaluation from ground-truth and detection text files.
object-detection-metrics
Guides legacy Object-Detection-Metrics PASCAL VOC AP/mAP evaluation from detection text folders and direct Python API classes.
nx-workspace-patterns
Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.