younifyd
Menu

Fetch records by metadata

Fetch records by metadata

POST/vectors/fetch_by_metadata

Use it in a workflow

  1. Add a step and choose the Pinecone connector.
  2. Pick the Fetch records by metadata action (under Data).
  3. Fill in the fields below, then reference the result from later steps as {{fetchRecordsByMetadata.response.data}}.

Request

Request body

Enter the body as JSON in the step's Body field.

namespacestring

The namespace to fetch records from.

filterobjectrequired

Metadata filter expression to select vectors. See [Understanding metadata](https://docs.pinecone.io/guides/index-data/indexing-overview#metadata).

limitinteger (int64)

The maximum number of records to return per page. Defaults to 100.

Default 100

paginationTokenstring

Pagination token to continue a previous listing operation.

json
{
  "filter": {
    "genre": {
      "$in": [
        "comedy",
        "documentary",
        "drama"
      ]
    },
    "year": {
      "$eq": 2019
    }
  },
  "namespace": "example-namespace",
  "limit": 12,
  "paginationToken": "Tm90aGluZyB0byBzZWUgaGVyZQo="
}

Response

Returns 200 with an object. Read it in later steps with {{fetchRecordsByMetadata.response.data.<field>}}.

vectorsobject

The fetched vectors, in the form of a map between the fetched ids and the fetched vectors

namespacestring

The namespace that served the fetch: the request's namespace, or the alias's target namespace when the request named a namespace alias.

Default ""

usageobject
readUnitsinteger (int64)

The number of read units consumed by this operation.

egressBytesinteger (int64)

The billed egress for this response, in bytes. Measured on the encoded response payload.

paginationobject
nextstringrequired
json
{
  "vectors": {},
  "namespace": "example-namespace",
  "usage": {
    "readUnits": 5,
    "egressBytes": 1024
  },
  "pagination": {
    "next": "Tm90aGluZyB0byBzZWUgaGVyZQo="
  }
}

Need more? See the Pinecone guide for connection setup and behaviour shared by every action.

Was this page helpful?