# `GEPA.Adapters.GenericRAG`
[🔗](https://github.com/nshkrdotcom/gepa_ex/blob/v0.3.0/lib/gepa/adapters/generic_rag.ex#L10)

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.

# `t`

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

# `new`

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

---

*Consult [api-reference.md](api-reference.md) for complete listing*
