https://github.com/thomasjanssen-tech/langchain-pinecone-rag
https://github.com/thomasjanssen-tech/langchain-pinecone-rag
augmented chatbot generation langchain llm pinecone python rag retrieval streamlit
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/thomasjanssen-tech/langchain-pinecone-rag
- Owner: ThomasJanssen-tech
- Created: 2025-02-12T14:31:40.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-12T19:01:26.000Z (over 1 year ago)
- Last Synced: 2025-02-12T20:21:52.241Z (over 1 year ago)
- Topics: augmented, chatbot, generation, langchain, llm, pinecone, python, rag, retrieval, streamlit
- Language: Python
- Homepage: https://thomasjanssen.tech/
- Size: 729 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
Retrieval Augmented Generation (RAG) with Streamlit, LangChain and Pinecone
Watch the full tutorial on my YouTube Channel
Prerequisites
- Python 3.11+
Installation
1. Clone the repository:
```
git clone https://github.com/ThomasJanssen-tech/LangChain-Pinecone-RAG.git
cd LangChain Pinecone RAG
```
2. Create a virtual environment
```
python -m venv venv
```
3. Activate the virtual environment
```
venv\Scripts\Activate
(or on Mac): source venv/bin/activate
```
4. Install libraries
```
pip install -r requirements.txt
```
5. Create accounts
- Create a free account on Pinecone: https://www.pinecone.io/
- Create an API key for OpenAI: https://platform.openai.com/api-keys
6. Add API keys to .env file
- Rename .env.example to .env
- Add the API keys for Pinecone and OpenAI to the .env file
Executing the scripts
1. Open a terminal in VS Code
2. Execute the following command:
```
python sample_ingestion.py
python sample_retrieval.py
python ingestion.py
python retrieval.py
streamlit run chatbot_rag.py
```