Use Ollama With Your Local Documents
2026年11月23日 に情報を確認

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
| Effort | Good for | |
|---|---|---|
| Write your own RAG with Ollama embeddings | High | Developers who want control over chunking and storage |
| AnythingLLM with Ollama | Low | A chat app with documents added to workspaces |
| Linkly AI with Ollama | Low | Searching whole folders that change over time |
Set up Linkly AI with Ollama
- Install Ollama and pull a model that supports tool calling. Ollama's own examples use
qwen3. - Install Linkly AI and add your folders.
- In Linkly AI, open Settings → AI Models and add Ollama as a provider.
- 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 を使うと、エージェントがパソコン内のファイルを検索して読めます。ローカル機能はすべて無料です。