- JavaScript
- Node.js
- Express.js
- MongoDB
- pdfReader
- Embedding API (OpenAI)
- Thunder Client (API CLIENT)
Start developing locally.
clone this repo
git clone https://github.com/Swoyam1/KnowledgeBase-RAG.git
Install all dependencies
# install server side deps
npm installCreate a SEARCH INDEX in MONGODB ATLASCreate a .env file in root folder and write these code
MONGO_URL = "PROVIDE YOUR MONGODB ATLAS URL" OPENAI_API_KEY = "PROVIDE YOUR OPENAI API KEY"
Finally to start the server execute this script
npm run dev
After starting the server it should be running on http://localhost:7000
POST: Post query to add vector embedding of PDF to the database
POST: Post query and get the answer to the query in response
# post query body element { "query" : "PROVIDE YOUR QUERY" }