Skip to main content
Combine Agentset search with an LLM to generate answers grounded in your documents. This pattern retrieves relevant context from your namespace and passes it to the model.

Basic RAG pattern

Search your namespace, format the results as context, and generate a response.

Filtering context

Narrow results to specific documents using metadata filters.

Next steps

  • Agentic Search — Let the model search on its own for complex questions
  • Citations — Add source attribution to generated responses
  • API Reference — Search endpoint parameters and options