Menu
Search documents
Search documents
POST
/namespaces/{namespace}/documents/searchUse it in a workflow
- Add a step and choose the Pinecone connector.
- Pick the Search documents action (under Data).
- Fill in the fields below, then reference the result from later steps as
{{searchDocuments.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"score_by": [
null
],
"top_k": 10,
"include_fields": [
"title",
"content"
],
"filter": {}
}
Response
Returns 200 with an object. Read it in later steps with {{searchDocuments.response.data.<field>}}.
{
"matches": [
{
"_id": "doc-1",
"_score": 0.9281134605407715,
"content": "Machine learning is a subset of artificial intelligence.",
"title": "Introduction to Machine Learning"
}
],
"namespace": "my-namespace",
"usage": {
"egress_bytes": 1024,
"read_units": 5
}
}
Need more? See the Pinecone guide for connection setup and behaviour shared by every action.
Was this page helpful?