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

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
NameDescription
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
TypeDescription
Google\Protobuf\Internal\RepeatedField

setEmbeddingVectors

The embedding vector used for retrieval. Limit to 1.

Parameter
NameDescription
var array<Google\Cloud\DiscoveryEngine\V1beta\SearchRequest\EmbeddingSpec\EmbeddingVector>
Returns
TypeDescription
$this