AskMyDoc is a Streamlit-based application that enables users to upload documents and ask questions based on their content. It supports various document formats, including PDF, TXT, and leverages the ChatGroq API for AI-powered responses.
- Document Upload: Upload documents in PDF, TXT, or DOCX formats.
- Question Answering: Pose questions related to the content of the uploaded documents.
- AI-Powered Responses: Utilizes the ChatGroq API to provide accurate answers based on the document's content.
Before setting up the application, ensure you have the following:
- Python: Version 3.7 or higher.
- ChatGroq API Key: Sign up for a Groq account and generate an API key. Set this key as an environment variable named
GROQ_API_KEY
.
-
Clone the Repository:
git clone https://github.com/mmtq/AskMyDoc.git
cd AskMyDoc
-
Install Dependencies: Use pip to install the required Python packages:
pip install -r requirements.txt
-
Set Up Environment Variables: Ensure the GROQ_API_KEY environment variable is set:
export GROQ_API_KEY='your-groq-api-key-here'
-
Start the Application: Run the app.py script using Streamlit:
streamlit run app.py
-
Upload Documents: Through the Streamlit interface, upload the documents you want to interact with.
-
Ask Questions: Use the interface to ask questions related to the content of the uploaded documents.
Contributions are welcome! Please fork the repository and submit a pull request with your changes.