This is only a demo. It has only been fine-tuned on 2 of Singapore's acts (click to view original PDFs):
Ollama, langchain, chromadb, BeautifulSoup4, gpt4all, langchainhub, pypdf, chainlit
- Add PDF(s) of Singapore laws into
data
folder - On terminal, run
python3 load_data_vdb.py
- On terminal, run
chainlit run RAG.py
- Retrieval Augmented Generation (RAG)
- PDFs of Singapore laws: Singapore Statutes Online
- Code: Article by Plaban Nayak