Production use of this feature is only available on specific Maia plans. Contact our Sales team for more information.
ARRAY<FLOAT64> values. You can convert text into embeddings of this type using the Embed component, and use the output from that component as an input into Vector Search.
For each input row, the component outputs up to as many of the nearest base-table rows as asked for in the Top K property, with the distance between each pair of embeddings.
To learn more about vector search in Google BigQuery, read Search embeddings with vector search.
Use case
Typical use cases for a vector search include the following:- Performing a semantic text search to return the most contextually relevant documents, even if they don’t share exact keywords.
- Personalizing content retrieval by matching users to relevant content based on their interests or behavior embeddings.
- Powering support systems by finding the closest pre-written response or FAQ entry for a customer’s question.
Properties
string
required
A human-readable name for the component.
drop-down
required
The Google Cloud project that owns the BigQuery dataset. The special value
[Environment Default] uses the Google Cloud project defined in the environment. For more information, read Creating projects.drop-down
required
The Google BigQuery dataset containing the table to query. The special value
[Environment Default] uses the dataset defined in the environment.drop-down
required
The table that contains the data to be searched. The results for each input row are rows of this table.
drop-down
required
Select the column of the Base table that contains the embeddings you want to search. This column isn’t included in the output.
drop-down
required
Select the input column that contains the embeddings to search for. This column isn’t included in the output.
integer
required
The number of nearest base-table rows to return for each input row. The value must be 1 or more. The default is 5.
drop-down
The measure of distance between embeddings that the search uses. The following options are available:
- Cosine
- Euclidean
- Dot Product
JSON
A JSON object of options for the search. You can set the
fraction_lists_to_search and use_brute_force fields of the VECTOR_SEARCH options argument. The JSON must be well-formed.fraction_lists_to_search: A number between 0 and 1 (exclusive). It’s only used when the search uses a vector index, and you can’t set it whenuse_brute_forceistrue.use_brute_force: Set totrueto skip the vector index and find the exact nearest neighbors.
string
The prefix added to the name of each base-table column in the output, to keep them apart from the input columns. The default is
base_. Leave this blank to output the base-table columns under their own names.Each prefixed name must be different from the names of the input columns, ignoring case. If an input column and a base-table column have the same name, set a prefix.string
required
The name of the column that holds the distance for each match. The default is
distance.The name must be different from the names of the input columns and the prefixed base-table columns, ignoring case.