SparseVectorData.CreateSparseVectorData Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new instance of the SparseVectorData class with the specified indices and values.
public static Microsoft.SemanticKernel.Connectors.Pinecone.SparseVectorData CreateSparseVectorData (System.Collections.Generic.List<long> indices, ReadOnlyMemory<float> values);
static member CreateSparseVectorData : System.Collections.Generic.List<int64> * ReadOnlyMemory<single> -> Microsoft.SemanticKernel.Connectors.Pinecone.SparseVectorData
Public Shared Function CreateSparseVectorData (indices As List(Of Long), values As ReadOnlyMemory(Of Single)) As SparseVectorData
Parameters
- values
- ReadOnlyMemory<Single>
The corresponding values of the sparse data, which must be the same length as the indices.
Returns
A new instance of the SparseVectorData class.