Search

SwarmVault builds a SQLite FTS (Full-Text Search) index over all wiki pages during compilation.

How It Works

  1. During compile, all wiki pages are indexed into state/search.sqlite
  2. When you run query, the search index finds relevant pages
  3. Matching pages are passed as context to the LLM provider
  4. The provider generates an answer grounded in your wiki content

Search Index

The index is rebuilt on every compilation, ensuring it stays in sync with the wiki content. It supports:

  • Full-text search across all page content
  • Ranking by relevance
  • Fast lookups for the query pipeline

Query Persistence

When using --save with the query command, answers are persisted as wiki output pages in wiki/outputs/, making them searchable in future queries.