01 · Recuperación con citas verificables
01 · Retrieval with verifiable citations
gdpr-rag-citations · Python · pgvectorUn RAG legal que no puede señalar el artículo no sirve para nada, porque el abogado no puede comprobarlo. Así que la cita no es un adorno de la respuesta. La traté como la unidad que viaja por el sistema: el recuperador nunca devuelve texto suelto, devuelve número de artículo y pasaje literal.
A legal RAG that can't point at the article is worthless, because the lawyer can't check it. So the citation isn't decoration on the answer. I treated it as the unit that travels through the system: the retriever never hands back loose text, it hands back an article number and a verbatim passage.
Después monté el harness de evaluación, que es la parte que casi nadie hace. Y me dio un susto útil.
Then I built the eval harness, which is the part almost nobody bothers with. It gave me a useful scare.
| Recall de citas | Citation recall | 0.70 |
| Precisión | Precision | 0.575 |
| Fragmentos indexados | Indexed chunks | 125 |