This RAG (Retrieval-Augmented Generation) Q&A app allows users to upload a document and query it for relevant answers. Users can input their OpenAI API key, upload a document (PDF or text file), and ask questions related to the document content. The app will generate answers based on the uploaded document using OpenAI's language models.
This is a very basic implementation of a Retrieval-Augmented Generation (RAG) system. As such, it may have limitations in handling complex documents or answering nuanced queries. Future versions may include improved document processing, better query handling, and more. Please use the tool accordingly and fairly.
Enter Your OpenAI API Key (Mandatory): The app requires an OpenAI API key to generate responses. Enter your key in the input field provided at the start. If you don't have an OpenAI API key, create one.
Upload a Document: Click the upload button to select a document (PDF or text file). The app will process the content for querying.
Ask Questions: Enter your question in the query box related to the content of the uploaded document. The app will generate and display relevant answers based on the document content.
RAG_Project
│
├── app.py # Main Streamlit application
├── requirements.txt # List of dependencies
└── README.md # Documentation for the app (this file)