Documentation
¶
Overview ¶
Command sourcecode demonstrates indexing source code alongside documentation and searching across both. A Markdown document and a Go source file are indexed into the same collection; the source file is parsed with tree-sitter (pure Go) into declaration-level sections and automatically tagged with type=code and language=go metadata. The same query is then run three ways — unfiltered, code only, documentation only — showing how the metadata filter separates the two sources (e.g. to cross-reference a doc claim against its implementation).
No LLM and no external binary are required.
Usage:
go run ./example/sourcecode <storage-dir>
Click to show internal directories.
Click to hide internal directories.