AskYourDocs is an intelligent document chatbot that leverages Retrieval-Augmented Generation (RAG) to help you interact with your documents effortlessly. Whether you need a summary, answers to specific questions, or graphical insights from your documents, AskYourDocs has you covered.
- Text & Graph Responses: Receive answers in clear text and captivating visual formats.
- RAG-Powered Document Preprocessing: Utilizes retrieval-augmented generation to ensure accurate, hallucination-free responses.
- Cited References: Access precise references for further reading, directly from the sourced pages or slides.
- Sleek User Interface: Enjoy an intuitive and visually appealing user experience.
- Batch Uploads: Effortlessly upload multiple files at once.
- Flexible File Types: Supports a variety of document formats including Word, PDF, PowerPoint, and text files.
- Fast Performance: Experience lightning-fast uploads and responses.
- Frontend: React, Bootstrap
- Backend: Flask
- Models: Gemini 1.5 Flash, Hugging Face’s all - MiniLM- L6 -v2
- Visit Hugging Face
- Log in or sign up for a new account
- Navigate to your account settings and locate the "Access Tokens" section
- Create a new token with 'write' permissions and copy the generated key
- Visit Google AI Studio
- Log in to your account
- Create a new API key or use an existing one, and copy the generated key
- Clone the repository:
git clone https://github.com/chhaviGupta986/AskYourDocs.git
- Navigate to the backend directory:
cd NLP_Backend
- Create a .env file:
echo "HUGGING_FACE_API_TOKEN='your_hugging_face_api_token'" > .env echo "GEMINI_API_KEY='your_gemini_api_key'" >> .env
- Install the required Python packages:
pip install -r requirements.txt
- Run the Flask backend:
python -m flask --app app run
- Navigate to the frontend directory:
cd ../frontend
- Install Node.js dependencies:
npm install
- Run the frontend application:
npm run dev
- Navigate to the application in your web browser
- Upload the files you want to process
- Use the chat interface to ask questions related to the uploaded files
- Enjoy AI-powered insights and visualizations based on your documents