Product RAG enginePlatform overviewAI governanceAI chatbotBuild AI assistantsAI searchAI knowledge baseConnectors & integrationsMCP serverTake the product tour →
Engine & self-hosted RAGSuite EngineSelf-hosted / on-premiseRAGSuite Engine or self-hosted? →
Solutions SMEsHealthcarePublic sectorBanking & insuranceChatGPT alternativeAgencies & partnersAll solutions →
Case studies
Pricing
Resources GuidesBlogFree toolsAI data protectionEU AI ActTrust Center
Start free trial Book a demo
Guide · Local AI

Local LLM with Ollama: RAG on your own documents, step by step.

A local LLM on your own data means a language model runs on your own computer or server and answers questions from your documents. Ollama runs the model. For it to answer questions from your documents, it needs a search that finds the right passages for each question and passes them along: retrieval-augmented generation, or RAG. This guide shows how to connect Ollama to RAGSuite Enterprise running on your own server.

Your setup · all local
Language modelOllama on your server
RAG platformRAGSuite Enterprise, self-hosted
Priceon request
Ollama interfacelocalhost:11434
RAGSuite interfacelocalhost:9191
Data sent outnone, if both models run locally
Answers with sources

Key points

  • Ollama serves local language models through a standardised interface, locally at http://localhost:11434/v1.
  • On your server, RAGSuite Enterprise handles the RAG part: reading in documents, searching them and showing answers with sources. You select Ollama in the model settings as the provider “Custom LLM / Ollama”.
  • For no data to leave your network, both the chat model and the embedding model must run locally. If you use a hosted provider for either, questions and passages go there.
  • The most common mistakes: Ollama cannot be reached from a Docker container, the context window is too small, or reindexing is missing after the embedding model changes.
Basics

What Ollama and RAG do together.

Ollama alone does not know your documents. Only together with a RAG platform does a local model answer questions from your knowledge. The jobs are clearly split:

RAG with Ollamaall local
Your server
DocumentsIndexOllamaAnswer
0 outside connections

Ollama: the model

Ollama downloads open language models and runs them on your hardware. It writes answers but does not search a document collection.

Together: all local

When model, index and platform run on your own infrastructure, no request leaves your network. RAGSuite sends no telemetry.

Local AI for business →

Prerequisites

Prerequisites for RAG with Ollama.

ComponentWhat you needNote
RAGSuite EnterpriseA licence to run RAGSuite on your own server, air-gapped if you need itPrice on request
OllamaOllama installed, one chat model and one embedding model pulledInstall as described on ollama.com
HardwareEnough memory for the chosen model; a GPU speeds things up a lotSmall models also run on the CPU, but more slowly

RAGSuite on your own server →

Steps 1 and 2

Step by step: pull the models and set up RAGSuite.

First pull two models into Ollama: a chat model for answers and an embedding model for the search index. Replace the placeholders with models from the Ollama library whose licence allows business use.

In this setup, RAGSuite itself runs as RAGSuite Enterprise on your server. Local models through Ollama and fully offline operation are part of Enterprise.

Ollama · your server
$ ollama pull <chat-model>  # model for answers
$ ollama pull <embedding-model>  # model for the search index
$ ollama list  # check pulled models

Choosing open-source LLMs →Which local model fits →

Steps 3 to 7

Connect Ollama to RAGSuite.

Once RAGSuite is running on your server, you connect the two in the web interface. The model settings look roughly like this; your model names appear where the placeholders are.

Model Settingsexample
Provider
Custom LLM / Ollama
Hosted provider
Models
Chat model<your chat model>
Embedding model<your embedding model>
Search
Top K Results8
Similarity Threshold0.30
01

Create a project

Open http://localhost:9191 and create a project.

02

Choose the provider

In Model Settings, choose the provider “Custom LLM / Ollama” and add the address of your Ollama server, locally usually port 11434 with the path /v1. The documentation describes the exact field.

03

Assign the models

Choose your chat model and your embedding model. Only if both run locally do no passages leave your network.

04

Check the connection

Save the settings and ask a test question. If the chat answers with a source, Ollama is connected.

05

Connect sources

Upload documents or connect SharePoint, Confluence, Google Drive, Notion or Slack. The chat then answers questions from your documents, with sources.

You find the exact field names and further settings in the documentation at docs.ragsuite.de.

Common mistakes

Common mistakes with RAG and Ollama, and how to fix them.

ProblemCauseFix
RAGSuite in a container cannot reach OllamaInside the container, localhost points to the container itself, not to your server.Use the host’s address, with Docker Desktop for example host.docker.internal (on Linux also add host-gateway), and bind Ollama to a reachable address.
Ollama cannot be reached from another machineBy default Ollama listens only on 127.0.0.1, port 11434.Set another address with OLLAMA_HOST, for example 0.0.0.0:11434, and open the port only on the internal network.
Answers skip parts of the passages foundThe model’s context window is too small for the question and passages.Increase the context with OLLAMA_CONTEXT_LENGTH or retrieve fewer passages per question (Top K Results).
Hits are missing after a model changeThe search index was built with a different embedding model.Reindex the sources (“Reindex now” in the model settings).
Answers are very slowThe model runs on the CPU or is too large for the hardware.Choose a smaller model or use a GPU.
Answers in poor German or the wrong languageNot every model handles every language equally well.Choose a model with good quality in your language and test with your own questions.

Context window calculator →

Operations

From test to production.

A first test shows whether model and documents fit together. For team use, plan these points:

System healthyour server
Application & API:9090running
Interface:9191running
Search indexhybrid searchrunning
Language modelOllama · :11434running
0 outgoing connections to the vendor

Own server

Ollama and RAGSuite on a server in the company network, with a GPU if several people ask at the same time.

Multiple users

Several teams work in separate projects. Roles, SSO and a full audit log are part of RAGSuite Enterprise.

Updates

Schedule regular update windows for RAGSuite and Ollama. Database, settings and keys are kept.

Check quality

Test with real questions and check the sources. A small local model often answers more briefly than a large hosted model.

Self-hosted AI for business →For developers →

Checklist

Before you use RAG with Ollama in production.

Tick what is done. Nothing is stored.

Mihaela Angelova
Questions about Ollama and RAGSuite in your own network?Mihaela Angelova · Delivery & Onboarding
FAQ

Questions about RAG with Ollama.

What is Ollama?

Ollama is an open-source tool for downloading and running language models on your own hardware. It serves the models through a local, standardised interface that many tools can address.

How do I use a local LLM with my own data?

You need two building blocks: a local language model, for example through Ollama, and a RAG platform that reads in your documents, builds a search index and supplies the right passages for each question. With RAGSuite Enterprise on your server, you load a chat model and an embedding model in Ollama and select Ollama as the provider in the model settings. If both models run locally, no data leaves your network.

Can Ollama do RAG on its own?

No. Ollama runs the model but does not search a document collection. For RAG you need a platform that reads in documents, builds a search index and supplies the right passages for each question. RAGSuite does that, self-hosted with RAGSuite Enterprise.

What does RAG with Ollama cost?

Ollama itself is free. To run RAGSuite on your own server you use RAGSuite Enterprise, priced on request. Hardware, power and operations come on top. If you would rather not run servers yourself, RAGSuite Engine is hosted in Germany, from €39 a month billed yearly, plus VAT.

Which model should I use?

That depends on language, hardware and task. Look for good quality in your language, a licence that allows business use and a size that fits your memory. You can switch the model in RAGSuite later.

Does data leave my network?

Not if the platform, search index, chat model and embedding model run on your own infrastructure. RAGSuite sends no telemetry. If you choose a hosted provider for either model, questions and passages go to that provider.

Does it work without internet?

Yes. Fully offline operation is part of RAGSuite Enterprise, self-hosted on your own servers or air-gapped. Ollama only needs a connection to pull the models. After that, models and platform run without any outside connection. For isolated environments we support you as part of Enterprise.

Mihaela Angelova
Mihaela Angelova
Delivery & Onboarding

Local AI with your documents, with no data going out.

Ask about RAGSuite Enterprise for your server, or let Mihaela show you the way from test to production.