ragrails retrieve embeds the query, searches the vector database, and prints the most relevant chunks. ragrails query uses the same retrieval path as the workflow command.
Retrieve Chunks
Rerank
Retrieve wide, rerank down. Keep--top-k higher than --rerank-top-k.
Options
Query rewriting is not exposed on
retrieve. Use ragrails chat --rewrite-query, SDK retrieval, or REST retrieval.Query
Use retrieval in the query workflow.
Chat
Generate answers from retrieved context.

