This is a Streamlit app that allows users to upload PDF and TXT files, load them into a document index, and query the index using a Chatbot powered by the OpenAI API.
-
Clone the repository:
git clone https://github.com/velocius-ailabs/rag-poc.git
-
Navigate to the project directory:
cd rag-poc
-
Install dependencies:
pip install -r requirements.txt
- Run the Streamlit app:
streamlit run main.py
- Open your web browser and go to the link provided in the terminal
- Upload PDF and TXT files, and use the app to query the document index.
- Streamlit
- llama_index
- langchain
- OpenAI API
Create a .env file in the project root and add your OpenAI API key obtained from the OpenAI website:
OPENAI_API_KEY=your-api-key-goes-here