Ingest documents into the pipeline
Documents to ingest
Optionaloptions: IngestOptionsIngestion options
Ingestion result with statistics
Retrieve relevant documents for a query
Search query
Optionaloptions: RetrievalOptionsRetrieval options
Matching documents with scores
Query with retrieval-augmented generation
User query
Optionaloptions: RetrievalOptionsRetrieval options
OptionalsystemPrompt: stringOptional system prompt for generation
Generated response with context and token usage
Clear all documents from the pipeline
Interface for RAG (Retrieval-Augmented Generation) pipelines.
RAG pipelines orchestrate the process of ingesting documents, storing them with embeddings, retrieving relevant context, and generating responses augmented with that context.
Example