Skip to content
Back to projects

LLM & RAG · 2026

AI Research Assistant

RAG research assistant: users upload PDFs, embeddings are stored and indexed, relevant chunks are retrieved by semantic search, and the LLM answers with citations. Ships with REST APIs and Swagger docs.

Model

  • Generation: Mistral (via API) with a grounded, citation-forcing prompt template
  • Retrieval: sentence-transformer embeddings over PDF chunks
  • Guardrail: the model answers only from retrieved context; missing evidence returns 'not in the documents'

Dataset

User-uploaded PDFs — parsed, cleaned, chunked with overlap and embedded into ChromaDB at upload time (no training data needed).

Results & metrics

Retrieval
top-k semantic search
Grounding
citations on every answer
Docs API
Swagger /docs

Deployment steps

  1. 1Upload PDFs through the REST endpoint; documents are chunked and embedded
  2. 2Store vectors + metadata in ChromaDB (persisted on disk)
  3. 3Query endpoint: embed the question, retrieve top-k chunks, call the LLM with citations
  4. 4Run with uvicorn; interactive Swagger docs at /docs

Tech stack

  • Python
  • FastAPI
  • LangChain
  • ChromaDB
  • Mistral
  • RAG
  • Swagger
M

drawing ideas into systems...