Building a Private RAG pipeline for YouTube content - using Ollama and Deepseek
To setup and run the code:
- python3 -m venv .venv
- source .venv/bin/activate
- pip3 install -U weaviate-client
- pip3 install -U ollama
- pip3 install langchain
- pip3 install langchain_community
- python3 ./ollama_weaviate_grounded.py
To download the deepseek model:
-
Visit the Ollama download page and download for your OS Instructions for MacOS: https://ollama.com/download/mac Click on the Download for macOS button. Once the download is complete, locate the .zip file in your ~/Downloads folder, double click the .zip and extract contents.
-
Once downloaded open a Terminal and pull the needed model: $ ollama pull deepseek-r1:latest
Reference: https://badrinatarajan.substack.com/p/from-videos-to-insight-rag-with-open