Partager via


PineconeDocument Constructor

Definition

Initializes a new instance of the PineconeDocument class.

[System.Text.Json.Serialization.JsonConstructor]
public PineconeDocument (ReadOnlyMemory<float> values = default, string? id = default, System.Collections.Generic.Dictionary<string,object>? metadata = default, Microsoft.SemanticKernel.Connectors.Pinecone.SparseVectorData? sparseValues = default, float? score = default);
[<System.Text.Json.Serialization.JsonConstructor>]
new Microsoft.SemanticKernel.Connectors.Pinecone.PineconeDocument : ReadOnlyMemory<single> * string * System.Collections.Generic.Dictionary<string, obj> * Microsoft.SemanticKernel.Connectors.Pinecone.SparseVectorData * Nullable<single> -> Microsoft.SemanticKernel.Connectors.Pinecone.PineconeDocument
Public Sub New (Optional values As ReadOnlyMemory(Of Single) = Nothing, Optional id As String = Nothing, Optional metadata As Dictionary(Of String, Object) = Nothing, Optional sparseValues As SparseVectorData = Nothing, Optional score As Nullable(Of Single) = Nothing)

Parameters

values
ReadOnlyMemory<Single>

Vector dense data. This should be the same length as the dimension of the index being queried.

id
String

The unique ID of a vector.

metadata
Dictionary<String,Object>

metadata.

sparseValues
SparseVectorData

sparseValues.

score
Nullable<Single>
Attributes

Applies to