Use Ollama With Your Local Documents

Datos comprobados el 23 de noviembre de 2026

Ollama runs the model; document search has to come from somewhere else. Its documentation offers embeddings and tool calling as building blocks. We found no built-in feature that indexes a folder. You can build your own RAG pipeline, or use an app that already has the index.

Three ways to do it

EffortGood for
Write your own RAG with Ollama embeddingsHighDevelopers who want control over chunking and storage
AnythingLLM with OllamaLowA chat app with documents added to workspaces
Linkly AI with OllamaLowSearching whole folders that change over time

Set up Linkly AI with Ollama

  1. Install Ollama and pull a model that supports tool calling. Ollama's own examples use qwen3.
  2. Install Linkly AI and add your folders.
  3. In Linkly AI, open Settings → AI Models and add Ollama as a provider.
  4. Ask a question in the chatbot. It searches your files, reads the relevant parts and answers with citations.

Details are in the chatbot guide. The documents, the index and the model all stay on your computer.

Why not put the documents in the prompt?

That works for a few pages. With many files the prompt no longer fits, and a longer prompt makes a local model slower. Searching first means the model only reads the parts that matter.

If answers are poor

  • Try a larger model. Choosing good search words is part of the work.
  • Raise the context length in Ollama so that results are not cut off.
  • Check that the file is indexed by searching for a phrase from it in Linkly AI.
Linkly AI

Linkly AI permite a tu agente buscar y leer los archivos de tu ordenador. Todas las funciones locales son gratis.

Descargar gratis

Páginas relacionadas