📜 An AI-powered legal document assistant that allows users to upload PDFs and ask legal questions based on the document's content. This tool uses FAISS vector search for information retrieval and Groq's deepseek-r1-distill-llama-70b model for generating AI-powered responses.
ai-lawyer-chat/
├── app.py # Main Streamlit App
├── frontend.py # Handles UI components
├── vector_store.py # Handles vector embeddings and retrieval
├── document_processor.py # Loads & processes PDFs
├── model.py # Handles AI model interactions
├── utils.py # Utility functions
├── requirements.txt # Dependencies
├── vectorstore/ # Stores FAISS index
├── pdfs/ # Stores uploaded PDFs
└── .env # Environment variables
git clone https://github.com/Devmbm2/ai-lawyer-chat.gitcd ai-lawyer-chatpython -m venv venvsource venv/bin/activate (On Windows: venv\\Scripts\\activate)pip install -r requirements.txt.env in the project root and add the following:GROQ_API_KEY=your_groq_api_keyOLLAMA_MODEL=deepseek-r1:1.5byour_groq_api_key with your actual Groq API key.mkdir vectorstore pdfsModuleNotFoundError, ensure all dependencies are installed by running:pip install -r requirements.txt.pip install streamlit.vectorstore/ directory exists:mkdir vectorstore.2022 All Rights Reserved. Design by Muhammad Bilal Manzoor