A Retrieval-Augmented Generation (RAG) chatbot built using LangChain 1.x that enables conversational querying over the Indian Penal Code (IPC).
- PDF ingestion and text extraction
- Semantic chunking using RecursiveCharacterTextSplitter
- OpenAI embeddings
- Chroma vector database
- Conversational RAG pipeline
- Persistent vector storage
PDF β Chunking β Embeddings β ChromaDB β Retriever β LLM β Response
- Python
- LangChain 1.x
- OpenAI Embeddings
- ChromaDB
- What is the section related to unlawful assembly?
- What is the punishment for that?
- Which section deals with counterfeiting currency-notes?
- Clone this repository
- Install dependencies: pip install -r requirements.txt
- Set your OpenAI API key
- Run: python app.py
This chatbot is for educational purposes only and does not provide legal advice.