Let’s talk
← CompetenciesCompetency · 04

RAG and semantic search:the pipeline I designed

The RAG in my agents platform is a design, not a system in use: it is in construction, in phase 0. This page describes each stage of the pipeline and what does not exist yet.

ColmenaIn construction
StackPostgreSQL + pgvector · PyMuPDF · Tesseract · LangChain
Contents
  1. 01What RAG is
  2. 02The planned pipeline
  3. 03Status
01

What RAG is

RAG (retrieval-augmented generation) answers with information the model did not have: first the relevant chunks of the documents are searched for, then they are handed to the model together with the question. Semantic search uses embeddings, vectors that represent the meaning of a text, to find chunks similar to the question even if they share no words.

02

The planned pipeline

  • Input: unstructured documents such as PDF, Word, scans and images that need OCR, and email, TXT and MD.
  • Parser and OCR with PyMuPDF and Tesseract, then chunking and embeddings, in workers on Redis and Celery.
  • Storage in PostgreSQL with pgvector: documents are stored with a hash and versions, and chunks with their embeddings.
  • Retrieval: the Retrieval Tool fetches the top-k chunks, always within a tenant.
  • Answer: the RAG agent, routed by the LangGraph orchestrator, answers, and an output guardrail validates the answer and cites the source.
03

Status

NoteThe platform is in construction, in phase 0: architecture, no code published. There are no retrieval metrics because there is nothing to measure yet. The RAG integration in Nux, the Bonuxo assistant, is in progress and its LLM layer is switched off in production.
Where I applied it
Related competencies