Skip to content

suya rag

suya rag queries Subaya’s retrieval layer: a hybrid of pgvector semantic search and lexical matching over curated and project-scoped knowledge. Use it to find and read reference material from the CLI.

Search the knowledge base. Combine scopes and tune retrieval with the flags below.

Terminal window
suya rag search "uart baud rate divisor"
suya rag search "clock tree" --scope curated --top-k 10
suya rag search "fifo depth" --scope project:42 --semantic-only
Flag Description
--scope <scope> Restrict the search scope, e.g. curated or project:42. Repeatable.
--top-k <N> Return at most N results.
--semantic-only Use semantic (vector) retrieval only, skipping the lexical pass.

Print the full body of a curated chunk by id (chunk ids come from search results).

Terminal window
suya rag read <chunk-id>

Show per-scope chunk counts and the last ingest timestamp.

Terminal window
suya rag status
  • CLI overview — global flags, including --json for piping results.