Add Reference Data

A Search function’s reference data is the collection of items it searches across. Each item — a snippet of text or an image — is a candidate result. When you query the function, it returns the items most similar in meaning to your query, ranked by similarity.

Add items in the Import tab

In the console, open your function and go to the Import tab. How you upload depends on the function’s input type:

Once items are imported, they appear in the Gallery tab. Gallery is where you see, browse, and manage the full collection of samples the function will search across. Use it to spot-check that everything came in correctly, remove items, or add more.

Each item is called a “sample” on the function. Behind the scenes, Nyckel embeds every sample so queries can be compared against them by meaning rather than by exact word match.

What makes good reference data

A Search function is only as good as the data you upload. A few principles:

How many items?

Search functions work with collections of almost any size — from dozens of items to hundreds of thousands. Quality and coverage matter much more than raw count. A few hundred well-chosen items will usually outperform tens of thousands of noisy ones.

Next

Query Similar Content — use the Search tab (and the API) to query the function and read the ranked results.