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

Deterministic retrieval and generation metrics for the Generic RAG adapter.

# `answer_confidence`

# `answer_relevance`

# `combined_rag_score`

```elixir
@spec combined_rag_score(map(), map(), keyword()) :: float()
```

# `evaluate_generation`

```elixir
@spec evaluate_generation(String.t(), String.t(), String.t()) :: map()
```

# `evaluate_retrieval`

```elixir
@spec evaluate_retrieval([map()], [term()]) :: map()
```

# `exact_match?`

# `extract_phrases`

```elixir
@spec extract_phrases(term()) :: MapSet.t(String.t())
```

Extract simple contiguous two- and three-token phrases.

# `faithfulness`

# `normalize_text`

```elixir
@spec normalize_text(term()) :: String.t()
```

Normalize text for exact-match style comparisons.

# `simple_bleu`

# `token_f1`

---

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