https://github.com/svpino/youtube-rag
https://github.com/svpino/youtube-rag
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/svpino/youtube-rag
- Owner: svpino
- License: apache-2.0
- Created: 2024-02-26T21:47:22.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-17T13:10:24.000Z (9 months ago)
- Last Synced: 2025-03-17T14:27:07.780Z (9 months ago)
- Language: Jupyter Notebook
- Size: 1.42 MB
- Stars: 234
- Watchers: 7
- Forks: 146
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - svpino/youtube-rag - (Jupyter Notebook)
README
# Building a RAG application from scratch
This is a step-by-step guide to building a simple RAG (Retrieval-Augmented Generation) application using Pinecone and OpenAI's API. The application will allow you to ask questions about any YouTube video.
## Setup
1. Create a virtual environment and install the required packages:
```bash
$ python3 -m venv .venv
$ source .venv/bin/activate
$ pip install -r requirements.txt
```
2. Create a free Pinecone account and get your API key from [here](https://www.pinecone.io/).
3. Create a `.env` file with the following variables:
```bash
OPENAI_API_KEY = [ENTER YOUR OPENAI API KEY HERE]
PINECONE_API_KEY = [ENTER YOUR PINECONE API KEY HERE]
PINECONE_API_ENV = [ENTER YOUR PINECONE API ENVIRONMENT HERE]
```