Menu
Fetch records by metadata
Fetch records by metadata
POST
/vectors/fetch_by_metadataUse it in a workflow
- Add a step and choose the Pinecone connector.
- Pick the Fetch records by metadata action (under Data).
- 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.
{
"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>}}.
{
"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?