GenAI Legal Research Assistant specialized by Chain of AI Agents
AI can still hallucinate so, use it as Google not a Lawyer
- Python π
- PyPDF2 π
- LangChain π
- Google Generative AI π
- FAISS π
- Streamlit π
- π¬ Conversational AI: Get answers to your legal questions through a natural, conversational interface.
- π Streamlit Interface: Interactive web app for seamless user experience.
-
Ingest Data:
- Extract text from PDF files located in the
datasetfolder. - Split the text into chunks for better processing.
- Create a FAISS vector store with embeddings for efficient searches.
- Extract text from PDF files located in the
-
Ask Questions:
- Type your legal questions in the chat interface.
- Lawy uses the vector store to find relevant documents.
- Get accurate and context-aware legal advice based on Indian laws.
-
Clone the repository:
git clone https://github.com/bharathajjarapu/lawai.git cd lawai -
Install dependencies:
pip install -r requirements.txt
-
Set up environment variables:
- Create a
.envfile in the project root. - Add your Groq API key:
GROQ_API_KEY=your_api_key
- Create a
-
Run the application:
python run ingest.py streamlit run app.py
-
Interact with Lawy:
- Type your legal questions in the chat input.
- LawAI will provide answers based on the context and Indian laws.
Made with π‘& β€οΈ by Spoorthik06