Searching knowledge (RAG)
Subaya keeps a searchable knowledge corpus — curated reference material plus your
own project content. The suya rag commands let you and your agents retrieve from
it: a hybrid search over a pgvector + lexical index, plus chunk reads and status.
Search
Section titled “Search”Search the corpus with a free-text query:
suya rag search "<query>"By default this is a hybrid search (semantic vector similarity combined with lexical matching). Useful options:
suya rag search "uart ring buffer" \ --scope curated \ --top-k 5 \ --semantic-only--scope <scope>— limit the search to a scope. Usecuratedfor the curated reference corpus, orproject:<id>for a specific project’s content. The flag is repeatable, so you can search across several scopes at once.--top-k <N>— return the top N results.--semantic-only— restrict to semantic (vector) matching, skipping the lexical side of the hybrid search.
Read a chunk
Section titled “Read a chunk”Search results are chunks. Read the full body of a curated chunk by its id:
suya rag read <chunk-id>Status
Section titled “Status”Check what’s indexed — per-scope chunk counts and the last ingest timestamp:
suya rag statusNext steps
Section titled “Next steps”- Workspaces & projects — project scopes for search.
- CLI: rag — the full
suya ragreference.