A Retrieval-Augmented Generation (RAG) system built with TypeScript. This project allows you to load a PDF, split it into chunks, and interactively ask questions to an AI assistant that references the PDF content.
- Load and process PDF content into text.
- Split text into chunks for efficient retrieval.
- Interactive Q&A loop with context-aware responses.
- Maintains a conversation history to provide continuity.
- Type-safe implementation using TypeScript.
-
Clone the repository:
git clone https://github.com/jmrl23/gemini-rag.git cd gemini-rag -
Provide necessary environment variables (create a
.envfile)check .env.example for reference
-
Install dependencies:
yarn install
-
Build application
yarn run build
-
RUN
yarn run start
-
Clone the repository:
git clone https://github.com/jmrl23/gemini-rag.git cd gemini-rag -
Provide necessary environment variables (create a
.envfile or put them directly insidedocker-compose.yaml)check .env.example for reference
-
RUN
docker compose run -it rag /bin/bash