Retrieve context from a ragcat store
Usage
retrieve_rag_context(
query,
store_location = RAG_STORE_LOCATION,
top_k = 12L,
deoverlap = TRUE,
...
)Arguments
- query
Retrieval query.
- store_location
Path to a ragnar store.
- top_k
Number of chunks to retrieve.
- deoverlap
Logical passed to ragnar retrieval.
- ...
Additional arguments passed to
ragnar::ragnar_retrieve().
Examples
if (FALSE) { # \dontrun{
chunks <- retrieve_rag_context(
query = "What evidence is available for the project question?",
store_location = file.path("data", "example_rag_store", "rag_store.duckdb"),
top_k = 10
)
} # }
