1
stars
31
commits
Python
primary language
Jun 25, 2024
updated
Following this to create a RAG without langchain.
This project implements streaming and RAG over pdf, and gives answer according to the pdf provided. Implemented using:
I wanted to create a app that didn't use langchain, although using it would have been quite easy. Since langchain is a framework and hides away a lot of complexities behind its abstractions customizing it can be a pain.
Here is how it works in normal chat (It's a little slow in the first response):
https://github.com/shoebham/bRAG-ollama/assets/25881429/c5f99911-4019-4d0a-9711-1c1858d0e350
Here is how it works in Pdf chat, I used the famous overleaf software engineer resume:
https://github.com/shoebham/bRAG-ollama/assets/25881429/bd6d3c7c-0cae-40d7-918b-d77cc09a0e87
To run this just run
docker compose up --build
it will start front end and backend on the same host
Frontend: http://localhost:5173/
Backend: http://localhost:8000/docs (FastAPI)
31 commits
Python
62.1%
Svelte
25.8%
CSS
6.1%
JavaScript
2.5%
Dockerfile
2.4%
HTML
1.1%
1
stars
31
commits
Python
primary language
Jun 25, 2024
updated
Following this to create a RAG without langchain.
This project implements streaming and RAG over pdf, and gives answer according to the pdf provided. Implemented using:
I wanted to create a app that didn't use langchain, although using it would have been quite easy. Since langchain is a framework and hides away a lot of complexities behind its abstractions customizing it can be a pain.
Here is how it works in normal chat (It's a little slow in the first response):
https://github.com/shoebham/bRAG-ollama/assets/25881429/c5f99911-4019-4d0a-9711-1c1858d0e350
Here is how it works in Pdf chat, I used the famous overleaf software engineer resume:
https://github.com/shoebham/bRAG-ollama/assets/25881429/bd6d3c7c-0cae-40d7-918b-d77cc09a0e87
To run this just run
docker compose up --build
it will start front end and backend on the same host
Frontend: http://localhost:5173/
Backend: http://localhost:8000/docs (FastAPI)
31 commits
Python
62.1%
Svelte
25.8%
CSS
6.1%
JavaScript
2.5%
Dockerfile
2.4%
HTML
1.1%