Open WebUI hybrid search and reranking

Hybrid search combines keyword and vector retrieval, and reranking reorders the results before the model sees them. This page explains the settings, the trade-offs and how to test whether answers improve.

On this page

Why teams turn on Open WebUI hybrid search and reranking

Teams turn on hybrid search with cross-encoder reranking when their knowledge base answers miss exact terms such as product codes, policy numbers or error strings. Open WebUI's retrieval features support hybrid BM25 plus vector search and cross-encoder reranking, but these settings are tuned per deployment rather than switched on by default, so someone has to choose the components, set the thresholds and test the results against real questions. A typical trigger is a support engineer who searches for an error string like a specific code and gets semantically similar but wrong passages, because pure vector similarity tends to blur exact identifiers. BM25 keyword scoring catches the literal match, and vector search still finds paraphrased questions, which is why the two are combined.

Each piece solves a different problem. BM25 helps when users type the exact identifier that appears in the source documents. Vector search helps when users ask in their own words and the document uses different phrasing. A cross-encoder reranker reads the query and each candidate passage together and reorders the shortlist, which helps when the right passage is retrieved but ranked below weaker ones. Reranking adds latency and compute, so teams should confirm the reranker model, where it runs and how much extra response time their users will accept before they enable it. A relevance threshold drops weak matches so the model does not answer from unrelated text, but a threshold set too high can hide valid sources.

None of these settings fixes poor source documents or weak extraction. If a PDF table was flattened into unreadable text, or a policy number was lost during OCR, no keyword or reranking setting will recover it, and the fix belongs upstream in extraction and chunking. Before changing retrieval, check that the right document appears in the knowledge base and that its text is readable. Then build a small set of real questions with known correct sources and measure answer quality before and after each change, so you can tell whether hybrid search and reranking actually improved results.

Configuration options and when each fits

This table compares the main retrieval settings in Open WebUI hybrid search and reranking, with the situations where each one fits and what it adds in latency or compute. Use it to decide which settings to enable first, then confirm exact labels and defaults in the version you run before changing anything in production.

OptionWhen it fitsLatency or compute costWhat to confirm
Hybrid search toggle (BM25 plus vector)Knowledge with exact identifiers, part numbers, policy codes or product names that pure semantic search missesAdds a keyword index pass alongside vector search, modest extra work per queryExact label and location of the setting in your version
Top-k candidate countLarge or mixed knowledge bases where the right passage may rank below the first few resultsHigher values send more candidates to the reranker and to the model context, raising latency and token useDefault value and whether it applies per query or per collection
Cross-encoder reranking modelAnswers that need precise ordering of close candidates, such as policy or clause lookupRuns a model over each candidate, so latency and CPU or GPU load grow with candidate countWhether it runs locally or through a hosted API, and its data handling terms
Local reranking modelRegulated data that must stay inside your infrastructureUses your own compute, with capacity planning and model updates handled by your teamSupported model list and hardware requirements in your version
Hosted reranking serviceTeams without spare inference capacity that accept an external processor for query and passage textAdds a network round trip and per-call charges set by the providerProvider data retention, region and contract terms before sending any content
Relevance thresholdKnowledge where off-topic passages would otherwise reach the model and produce confident but unsupported answersLittle compute cost, but a high value can return no context for valid questionsScore scale used by your version and how to test threshold values
Vector database choiceSingle-replica or small deployments can use the default store, while multi-replica deployments need an external storeHybrid behavior and throughput depend on the store, and the scaling guide warns the default ChromaDB will crash in multi-process setupsWhich of the 13 supported vector databases offers the hybrid path you need, and how it is configured

Setup sequence with checks for hybrid search

This sequence turns on BM25 plus vector hybrid search and cross-encoder reranking in a controlled order, with a check after each step so problems are caught before users see changed answers. It ends with a test knowledge base that shows whether retrieval behaves as intended.

  1. Confirm version, install method and replica layout

    The platform engineer records the Open WebUI version in use, the install method (Docker, Docker Compose, Kubernetes with Helm, or pip install open-webui followed by open-webui serve) and whether more than one replica or worker runs. Hybrid search settings are read from the running instance, so the team also checks the release notes for the version it plans to run, starting from the project's releases page. Done means the version, install method and replica count are written in the change record and match what the admin panel reports. If the deployment has several replicas, confirm Redis and shared file storage are already in place before continuing, since the scaling guide requires both.

  2. Confirm the vector database supports the retrieval path

    The engineer checks which vector database the instance uses and confirms in the Open WebUI features documentation that it supports the hybrid BM25 plus vector path and reranking for the chosen configuration. The default ChromaDB is not suitable when several workers or replicas run, so an external store such as PGVector, Qdrant, Milvus or Elasticsearch may be required. Done means a written confirmation that the store is supported for hybrid search in this version, and that the connection from every replica has been tested with a simple read and write. Ask the vendor or the project maintainers to confirm any capability not stated in the documentation.

  3. Select and load the embedding model

    The team chooses the embedding model that will serve the knowledge bases and confirms it is reachable from the Open WebUI instance, whether through Ollama or an OpenAI-compatible API. Embedding vectors are tied to the model, so this choice must be settled before any collection is indexed, and changing it later means re-indexing every knowledge base. Check: submit a short test string through the embedding endpoint and confirm a vector of consistent length returns. Record the model name and version in the change record so the same model is used on every replica.

  4. Configure the reranking model and confirm it loads

    The engineer sets the cross-encoder reranking model in the retrieval settings and restarts or reloads the instance as the configuration requires. The check is that the reranker loads without errors in the logs and that a reranked query completes on every replica, not only the one the admin session reached. If the reranker fails to load, the sequence stops here, because hybrid results will not be reranked as expected. Confirm the reranker's model source and licence terms with its publisher before it is used on private data.

  5. Enable hybrid search and set relevance thresholds

    In the retrieval settings, the admin enables hybrid BM25 plus vector search, sets the number of results retrieved and the relevance threshold that filters weak matches. Start with the defaults and change one value at a time so each effect can be attributed. Check: the settings page shows hybrid search as enabled after save, and a query in a chat with a knowledge base returns citations, confirming retrieval runs end to end. Record every setting value, because the same values must be applied to the production instance.

  6. Re-index test knowledge bases

    The team creates two or three test knowledge bases from documents that are already approved for use, then re-indexes or re-runs retrieval so chunks pass through the new settings. Existing collections do not always pick up retrieval changes on their own, so the engineer confirms in the knowledge base view that the indexing job finished for every file, with no failed documents. Done means every test file shows a completed status and the chunk count is recorded for later comparison.

  7. Run known-term and paraphrase queries

    Before any user sees the change, a reviewer writes a fixed set of queries that includes exact product codes, rare names and identifiers (for keyword matching) and natural-language questions with different wording (for vector matching). For each query, the reviewer records whether the expected document appears in the top results and which result ranked first. The check is that a known-term query returns the document that contains that term, and that paraphrased questions return the same source. Failures are logged with the setting that was changed, so the team can decide whether to adjust the threshold, the result count or the chunking before moving the settings to production.

How the setup changes by deployment shape

On a single Docker or Docker Compose host, hybrid search, the vector store and the reranker all run inside one Open WebUI process on one machine. This shape suits evaluation and small teams, and the retrieval setup stays simple as long as the data sits where it should.

  • Vector store: The default ChromaDB can serve a single process. Confirm that its data directory sits on a named volume that your backup job covers.
  • Database: SQLite is acceptable here only when the database file sits on locally attached SSD or NVMe storage. Check that the volume mount points to local disk and not to network storage.
  • Reranker cache: The cross-encoder model downloads on first use. Keep its cache path on a persistent volume so that container recreation does not trigger a fresh download. Confirm the cache path for your release.
  • Index after changes: Ask whether changing hybrid search or reranking settings re-indexes existing knowledge bases in your version, and schedule a test run after each change.
  • Sign-out behavior: Without Redis, signing out does not revoke tokens. They stay valid until they expire, by default after 4 weeks, so set your session expectations accordingly.

Before you go live, recreate the container and confirm that the database, vector store, model cache and uploads all survive, then run the same test query before and after the restart.

How to measure whether answers improve

Hybrid search and reranking change which chunks reach the model, so the only reliable way to judge them is a repeatable test on your own knowledge bases. The practices below turn that test into a routine you can run before and after every change. No accuracy figures are claimed here, so set your own acceptance criteria before you start.

Build a fixed question set

Collect questions from real user queries in the knowledge bases you plan to change, removing sensitive content before the set is shared. Keep the set fixed so every run tests the same inputs. Include short keyword queries, long natural-language questions and questions with exact identifiers such as product codes or policy numbers, since these are the cases where BM25 and vector search behave differently. Store the set in version control so changes to it are visible.

Record expected source documents

For each question, record which document and section should answer it. Without this, you can only judge answers by reading them, which is slow and inconsistent between reviewers. Ask a subject matter owner to confirm each expected source. Note questions where no document should answer, because a good system should decline or say it lacks information rather than invent an answer.

Open WebUI features

Compare answers on the same corpus

Run the fixed set against the same knowledge base with hybrid search and reranking off, then on, changing one setting at a time. Hold the model, system prompt, embedding model and chunking constant so the difference comes from retrieval. Save the full answers and retrieved sources for each run so reviewers can compare them side by side.

Track whether the right chunk appears

Separate retrieval quality from answer quality by checking whether the expected source appears among the chunks returned for each question, and at what rank. A missing chunk means the fault is in retrieval, search tuning or chunking. A present chunk with a wrong answer points to the prompt or the model. Record this for every run so the two failure types are not mixed.

Review failures by query type

Group failed questions by type, such as keyword lookups, exact identifiers, multi-part questions and questions with no answer in the corpus. Hybrid search often helps keyword and identifier queries, while reranking can change which passages survive a relevance threshold. Reviewing by group shows whether a change helps one type while hurting another, which an overall score would hide.

Rerun after each configuration change

Rerun the full set after every change to the embedding model, chunk size, overlap, reranker or relevance threshold, and compare against the last accepted baseline. Changing an embedding model requires re-indexing every knowledge base, so plan those runs as part of the change. Agree on acceptance criteria in advance, and confirm current behavior of each setting in the release notes for your Open WebUI version.

Open WebUI releases

Questions buyers ask about hybrid search and reranking

How much does it cost to add hybrid search and reranking to Open WebUI?

The cost depends on the work scope rather than on the feature switch itself, which is a configuration change in Open WebUI. The main cost drivers are the size and variety of your corpus, the number of knowledge bases that need tuning, the amount of evaluation work needed to show that answers improve, and the infrastructure for the reranker. Fixed-scope engagements are agreed in writing before work starts, so ask for a quote that lists each of these components separately. Ask which parts are one-time (initial tuning and evaluation set creation) and which recur (re-evaluation after document or model changes, and any retainer for ongoing support).

How long does tuning hybrid search usually take?

Duration follows scope. A single knowledge base with a small, well-owned document set is a much smaller job than several knowledge bases with mixed file types and different owners. The steps that take the most time are usually collecting representative questions, agreeing what a good answer looks like, and running comparisons between settings. DeployOpen does not publish a timeline, so ask for one in the written scope, with the number of knowledge bases, the evaluation approach and the dependencies on your team stated explicitly.

What must our team provide before tuning starts?

Tuning needs three inputs from your side. First, a set of sample questions drawn from real users or support tickets, covering the common and the difficult cases. Second, expected answers or at least the source documents that should be cited for each question, so results can be judged. Third, named document owners who can confirm which files are current, which are superseded and who approves changes to a knowledge base. Without these, tuning settings such as relevance thresholds can only be judged by opinion, and the results will be hard to defend in a review.

Can our internal team tune hybrid search and reranking alone?

Yes, a team with administrative access to Open WebUI, someone who understands retrieval concepts and someone who owns the documents can do this work in house. The hardest parts are usually building an evaluation set that reflects real use, keeping a record of each setting change and its effect, and deciding when results are good enough. A partner is most useful when your team lacks time for that evaluation discipline, or when the reranker must run on infrastructure that your platform team has not yet provisioned. Confirm your staffing and skills before deciding.

What does the reranker add to our infrastructure?

Open WebUI supports cross-encoder reranking as part of its retrieval features, and a reranker changes the compute profile of each query because it scores candidate passages after the initial search. Plan for the extra CPU or GPU capacity, the model storage and the latency it adds to answers. Confirm in the Open WebUI features documentation which reranker options your version supports, and ask whether the reranker will run in the same environment as Open WebUI or in a separate service you control.

Does hybrid search need a specific vector database?

Hybrid search combines BM25 keyword retrieval with vector similarity, and Open WebUI's retrieval features support 13 vector databases, including ChromaDB, PGVector, Qdrant, Milvus and Elasticsearch. The choice affects cost and operations more than the search logic. The Scaling Open WebUI guide warns that the default ChromaDB will crash in multi-process setups, so multi-replica deployments need an external vector database. Confirm which store you will use before scoping the work, since changing it later is additional effort.

How do we know whether answers actually improved?

Measure before and after on the same question set. Record which documents each answer cited, whether the answer was correct against the expected result, and how often users had to re-ask. Change one setting at a time, such as the relevance threshold or the reranker, so the effect is traceable. Keep the results in a dated log that your document owners and security reviewers can read. Ask any partner to deliver this evaluation record as part of the written scope, not as an informal impression.

Do changes to search settings affect our existing knowledge bases?

Some changes apply only to documents added after the change, and others require re-indexing. Retrieval settings and embedding choices behave differently, so check the Open WebUI documentation for the version you run before changing anything in production. Plan a re-index window, tell document owners when it will happen and keep a rollback path. Ask for the list of settings that trigger re-indexing as part of the scope.

How a hybrid query flows through Open WebUI

The flow starts when a user sends a question in the chat interface and Open WebUI retrieves from the knowledge base along two paths: keyword (BM25) and vector search. The two candidate lists are merged, then a cross-encoder reranker scores them, and a relevance threshold drops weak matches before the surviving chunks are added to the prompt for the model. Check at each hand-off inside the self-hosted boundary, since the vector store, reranker and model endpoint may each sit on different hosts.

Hybrid retrieval, reranking and threshold filtering before the model receives context.

How DeployOpen scopes and delivers hybrid search tuning

DeployOpen approaches Open WebUI hybrid search and reranking as a fixed-scope engagement that starts with your knowledge bases and questions, not with a setting change. The work covers configuration, retrieval measurement and handover inside infrastructure you control.

How we scope

  • Inventory the knowledge bases, file types and vector store that the hybrid search settings will apply to.
  • Agree in writing which test questions, answer sources and acceptance criteria define a better result.
  • Confirm the reranking model, its hosting location and whether it can run within your network boundary.

How we build

  • Enable BM25 plus vector hybrid search and cross-encoder reranking in a non-production Open WebUI instance first.
  • Tune relevance thresholds against a fixed question set, recording which changes improve or weaken answers.
  • Confirm that multi-replica settings use a shared external vector store, Redis and PostgreSQL where the deployment requires them.

How we hand over

  • Deliver the configuration, reranker settings and threshold values as documented, versioned records.
  • Provide the evaluation question set, the baseline results and the method for rerunning the comparison.
  • Train your operators on re-indexing triggers, such as changes to the embedding model, before they change settings in production.

How we support

  • Support is available as a retainer for upgrades, retesting after Open WebUI releases and ongoing tuning reviews.
  • Retesting covers relevance results after version changes, new knowledge bases and changes to the reranking model.
  • Ask any provider to confirm how support, upgrade testing and re-indexing effort are priced before you commit.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.