This Streamlit application provides a user-friendly interface for creating effective Retrieval Augmented Generation (RAGs) using LLamaParse for parsing, Qdrant for vector storage, and GROQ for querying. In this tutorial, you'll learn how to leverage these technologies to unlock insights from complex documents and build powerful RAGs.
The application app.py
utilizes Streamlit as the frontend framework and interacts with the following components:
- Qdranat Vector Store: A vector store for storing and querying vectors.
- LLM Groq Models: Dynamically loaded Groq models for processing queries.
- Llama Parse: A tool for parsing and processing documents.
- Python 3.9+
- pip
-
Clone the repository:
git clone <repository_url>
-
Navigate to the project directory:
cd <project_directory>
-
Install dependencies using pip:
pip install -r requirements.txt
-
Create a Python virtual environment (optional but recommended):
python -m venv venv
-
Activate the virtual environment:
- Windows:
venv\Scripts\activate
- Linux/macOS:
source venv/bin/activate
- Windows:
-
Set up environment variables:
- Create a
.env
file in the root directory. - Add the following variables to the
.env
file:LLAMA_CLOUD_API_KEY=your_llama_cloud_api_key QDRANT_URL=your_qdrant_url QDRANT_API_KEY=your_qdrant_api_key GROQ_API_KEY=your_groq_api_key
- Create a
-
Run the application:
streamlit run app.py
- After running the application, a Streamlit interface will be launched in your default web browser.
- Select a model from the dropdown list.
- Enter your search query in the text input field.
- Click on the "Submit" button to execute the query.
- View the results displayed below the query input.
This project is licensed under the MIT License.
Feel free to customize the descriptions, installation steps, and other sections according to your project's specifics.