Create a Semantic Search View
This page explains how to create a new semantic search view.
Prerequisites
- A Macrometa account with sufficient permissions to create search views.
- At least one collection created.
Create a Semantic Search View
Follow these instructions to create a new semantic search view using the GDN console web UI.
Click Data > Search Views.
Click New View.
Enter a Search View Name.
In Collection, select a collection.
In Field, enter a field to be indexed in the search view. The field must correspond to an array of numbers in the documents in the collection, and the vector size (next field) must be the size of the array.
For example, if your document is
{"_key": "100", "name": "n1", "address": "a1", "vector_name": [30,40,50,60]}
, and you want to search for similar names based onvector_name
, then usevector_name
as the field and4
as the vector size.In Vector Size, enter the number of elements in the vector. For more information about this setting, refer to Vector Size.
In Distance Type, select the distance metric to determine the extent of similarity. For more information about this setting, refer to Distance Type.
In the Index section, enter index information:
In Type, select an index type. For more information about this setting, refer to Index Type.
Enter information in the rest of the index fields. Options vary depending on which index type you select.
In the Quantization section, select a type and the number of output bits. For more information about this setting, refer to Quantization.
Click Create.