PDF Assistant is an interactive web application built with Streamlit that allows users to upload a PDF document, ask questions about its content, and receive answers using a conversational AI model. The tool leverages LangChain, OpenAI's GPT-3.5, and FAISS for text embedding and retrieval.
- Clone the Repository:
https://github.com/Unknown-Pplayer/LLM-Application.git
cd LLM-Application- Create a Virtual Environment:
python -m venv venv
source .venv/bin/activate # On Windows use `venv\Scripts\activate`- Install Dependencies:
pip install -r requirements.txt- Set Up Environment Variables:
You can find your OpenAI API Key https://platform.openai.com/api-keys
Create a .env File at the porject root directory and add the following
OPENAI_API_KEY=YOUR_KEY- Run the Application
streamlit run app.py