Local LightRAG: A GraphRAG Alternative but Fully Local with Ollama

21 Oct 2024 · 19 min
18:54

A hands-on demo showing how to run LightRAG fully locally with Ollama. The presenter clones/updates the LightRAG repo, creates a Python virtual environment, installs from source (pip install -e .), and configures Ollama to run two models: an embedding model (Nomic Nomad embed-text) and an LLM (QIN2). They show how to increase the Ollama context window by creating a modified model file (qin2m) set to ~32,768 tokens, start both Ollama servers, and index a trimmed plaintext (A Christmas Carol) with 1200-token chunks. The demo covers embedding vector size (768), entity extraction/knowledge-graph creation (example produced 99 nodes and 31 edges from 20 chunks, taking ~10 minutes), four query modes (naive RAG, local/graph, global, hybrid) with example queries (“Who is Mr. Scrooge?”, “Who is Bob?”), and producing an HTML graph visualization. The video also discusses practical considerations: Ollama context/VRAM limits (default 2048 tokens), issues with model reloading per chunk (slow), API rate limits (Groq), VRAM management, alternative backends (Bedrock, Hugging Face), and that LightRAG is MIT-licensed.

Chapters

More from LARRUZ

8:49
youtube.com

OpenAI’s New AI Is Doing Things We Barely Understand

3d ago
5:38
youtube.com

DeepSeek Solved AI’s Memory Problem

5d ago
33:17
youtube.com

DeepMind's New AI Just Cracked The Code Of Life

1w ago
3:43
youtube.com

The Billion Dollar AI Advantage Is Disappearing

1w ago
5:14
youtube.com

Claude Opus 5.5 AI: An Incredible Leap Forward

3w ago
5:16
youtube.com

Yes, Jev Is Insane, But There's A Catch

3w ago
5:11
youtube.com

DeepSeek’s Insane New Architecture

4w ago
4:16
youtube.com

Claude Is Now Leaving Invisible Fingerprints In Its Text

1mo ago
9:18
youtube.com

I Never Thought I’d See This Happen

1mo ago
5:22
youtube.com

GPT-6 Astra Changes Everything

1mo ago
4:55
youtube.com

Claude Fable AI Is Much Stranger Than The Headlines Suggest

1mo ago
See all content