Skip to content

VectorService

Vector search operations.

Proto source

query/vector.proto

Transport

All methods are available via:

  • gRPC on port 7080 — native high-performance API
  • REST/JSON on port 7081 — HTTP/JSON transcoding via embedded structured-proxy

Methods

VectorSearch

Search for nearest neighbors by vector similarity.

HTTP: POST /v1/query/vector/search

Request: VectorSearchRequest

FieldTypeDescription
labelstringLabel to search within.
propertystringProperty name containing vectors.
query_vectorVectorQuery vector.
top_kuint32Number of nearest neighbors to return.
metricDistanceMetricDistance metric (cosine, l2, dot, l1).

Response: VectorSearchResponse

FieldTypeDescription
resultsVectorResult[]
index_healthVectorIndexHealthServing health + freshness of the HNSW index that answered this query. Set server-side from the index registry's health signal. Absent (field unset) when the query did not run against a managed HNSW index (for example a brute-force fallback on a tiny dataset). A client implements read-your-writes by comparing index_health.indexed_hlc against the HLC of its own prior write (the Pinecone LSN-header pattern).

HybridSearch

Hybrid search combining graph traversal and vector similarity.

HTTP: POST /v1/query/vector/hybrid

Request: HybridSearchRequest

FieldTypeDescription
start_node_iduint64Starting node for graph traversal.
edge_typestringEdge type to traverse.
max_depthuint32Max traversal depth.
vector_propertystringVector search parameters applied after traversal.
query_vectorVector
top_kuint32
metricDistanceMetric

Response: HybridSearchResponse

FieldTypeDescription
resultsVectorResult[]
index_healthVectorIndexHealthServing health + freshness of the HNSW index that answered the vector phase of this hybrid query. Same semantics as VectorSearchResponse.index_health; unset when the vector phase did not run against a managed HNSW index.

Types

HybridSearchRequest

FieldTypeDescription
start_node_iduint64Starting node for graph traversal.
edge_typestringEdge type to traverse.
max_depthuint32Max traversal depth.
vector_propertystringVector search parameters applied after traversal.
query_vectorVector
top_kuint32
metricDistanceMetric

HybridSearchResponse

FieldTypeDescription
resultsVectorResult[]
index_healthVectorIndexHealthServing health + freshness of the HNSW index that answered the vector phase of this hybrid query. Same semantics as VectorSearchResponse.index_health; unset when the vector phase did not run against a managed HNSW index.

VectorIndexHealth

Serving health of a vector index: whether it can answer queries at full recall right now, plus the freshness watermark of writes it has applied. Computed server-side; clients never send this. This is the live serving lifecycle (ready / rebuilding / offline), distinct from the durable backfill state persisted with the index definition.

ServingState enum:

ValueNumberDescription
SERVING_STATE_UNSPECIFIED0Unset / unknown — treat as a degenerate case, not a guarantee.
SERVING_STATE_READY1Fully built and serving at the documented recall.
SERVING_STATE_REBUILDING2be partial-recall depending on the label's VECTOR_REBUILD_POLICY.
SERVING_STATE_OFFLINE3Unavailable; see offline_reason.
FieldTypeDescription
serving_stateServingStateCurrent serving lifecycle.
rebuild_progressfloatRebuild progress in [0.0, 1.0]. 0 unless serving_state == SERVING_STATE_REBUILDING.
eta_msuint64Best-effort estimate of remaining rebuild time, in milliseconds. 0 unless serving_state == SERVING_STATE_REBUILDING.
indexed_hlcuint64Freshness watermark: the HLC commit timestamp (wall-clock microseconds, ADR-007) of the last write the local index-maintenance worker has applied. This is the read-your-writes fence — a client that wrote at HLC W has been served a fully-current index iff indexed_hlc >= W. 0 when nothing has been applied yet or serving_state == SERVING_STATE_OFFLINE.
offline_reasonstringHuman-readable reason when serving_state == SERVING_STATE_OFFLINE (for example "segment_lost", "disk_io", "manual_disable"); empty otherwise.

VectorResult

FieldTypeDescription
nodeNode
distancefloat

VectorSearchRequest

FieldTypeDescription
labelstringLabel to search within.
propertystringProperty name containing vectors.
query_vectorVectorQuery vector.
top_kuint32Number of nearest neighbors to return.
metricDistanceMetricDistance metric (cosine, l2, dot, l1).

VectorSearchResponse

FieldTypeDescription
resultsVectorResult[]
index_healthVectorIndexHealthServing health + freshness of the HNSW index that answered this query. Set server-side from the index registry's health signal. Absent (field unset) when the query did not run against a managed HNSW index (for example a brute-force fallback on a tiny dataset). A client implements read-your-writes by comparing index_health.indexed_hlc against the HLC of its own prior write (the Pinecone LSN-header pattern).

Enums

DistanceMetric

ValueNumberDescription
DISTANCE_METRIC_UNSPECIFIED0
DISTANCE_METRIC_COSINE1
DISTANCE_METRIC_L22
DISTANCE_METRIC_DOT3
DISTANCE_METRIC_L14