Minimal Node.js RESTful API for a RAG system with ollama and chromaDB
196
A minimal Node.js RESTful server for a Retrieval-Augmented Generation (RAG) system using ChromaDB and Ollama!
This repo is intended to be used as a template to easily integrate any LLM with a basic RAG functionality into your MERN (or any other node.js) stack apps natively.
Docs/ folder.git clone https://github.com/vteam27/RagXOllama
cd RagXOllama
docker compose up
http://localhost:3000Ollama : To serve open source LLMs locally (one time setup)
ollama serve
ollama run llama3
ChromaDB Backend: Spin up the ChromaDB core
docker pull chromadb/chroma
docker run -p 8000:8000 chromadb/chroma
Add your PDF documents to Docs/
Install dependencies and run!
git clone https://github.com/vteam27/RagXOllama
cd RagXOllama
npm install
node app.js
Go to http://localhost:3000 to chat using a web demo.
Alternatively, you can run node pipeline.js to interact using terminal, easy development and testing.
8B llama3 4-bit quantized model served by ollama to generate the desired response.View the logs.txt file for the full output of my code.
With the help of Retrieval-Augmented Generation (RAG) we can achieve:
Content type
Image
Digest
sha256:65dcc1a3c…
Size
217.2 MB
Last updated
over 2 years ago
docker pull zedd27/ragxollama:tinyllama