Query Class
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.
Query parameters for use in a query request.
public sealed class Query
type Query = class
Public NotInheritable Class Query
- Inheritance
-
Query
Properties
Filter |
If this parameter is present, the operation only affects vectors that satisfy the filter. See https://www.pinecone.io/docs/metadata-filtering/. |
Id |
The unique ID of a vector |
Namespace |
The namespace of the index to query. If not specified, the default namespace is used. |
SparseVector |
Gets or Sets SparseVector |
TopK |
The number of results to return for each query. |
Vector |
Vector dense data. This should be the same length as the dimension of the index being queried. |
Methods
Create(Int32) |
Initializes a new instance of the Query class. |
InNamespace(String) |
Sets index namespace for Query instance. |
WithFilter(Dictionary<String,Object>) |
Sets filter for Query instance. |
WithId(String) |
Sets unique vector id for Query instance. |
WithSparseVector(SparseVectorData) |
Sets sparse vector data for Query instance. |
WithVector(ReadOnlyMemory<Single>) |
Sets vector for Query instance. |