Skip to main content

Agents' search

Route/knowledge-hub
Permissionedit on Knowledge Hub and being able to edit the folder

When an agent answers with the documents in a folder, it first searches them for the passages related to the question and then answers based on those passages. Agents' search lets you adjust that process for each folder: how its documents are prepared and what information the agent receives in each search.

The platform's settings work well in most cases. Adjust them when the answers don't find what's in the documents: records that are very similar to each other, manuals with long procedures, complex tables or drawings with information in images.

Use cases: a folder of product records where the agent mixes them up; a folder of regulations where procedures arrive cut in half; a sector with its own acronyms that the agent doesn't recognize.

How an agent searches​

  1. Prepare. When a document reaches a folder shared with an agent, the platform converts it to text and splits it into passages: pieces of text of a similar size. Each passage is stored so it can be searched by meaning, not only by exact words.
  2. Search. For each question, a search agent looks for the most related passages in the folders the agent has access to.
  3. Answer. The agent writes the answer with those passages. It doesn't read the full documents.

The settings are split into two groups, one for each moment:

GroupWhat it adjustsWhen you notice a change
Document preparationHow documents are split and how their tables and images are readIn documents prepared afterwards. The existing ones stay as they were until they're updated. See Update the documents
Search resultsHow many passages the agent receives and which search agent it usesFrom the next message, without having to update anything

Which folders it applies to​

The settings are defined on the folder that is shared with the agent (or an agent's own folder) and apply to it and all its subfolders. If there's another folder inside that is shared with an agent separately, that one uses its own settings.

That's why the option only appears on folders shared with some agent. Multimedia folders don't have it.

Open the settings​

Menu of a Knowledge Hub folder with the Configure agents' search option
Menu of a folder shared with an agent

You can open the Agents' search window from several places:

  • In the folder's ⋯ menu, or in the title menu inside it: Configure agents' search.
  • In Edit folder, under Advanced options: the Agents' search row, which shows the settings in use and how many documents need updating.
  • In the folder's information (View details), with Review and update, when there are documents pending an update.
  • By clicking the orange mark for pending documents next to the folder's name.

You need edit permission on the Knowledge Hub and to be able to edit the folder: be the person who created it, or have Can edit or Can manage if it's shared. If you can only view it, you can check the settings in the folder's information.

Settings source​

The first thing in the window is where the settings come from:

SourceWhat it meansWhen to choose it
DefaultThe platform-wide settings. They're shown for reference, but you can't change themFor most folders
ProfileNamed settings shared by several folders. You choose it in Search profile, and its values are shown for referenceWhen several folders have the same kind of documents. See Search profiles
OwnSettings for this folder only, which you can editFor a folder with particular needs, or to prepare a new profile

A profile applies as a whole: you can't change a single setting for one folder. For that, Use as own settings copies the profile's values to the folder, which switches to Own and can then be adjusted.

If there are no profiles yet, the Profile option is disabled.

Document preparation​

Document preparation group in the Agents' search window
Agents' search → Own → Document preparation

Sets how the folder's documents are prepared.

Changes aren't applied on their own

Documents that were already prepared keep the previous settings until they're updated. When you save a change in this group, the platform shows how many documents it affects and offers to update them. See Update the documents.

Content type​

The size of the passages the documents are split into. Pick the one closest to the folder's documents:

OptionForWhat it does
General (recommended)Most documentsMedium-sized passages. This is the default option
Short recordsMany brief documents: records, FAQs, catalogs, directoriesSmall passages, so each record gets its own passage and doesn't get mixed with the next one
Long documentsManuals, contracts, regulations and long reportsLarge passages, so a long procedure arrives whole
CustomCases that don't fit the previous onesYou set the sizes by hand

Technical detail: sizes are measured in tokens, the unit models use to count text (100 tokens are about 75 words).

OptionSize of each fragmentText repeated between fragmentsJoin fragments shorter than
General1,000100200
Short records400080
Long documents1,500150500

With Custom, the three values appear, starting from the option that was selected:

FieldWhat it doesValues
Size of each fragmentThe maximum size of each passageFrom 200 to 1,800 tokens
Text repeated between fragmentsThe end of one passage is repeated at the start of the next, so an idea isn't cut in halfFrom 0 to a quarter of the size
Join fragments shorter thanVery short sections are joined to the next one until they reach this sizeFrom 50 to the passage size

Table reading​

OptionWhat it does
FastFaster. May lose detail in complex tables or merged cells. This is the default option
AccurateSlower. Reads complex tables and merged cells well

It applies to documents that aren't PDFs and to PDFs converted with the Essential service (see PDF conversion).

PDF images​

SettingWhat it does
Describe the PDFs' imagesThe platform uses AI to describe charts, photos and diagrams, so agents find what they show
Skip decorative imagesLogos, icons and ornaments aren't described. Only with the previous one turned on
Maximum length of each description (characters)From 100 to 1,000. Raise it if the images contain data, such as charts or tables saved as images

Only available if the folder converts PDFs with the Advanced service and Keep the images. Otherwise, the window says so and offers Change the PDF conversion, which opens Edit folder.

Advanced options​

SettingWhat it doesWhen to turn it on
Include the section title in each passageEach passage is also searched by the document's name and its section's headingsRecords that are very similar to each other: that way "9 am to 6 pm" stays linked to "Museum X > Opening hours"
Repeat table headers in each passageIf a long table is split into several passages, each one repeats the header rowDocuments with long tables

Search results​

Search results group in the Agents' search window
Agents' search → Own → Search results

Sets what information the agent receives in each search. Changes apply from the next message.

SettingWhat it doesValuesDefault
Default passagesHow many passages the agent receives in each search, unless it asks for a different numberFrom 1 to the Passage limit8
Search agentThe agent that searches the documents. See belowActive search agentsDefault agent

Under Advanced options:

SettingWhat it doesValuesDefault
Passage limitThe maximum it can receive if it asks for more resultsFrom 1 to 3020
Neighbor passagesEach passage found comes with the ones around it in the same document. With 2, the 2 before and the 2 afterFrom 0 to 20
Maximum passages per documentHow many passages a single document can contribute to the resultsFrom 1 to the Passage limit, or No limitNo limit

More passages give the agent more context, but each answer uses more creditsAdministration. Some guidelines:

  • Procedures arrive cut in half: raise Neighbor passages to 1.
  • A very long document takes over the results: set a Maximum passages per document, to leave room for other documents.
  • Many similar records and the agent doesn't find the right one: raise Default passages.

Search agent​

The search agent is what searches the documents and picks the passages. The platform's Default agent works for most cases.

A search agent of your own adds the organization's criteria and terminology: what is relevant, synonyms and acronyms. For example: "in contracts, addendum and amendment are the same thing; always prioritize the version currently in force". You create it in the Studio as a micro-agent of type Search agent and assign it to folders, not to agents. See Micro-agents.

If the selected search agent stops being available (it's disabled or its model is no longer in the subscription), agents keep answering with the Default agent.

Save​

Save changes saves the settings. Only the folder's search changes; the rest of the folder stays the same.

  • If the change only affects Search results or the search agent, it's saved directly: Search saved.
  • If the change affects Document preparation, or changes the source or the profile, Review the change appears first, with the affected documents. See Update the documents.

If you close the window with unsaved changes, it asks whether to discard them.

Where to see a folder's settings​

Folder information with the Processing and search section
Folder information → Processing and search
  • In the folder list, a mark next to the name:

    Knowledge Hub list with each folder's search mark
    Search marks in the folder list
    MarkMeans
    Orange, with arrowsThere are documents pending an update. Clicking it opens the settings
    Gray: This folder uses a settings profileIt uses a profile
    Gray: This folder uses its own settingsIt uses its own settings
    No markIt uses the default settings
  • In the folder's information (View details), Processing and search section: the Search settings (Default, Own or the profile), the Search agent and, if any, the documents pending an update.

Best practices​

Change one thing at a time

Change one setting, test with the same questions in Conversations and compare. If you change several at once, you won't know which one helped.

Describe the folder well

The search agent reads the folder's Description to decide where to search. A clear description ("Technical sheets for the plant's equipment") improves the results when the agent has several folders.

One profile per kind of document

If several folders have the same kind of documents, a profile saves you from repeating the settings and keeps them the same in all of them.