cd /news/large-language-models/ragit-chat-with-any-folder-of-docume… · home topics large-language-models article
[ARTICLE · art-46116] src=github.com ↗ pub= topic=large-language-models verified=true sentiment=↑ positive

Ragit – chat with any folder of documents using a local LLM

Ragit, a new command-line tool, enables users to chat with any folder of documents using a local LLM via Ollama. It implements Retrieval-Augmented Generation (RAG) by indexing files, creating embeddings, and retrieving relevant chunks for answers, all while keeping data local. The tool supports .txt, .md, .pdf, and .docx files and stores indexes in ~/.ragit.

read1 min views1 publishedJul 1, 2026
Ragit – chat with any folder of documents using a local LLM
Image: source

Local RAG CLI to chat with any folder of documents using Ollama.

cd ~/ragit
python3 -m pip install -e .

If your default Python is 3.14+, use Python 3.10–3.13 (recommended: 3.12) because some vector DB dependencies may not publish wheels for very new Python versions yet.

Make sure Ollama is installed and running:

ollama pull nomic-embed-text
ollama serve

Index a folder:

ragit index ./docs

Start chat:

ragit chat ./docs

List available Ollama models:

ragit models

Clear an index:

ragit clear ./docs

ragit

implements Retrieval-Augmented Generation (RAG):

  • It loads supported documents ( .txt

,.md

,.pdf

,.docx

) recursively. - It splits text into overlapping chunks (about 500 words with 50-word overlap).

  • It creates embeddings using Ollama ( nomic-embed-text

) and stores vectors in local ChromaDB at~/.ragit/<hash_of_path>/

. - During chat, it embeds each query, retrieves the top relevant chunks, and injects them into a prompt.

  • It streams an answer from a local Ollama chat model (prefers llama3.2

if available), then shows source chunks used.

  • All data stays local on your machine (Ollama + Chroma local persistence).
  • Indexes are stored under ~/.ragit/<hash_of_path>/

. - Files that cannot be parsed are skipped with a clear error message.

── more in #large-language-models 4 stories · sorted by recency
── more on @ragit 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/ragit-chat-with-any-…] indexed:0 read:1min 2026-07-01 ·