Local RAG Using Llama 3, Ollama, and PostgreSQL
Build a fully local, private RAG Application with Open Source Tools (Meta Llama 3, Ollama, PostgreSQL and pgai)
๐ ๐ฅ๐ฒ๐น๐ฒ๐๐ฎ๐ป๐ ๐ฅ๐ฒ๐๐ผ๐๐ฟ๐ฐ๐ฒ๐
๐ Try pgai PostgreSQL extension โ https://github.com/timescale/pgai
๐ Github repo with code used in the video: https://github.com/timescale/private-rag-example
๐ Use Open-source LLMs in PostgreSQL with Ollama and pgai โ https://www.timescale.com/blog/use-open-source-llms-in-postgresql-with-ollama-and-pgai/
๐ What is pgai? โ https://www.timescale.com/blog/pgai-giving-postgresql-developers-ai-engineering-superpowers/
๐ Install TimescaleDB / PostgreSQL using Docker โ https://docs.timescale.com/self-hosted/latest/install/installation-docker/
๐ Ollama โ https://ollama.com/
๐ Nomic Embed โ https://www.nomic.ai/blog/posts/nomic-embed-matryoshka
๐ Meta Llama 3 โ https://www.llama.com
๐ Try pgai on Timescale free for 30 days โ https://tsdb.co/ai-signup
Join Hervรฉ Ishimye, a Developer Advocate at Timescale, as he demonstrates how to create a private Retrieval Augmented Generation (RAG) application using open-source tools. Learn to integrate Meta Llama 3.2 as your language model, leverage Ollama for model execution, and employ PostgreSQL as your vector database. Ensure data privacy by running these elements locally and benefit from enhanced control, speed, and reduced costs. Hervรฉ walks through the process of setting up your RAG application using Docker, configuring Olama and PostgreSQL, and embedding models effectively. This tutorial emphasizes data safety and the integration of tools like pgai and pgvector in your local environment.
๐ ๐๐ต๐ฎ๐ฝ๐๐ฒ๐ฟ๐
00:00 Why private RAG?
02:28 Tools for Building a Private RAG Application
03:02 Deep Dive into Ollama and PostgreSQL
06:09 Setting Up Your Local Environment
10:38 Implementing the RAG Application
14:31 Conclusion and Final Thoughts
๐ฏ ๐๐ฏ๐ผ๐๐ ๐ง๐ถ๐บ๐ฒ๐๐ฐ๐ฎ๐น๐ฒ
At Timescale, we see a world made better via innovative technologies, and we are dedicated to serving software developers and businesses worldwide, enabling them to build the next wave of computing. Timescale is a remote-first company with a global workforce backed by top-tier investors with a track record of success in the industry.
๐ป ๐๐ถ๐ป๐ฑ ๐จ๐ ๐ข๐ป๐น๐ถ๐ป๐ฒ!
๐ Website โ https://tsdb.co/homepage-24
๐ Slack โ https://slack.timescale.com
๐ GitHub โ https://github.com/timescale
๐ Twitter โ https://twitter.com/timescaledb
๐ Twitch โ https://www.twitch.tv/timescaledb
๐ LinkedIn โ https://www.linkedin.com/company/timescaledb
๐ Timescale Blog โ https://tsdb.co/blog-24
๐ Timescale Documentation โ https://tsdb.co/docs-24