Skip to Content
DocumentationDataGuidesSet Up Vector Search

Set Up Vector Search

Vector search compares embedding vectors instead of matching text character by character. Momen stores vectors in the relational database for semantic sorting and AI Agent context retrieval.

Open Data tab → Data model to create tables and enable vector fields.

Database setup: Set Up the Database. AI Agent usage: Build AI Agents.

Currently only text fields support vectorization. Vector storage consumes database capacity.

Save vector data

  1. Open Data → Data model and create a table with a Text field.
  2. Open the field menu, enable Vector Storage, and choose an embedding model.
  3. Momen generates vectors for existing text and automatically updates them when the text changes.
  4. Changing the embedding model regenerates vectors for the existing data.

Vector sorting

Vector sorting compares a reference value with each row. A smaller distance indicates a closer match.

AlgorithmBest for
COSINEDirectional similarity — search, recommendations, text
EUCLIDEANAbsolute distance — logistics, numeric proximity
  1. Bind a list to a table that contains a vector-enabled field.
  2. Under Sort, select the vector field and choose Vector mode.
  3. Select the distance method.
  4. Bind the reference value, such as text entered in a search box.

AI Agent context (RAG)

  1. Create a table with a vector-enabled text field for the knowledge base.
  2. Open the AI Agent under Action, add the table under Contexts, and open its query settings.
  3. Add a Sort rule using the vector field and distance method, then bind the comparison value to the user’s input.

Configure vector sorting for an AI Agent context

In this example, a table stores internet slang. The search input is vectorized, and the list returns the closest matches.

Search a list by semantic similarity

Notes

  • Only text fields support vector storage.
  • Vector data consumes database storage.
  • See Query and Bind Data when adding semantic search to a page.
Last updated on