Expand description
Comindly index — the versioned LanceDB store (local dir or S3).
Tables: symbols, edges, file_facts, search, enrichment, flows, style_guide, repo_meta.
Each overwrite creates a new Lance version (prior versions retained), so the newest manifest
is the atomic “latest” pointer. Remote stores use the platform’s own credentials.
Structs§
- Indexed
Repo - A repository in the index: its name, the commit and branch indexed and where it is cloned from.
- Tables
- Open tables of one index for a long-running reader: LanceDB keeps their metadata and indexes in
its session cache and re-checks for a newer version at most every
fresh.
Functions§
- count_
rows - Read back
(symbol_count, edge_count)— proves the persisted tables are queryable. - count_
rows_ blocking - Blocking wrapper for the read-back count.
- graph_
versions - Blocking wrapper for
read_graph. Graph versions as(symbols version, edges version, UTC time), oldest first. Each graph write commits both tables, so the n-th versions of each belong together. - graph_
versions_ blocking - hybrid_
search - Native hybrid search: BM25 full-text + vector, fused by LanceDB’s RRF reranker. Returns
(rendered_symbol_id, relevance_score)best-first.query_vectormust match the index dim. - hybrid_
search_ blocking - latest_
versions - Read the current
(symbols, edges)versions — the atomic latest pointer. - latest_
versions_ blocking - Blocking wrapper for the current
(symbols, edges)versions. - read_
enrichment - Load persisted enrichment as
(symbol_id, summary, queries).Ok(None)if absent. - read_
enrichment_ blocking - Blocking wrapper for
read_enrichment. - read_
facts - Read persisted facts;
Nonefor indexes written before facts were stored. - read_
facts_ blocking - read_
flows - Load persisted flows as
(entry_id, narration, queries).Ok(None)if absent. - read_
flows_ blocking - read_
graph - Load the persisted org graph back into core types. This is the fast consumer path:
serve/exploreload once from Lance (local mmap or S3) instead of re-parsing. - read_
graph_ at - The graph at given
(symbols, edges)table versions, or the latest. - read_
graph_ blocking - read_
indexed_ repos - The repositories recorded in the index (indexes made before remotes were stored have none).
- read_
keys - The fingerprints
write_keysstored intable, by id. - read_
keys_ blocking - read_
packages - read_
packages_ blocking - read_
recipes - read_
recipes_ blocking - read_
repo_ commits - The indexed commit of each repository, by name.
- read_
repo_ commits_ blocking - Blocking wrapper for
read_repo_commits. - read_
repo_ meta - The commit a repo dataset was last indexed at, if recorded.
- read_
repo_ meta_ blocking - Blocking wrapper for
read_repo_meta. - read_
search_ vectors - Read
(symbol_id, vector)from the search table for incremental reuse.Ok(None)if absent. - read_
search_ vectors_ blocking - read_
source - The stored contents of
pathinrepo, if the index holds them. - read_
source_ files - Every stored
(repo, path, hash). - read_
style_ guide - Read the persisted per-repo style guides as
(repo, content)pairs. - read_
style_ guide_ blocking - Blocking wrapper for
read_style_guide. - write_
enrichment - Persist LLM enrichment (one-line summary + generated NL queries) as a Lance
enrichmenttable.queriesis a JSON array string. Returns the new version. No-op if empty. - write_
enrichment_ blocking - Blocking wrapper for
write_enrichment. - write_
facts - Persist per-file parse facts (JSON per file) so incremental runs can re-resolve everything.
- write_
facts_ blocking - write_
flows - Persist pre-generated flow walkthroughs:
(entry_id, narration_markdown, flow_questions). - write_
flows_ blocking - Blocking wrappers.
- write_
graph - Write the symbol/edge graph to a LanceDB dataset at
uri(e.g.s3://bucket/prefixor a local path). Returns the new(symbols, edges)versions. - write_
graph_ blocking - Blocking wrapper so the (sync) CLI can persist without an async main.
Returns the new
(symbols, edges)Lance versions. - write_
keys - What each generated text was written from, as
(id, fingerprint)intable; same fingerprint, same input, so the text is reused instead of asking the LLM again. - write_
keys_ blocking - write_
packages - Persist manifest/lockfile package rows (JSON per row).
- write_
packages_ blocking - write_
recipes - Persist derived conventions (e.g. history recipes), JSON per row.
- write_
recipes_ blocking - write_
repo_ commits - Record the indexed commit for several repos (multi-row
repo_meta) — used by the orglinkso an incremental rebuild knows which repos changed. - write_
repo_ commits_ blocking - Blocking wrapper for
write_repo_commits. - write_
repo_ meta - Record the commit a repo dataset was indexed at (single-row
repo_metatable). - write_
repo_ meta_ blocking - Blocking wrapper for
write_repo_meta. - write_
search_ table - Write the denormalized retrieval table (
symbol_id,text,vector) and build a native BM25 full-text index ontext. Hybrid search then fuses this FTS index with vector search using LanceDB’s own RRF reranker — no hand-rolled BM25. - write_
search_ table_ blocking - Blocking wrappers.
- write_
sources - Store
files: contents go intosource_blobsonce per hash (append-only, so unchanged files cost nothing), andsource_filesmaps each path to its hash. Withmerge, rows of repositoriesfilesdoes not cover are kept. Returns the files and the new contents written. - write_
style_ guide - Persist the inferred repo style guide (single-row
style_guidetable). Persist one style guide per repo as(repo, content)rows. - write_
style_ guide_ blocking - Blocking wrapper for
write_style_guide.