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

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

Embedding vector.

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

Namespace

Google \ Cloud \ DiscoveryEngine \ V1beta \ SearchRequest \ EmbeddingSpec

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ field_path string

Embedding field path in schema.

↳ vector array

Query embedding vector.

getFieldPath

Embedding field path in schema.

Returns
TypeDescription
string

setFieldPath

Embedding field path in schema.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getVector

Query embedding vector.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setVector

Query embedding vector.

Parameter
NameDescription
var float[]
Returns
TypeDescription
$this