teacher is a portfolio project that demonstrates a full Retrieval-Augmented Generation (RAG) application with:
- a FastAPI backend
- a PostgreSQL vector store
- an OpenAI-powered answer generation flow
- a Streamlit frontend for testing the
/askendpoint
frontend/ Streamlit UI
backend/ FastAPI API, ingestion pipeline, database schema, and RAG logic
- Wikipedia-based dataset generation
- Retrieval-Augmented Generation (RAG)
- Vector search with PostgreSQL
- FastAPI-based API
- Streamlit demo frontend
- Docker-based local development
cd backend
make build
make up
Swagger UI:
http://localhost:8000/docs
cd frontend
make build
make up
Streamlit UI:
http://localhost:8501
- Ingest documents into the vector database
- Open the Streamlit frontend
- Send a question to the
/askendpoint - Review the generated answer and sources
- See backend/README.md for backend details
- See frontend/README.md for frontend details
