Google Cloud Discovery Engine V1beta Client - Class EmbeddingSpec (0.11.3)

Reference documentation and code samples for the Google Cloud Discovery Engine V1beta Client class EmbeddingSpec.

The specification that uses customized query embedding vector to do semantic document retrieval.

Generated from protobuf message google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec

Namespace

Google \ Cloud \ DiscoveryEngine \ V1beta \ SearchRequest

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ embedding_vectors array<Google\Cloud\DiscoveryEngine\V1beta\SearchRequest\EmbeddingSpec\EmbeddingVector>

The embedding vector used for retrieval. Limit to 1.

getEmbeddingVectors

The embedding vector used for retrieval. Limit to 1.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setEmbeddingVectors

The embedding vector used for retrieval. Limit to 1.

Parameter
Name Description
var array<Google\Cloud\DiscoveryEngine\V1beta\SearchRequest\EmbeddingSpec\EmbeddingVector>
Returns
Type Description
$this