Welcome to the Indian Constitution Q&A App! This application allows users to ask any question about the Constitution of India and get precise answers extracted directly from the document using state of the Art LLM and Langchain technologies.
- Interactive Q&A: Users can ask questions and get answers from the Constitution of India.
- Powered by Langchain and GPT: Utilizes advanced language models to provide accurate responses.
- Vector Space Storage: Uses Cassandra with AstraDB for efficient storage and retrieval of document vectors.
- Streamlit Interface: Simple and user-friendly interface built with Streamlit.
- Deployed on Hugging Face Spaces: Accessible at Indian Constitution Q&A App.
- Langchain: Framework for developing applications powered by language models.
- GPT (Generative Pre-trained Transformer): Advanced language model for understanding and generating human-like text.
- Cassandra: NoSQL database for storing vector spaces of the Constitution PDF.
- AstraDB: Cloud-native database service by DataStax, used for scalable and secure storage.
- Streamlit: Python library for creating interactive web applications.
- User Query: Enter a question related to the Constitution of India in the input box.
- Processing: The app processes the query using Langchain and GPT to understand the context and fetch relevant information.
- Vector Retrieval: Utilizes Cassandra with AstraDB to retrieve the vector space of the Constitution PDF for accurate answers.
- Response: The app displays the answer directly from the Constitution of India.
Follow these steps to get the app running on your local machine:
- Python 3.7 or higher
- Streamlit
- Langchain
- OpenAI GPT
- Cassandra
- AstraDB
- Clone the repository:
git clone https://github.com/your-username/indian-constitution-qa.git
- Navigate to the project directory:
cd indian-constitution-qa
- Install the required packages:
pip install -r requirements.txt
- Start the Streamlit app:
streamlit run app.py
- Open your web browser and go to
http://localhost:8501
to interact with the app.
The app is deployed on Hugging Face Spaces and can be accessed directly at Indian Constitution Q&A App.
We welcome contributions! Please follow these steps to contribute:
- Fork the repository.
- Create your feature branch:
git checkout -b feature/YourFeature
- Commit your changes:
git commit -m 'Add some feature'
- Push to the branch:
git push origin feature/YourFeature
- Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
For any inquiries or feedback, please contact:
- Amit Kumar
- Email: amitprataprana41@gmail.com
- LinkedIn: Amit Kumar
- GitHub: Amit Kumar
Thank you for using the Indian Constitution Q&A App!