How leonelzalegas/promtior-challenge works
Project type and purpose
• This is a full-stack Retrieval-Augmented Generation (RAG) Q&A system built with LangChain, FastAPI, a static HTML/CSS/JS frontend, and a Chroma vector store.
• Offline: document ingestion, chunking, embedding, indexing.
• Online: retrieval + generation via a REST API.
File structure
• Top level: Dockerfile, .dockerignore, .gitignore, requirements.txt, ExtraInfo.pdf, README.md
• app/
– ingestion.py – crawls web + PDF via LangChain loaders, chunks, embeds, writes vectors to Chroma
– rag_chain.py – loads vector store, builds RetrievalQA chain, calls Gemini LLM
– __init__.py
• main.py – FastAPI server exposing REST endpoints
• static/index.html – simple JS frontend that calls the FastAPI backend
README for additional insights
• Embedding: GoogleGenerativeAIEmbedding
• Vector store: Chroma
• LLM: Google Gemini via langchain_google_genai
• Frontend – REST calls to FastAPI
• Deployment: Docker → AWS App Runner (ECR) & Railway
• Cache experiment discarded; no persistent cache layer