Welcome to an interactive Q&A system using Streamlit! This app uses LangChain and Pinecone to answer questions from PDFs and web content, with advanced preprocessing and OpenAI embeddings. Get precise answers with a cutting-edge large language model (LLM). 🌐🤖
Explore your documents and web content effortlessly! 📄🔍✨
Clone the repository to your local machine:
git clone git@github.com:dirusanov/langchain-tutorial.git
cd langchain-tutorialInstall the required packages using pip:
pip install -r requirements.txtCreate a .env file in the root directory and add your Pinecone and OpenAI API credentials:
PINECONE_API_KEY=your_pinecone_api_key
PINECONE_ENV=your_pinecone_environment
OPENAI_API_KEY=your_openai_api_key
Place the PDF documents you want to process in the ./data directory. Ensure the directory follows this structure:
langchain-tutorial/
├── data/
│ ├── document1.pdf
│ ├── document2.pdf
│ └── ...
├── main.py
└── .envTo run the Streamlit application, execute the following command in your terminal:
streamlit run main.pyThis command will start the Streamlit server, and you can interact with the application through your web browser.
This project is licensed under the MIT License.