SparseVectorData(List<Int64>, ReadOnlyMemory<Single>) Constructor

Definition

Initializes a new instance of the SparseVectorData class.

[System.Text.Json.Serialization.JsonConstructor]
public SparseVectorData (System.Collections.Generic.List<long> indices, ReadOnlyMemory<float> values);
[<System.Text.Json.Serialization.JsonConstructor>]
new Microsoft.SemanticKernel.Connectors.Pinecone.SparseVectorData : System.Collections.Generic.List<int64> * ReadOnlyMemory<single> -> Microsoft.SemanticKernel.Connectors.Pinecone.SparseVectorData
Public Sub New (indices As List(Of Long), values As ReadOnlyMemory(Of Single))

Parameters

indices
List<Int64>

The indices of the sparse data. (required).

values
ReadOnlyMemory<Single>

The corresponding values of the sparse data, which must be the same length as the indices. (required).

Attributes

Applies to