Framework: Langchain
API : FastAPI
UI: Streamlit
GPU: RTX 2060 Max-Q
- Clone this repository:
git clone https://github.com/hotonbao/RAG-API-VietnamesePDF.git
cd RAG-API-VietnamesePDF- Setup environment:
!pip install -r requirements.txt- Dowload weight vinallama-7b-chat_q5_0.gguf : https://huggingface.co/vilm/vinallama-7b-chat-GGUF/tree/main
- Put all PDF files in data folder and model files in model folder:
RAG-API-VietnamesePDF/
└── data/
| ├──abc.pdf
| ├──abc2.pdf
| ├──....pdf
|
└── img/
└── models
| ├──all-MiniLM-L6-v2-f16.gguf
| ├──vinallama-7b-chat_q5_0.gguf
|
└──API.py
└──...py
- Run application:
streamlit run .\app.pyAfter processing successfully then:
- Run Q&A API:
python API.pyNow, you can use Q&A base on your private PDF data files.

