Working demo - Watch video
clone this repository to work in local
bug report? feel free to create an issue
Requirements to run this on local machine
- Python - for backend
- Ollama - to use LLM on Local
- Docker - to run Qdrant storage
- Nodejs - for frontend & backend
- Qdrant Docker Image
Run this command to run docker image
docker run -p 6333:6333 -p 6334:6334 \
-v $(pwd)/qdrant_storage:/qdrant/storage:z \
qdrant/qdrant
Backend Setup
pull llm from ollama
ollama pull gemma:2b
ollama pull nomic-embed-text
run ollama
ollama serve
PYTHON BACKEND
Note:- website module is in development
Install dependencies
pip install pypdf qdrant_client sentence_transformers langchain_community langchain
run backend
python cool_api
NODEJS BACKEND
Install dependencies
pnpm install
run backend
pnpm dev
backend should be running on http://localhost:3009. open http://localhost:3009 in browser & you should get this result
{
"data": "server says : get request on time : 11:39:49"
}
now your backend is ready!
Package version used in python
- PyPDF2 - v3.0.1
- qdrant-client - v1.7.3
- sentence_transformers - v2.2.2
- langchain_community - v0.0.21
- langchain - v0.1.8
If there is braking changes in newer version make sure to match the version
Frontend Setup
install dependencies & run the app
website module not ready for frontend
cd frontend
pnpm install
pnpm dev
Give it star ⭐️
Thank you