ingest_local
Build a knowledge graph from a local directory of docs and code files, indexing markdown links, wikilinks, and code imports for traversal and search.
Instructions
Build a knowledge graph from a local directory of docs and/or code files.
Docs (md/markdown/mdx/txt/wiki/rst/adoc) are indexed as-is with edges from markdown links and [[wikilinks]]; code files contribute import/include edges and searchable symbol headers. Returns site_id plus a graph-quality verdict: READY (traversable edges found) or NOT-READY (no links/imports; use search).
relations selects the derived relation dimensions, chosen per node:
"auto" (keyless: mentions_symbol/similar_to/sibling_of/supersedes/
shares_heading/shares_term/duplicate_of/coupled_with/co_cited_with),
"llm" (auto + an LLM router plus entity/embedding similarity), "all", "off",
or an explicit comma list. Omit it to use $SITE_KG_RELATIONS, or "auto"
when that is unset. Content-derived edges also run on corpora with no
cross-references; the verdict still reports NOT-READY for those.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| max_files | No | ||
| relations | No | ||
| respect_gitignore | No |