AboutWhat I doProjectsLabContact
  • RAG
  • EMBEDDINGS
  • LLM

RAG Document Assistant

RAG Document Assistant

A retrieval-augmented generation assistant over a document corpus: indexing, semantic retrieval and answers with source citations. Code at github.com/delcenjo/rag-document-assistant.

Retrieval-augmented generation over a folder of documents: plain-language questions and answers built only from what it found, citing the files they come from. The repo ships with the documentation of a made-up product (Nimbus Notes) so anyone can clone it and get a working pipeline without supplying data.

  • Recall@40.88
  • Answerscited
  • DemoHF Spaces

Retrieval gets its own evaluation

Before judging the generated answer you need to know whether the system finds the right chunks. On a hand-labelled set of questions it measures recall@4: for what fraction of questions does the correct source document appear in the top 4 results. On this corpus: 0.88.

Every answer with its source

Answers cite the file and score of every chunk used (pricing.md at 0.55, security.md at 0.31...). The goal is for every claim to be verifiable in one click, not to sound convincing.

Try it live

There is an interactive demo on HuggingFace Spaces with the sample corpus loaded: you ask a question and see the answer with its citations and scores. It is the fastest way to understand what the pipeline does inside.

RAG Document Assistant

Interactive demo hosted on HuggingFace Spaces

Shall we connect?

Let's talk: feedback, collaboration or an opportunity.

You can write to me about a project, a technical question, to give me feedback, or about an internship or a first junior role. I always reply.

Write to me

Next projects:

Built with

PythonPyTorchscikit-learnpandasNumPyJupyterHugging FaceLangChainFastAPIPydanticDockerGitHub ActionsPrometheusGrafanaMLflowPostgreSQLGitGitHubLinuxStreamlitSQLiteAnthropicBashPyPIOllamaPythonPyTorchscikit-learnpandasNumPyJupyterHugging FaceLangChainFastAPIPydanticDockerGitHub ActionsPrometheusGrafanaMLflowPostgreSQLGitGitHubLinuxStreamlitSQLiteAnthropicBashPyPIOllama
hola@jmwebsoluciones.com