GEPA.Adapters.GenericRAG (GEPA v0.3.0)

Copy Markdown View Source

Vector-store-agnostic RAG adapter.

Candidate components optimized by GEPA include:

  • query_reformulation
  • context_synthesis
  • answer_generation
  • reranking_criteria (reserved for custom pipelines)

The adapter uses deterministic retrieval/generation metrics so it can be tested without hosted services, while still allowing any GEPA.LLM model for answer generation.

Summary

Types

t()

@type t() :: %GEPA.Adapters.GenericRAG{
  config: term(),
  evaluator: term(),
  failure_score: term(),
  llm_model: term(),
  pipeline: term(),
  rag_pipeline: term(),
  vector_store: term()
}

Functions

new(opts \\ [])

@spec new(keyword() | map()) :: t()