This is a GenAI Streamlit application for RAG, allowing users to chat with agents using their own custom library of .pdfs.
- Process .pdf files using different approaches (selected by user)
- Easy setup and use
This application requires an installation of Python 3.12 or later.
-
Clone this repository to your local machine.
-
Navigate to the RAG_App directory.
cd RAG_App -
Install the required dependencies using pip in a virtual environment.
pip install -r requirements.txt
-
In the root directory, add your API keys to an
.envfile. -
Open the
.envfile (create one if not present) using any text editor and enter your API keys as shown below:export GOOGLE_GEMINI_API_KEY = "YOUR GOOGLE GEMINI KEY" export ANTHROPIC_API_KEY = "YOUR ANTROPIC API KEY" export OPENAI_API_KEY = "YOUR OPENAI API KEY"
If using Azure for OPEN AI, also include
export OPENAI_API_BASE = "YOUR OPENAI API BASE" export OPENAI_API_TYPE = "YOUR OPENAI API TYPE" export OPENAI_API_VERSION = "YOUR OPENAI API VERSION"
To run the application locally:
cd src
streamlit run app.pyTo run in a container:
docker build -t RAG_App .
docker run -p 8501:8501 RAG_AppAnd open the app at http://localhost:8501/
This project is licensed under the terms of the Apache License 2.0. Please see the LICENSE file for details.
This project is built upon and modifies PDFLucy. This repository contains modifications and additional functionality developed by Ryan McNeil.
For any questions or issues, please contact the maintainers, or raise an issue in the GitHub repository.