Overview of building a retrieval augmented generation workflow
ingest_file()
, (3) Create a cache with create_cache()
, and (4) Query using query()
with your question and desired number of results.
query()
method handles both retrieval and generation in one step when you provide a question and set k
for the number of relevant chunks to retrieve.
query()
with natural language questions to get AI-generated answers with source citations.