Skip to content

Vector Search

How retrieval works, on an isometric slab. Pages drop onto it and fold into points that gather by topic, nearby points are linked into an index, a question is lowered into the same space, and a walk over the links finds its nearest pages, ranked by similarity. The data is this site's own docs.

On this page

Examples

Stage

Installation

Installation is part of Pro

Pro components install from a licensed registry. The live preview stays open to everyone.

Props

docs
{ id, title, group, pos: [x, y, z], vec? }[]
Default24 pages of these docs
The default is real data: these docs' pages placed from their embeddings (bge-small-en-v1.5, 384d), with hits scored by cosine similarity. Points on the slab: x and z about -1 to 1 (a 2D projection of your vectors), y 0. vec (a short summary of the vector, -1 to 1) draws the inspector's strip.
groups
{ id, label }[]
DefaultAgents, Forms, Backgrounds, Page blocks
Topic labels, placed above each cluster so they never overlap.
edges
[number, number][]
Default2 nearest per doc
Links drawn on the plane at the Index stage and walked at Rank.
queries
(string | { text, pos?, hits?, vec? })[]
Default3 queries
One per loop. hits are your real nearest docs with scores; without them the nearest in the space are used.
k
number
Default4
How many docs come back.
stage / onStage
"embed" | "index" | "query" | "rank"
Controlled stage, and a callback on every change.
autoplay / speed / paused
boolean / number / boolean
Defaulttrue / 1 / false
Autoplay starts on a finished Rank so the first frame is never empty. It also stops offscreen and in hidden tabs.
tabs / inspector
boolean
Defaulttrue
Stage tabs with pause, and the side panel.
dims / label
number / string
Default384 / "Vector search: …"
Vector size shown in the panel, and the accessible name. Each stage has a one-line text summary; reduced motion shows the ranked result still.

When to use

When to use

  • Explaining retrieval (RAG) on a landing page or in onboarding: how your docs become vectors and how a question finds them.
  • Showing that answers come from your own content, with ranked sources and similarity scores.
  • Teaching or internal docs about embeddings, clustering and nearest-neighbour search.

When not to use

  • The real answer UI with citations: use AI Answer.
  • A live dashboard of an index: it is an explainer, not a monitor.

Using with AI

Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:

  • Add the Knowns UI Vector Search to my app and wire it to my own data.
  • I need explaining retrieval (RAG) on a landing page or in onboarding: how your docs become vectors and how a question finds them. Set that up with the Knowns UI Vector Search.
  • Which Vector Search props do I need for a minimal setup? Show me a short example.

With the server connected, your assistant calls get_component({ name: "vector-search" }) and search_docs({ query: "vector search" }). Pro props, full examples and source come back once your license key is in the MCP config.

Need help?

Stuck on Vector Search, or found something off? We read every message.