Docs The app

Search strategies

A good answer starts with the right piece of knowledge. A search strategy decides how your agent finds it: what happens to the question before searching, how the search runs, and what happens to the results afterwards. The default strategy works well right away; this module is for the moment you want to tune the search to your content and your visitors.

The Search strategies module in vragen.ai, with the environment's strategies and the configurations for suggestions and autocomplete.

Three steps, one recipe

A strategy is built from three steps, assembled as blocks:

  1. Query: what happens to the question itself. You can have the question rewritten (casual language becomes a sharp query), split into sub-questions, filtered on a metadata field, or limited to a knowledge area, for example only the content for residents.
  2. Search: the retrieval itself. Semantic search finds by meaning, keyword search (BM25) by exact words, and the balance setting combines both. Useful for content full of jargon: then you want "WOZ assessment" to count literally.
  3. Results: the post-processing. Rerank the retrieved pieces, cut off automatically where relevance drops, or give certain knowledge areas and metadata a push upwards.

The advanced blocks (rewriting, splitting and reranking) belong to Advanced search and are available from the Professional plan onward; the builder still shows them on a smaller plan, but you cannot enable them.

The builder shows those three steps below each other, and per step you add blocks in the order they run.

The search strategy builder with the three steps Query, Search and Results, a button to add blocks per step, and the Test button at the top right.

You do not have to invent this from scratch. When creating a strategy you pick a starting point (Semantic, Hybrid, Keyword or Semantic with reranking; that last one requires the Professional plan) and then only adjust what your situation asks for.

The Create search strategy wizard with the four starting points: Semantic, Hybrid, Keyword and Semantic + rerank, each with a short note on when to pick it.

Try first, then save

With the Test button you run a strategy live against your own knowledge base, before saving it. You type a real visitor question and immediately see which sources are found and how relevant they score. So a change never just goes live: you have seen for yourself what it does.

One engine, several places

An environment can have multiple strategies, with one as the default. Every place where search happens can pick its own strategy: an agent for its answers, an integration for the search results on your site, and the question suggestions and autocomplete each have their own strategy too, entirely without a language model. The same engine sits behind the chat and behind AI site search as a standalone search experience.

Who can do what

Viewing and editing search strategies starts at the Editor role; an Annotator does not see this module. The default strategy cannot be deleted, so there is always a working base. More about the roles: Managing users and roles.

Still have a question?

Ask it here. The answer comes from this documentation and points to the right page.

What exactly is vragen.ai?

Example answer by vragen.ai

vragen.ai lets visitors ask their question on your website and gives them a reliable answer straight from your own content, with the source included. You decide which sources the AI uses.

Source: How it works

This is an example. The interactive widget could not load here, for instance because of a script blocker or a slow connection.

You are talking to an AI assistant from vragen.ai. Why we mention this (Dutch)