Menu
Search with text (legacy Records API)
Search with text (legacy Records API)
POST
/records/namespaces/{namespace}/searchUse it in a workflow
- Add a step and choose the Pinecone connector.
- Pick the Search with text (legacy Records API) action (under Data).
- Fill in the fields below, then reference the result from later steps as
{{searchWithTextLegacyRecordsApi.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"query": {
"top_k": 10,
"filter": {},
"inputs": {
"text": "chunk_text"
},
"vector": {
"values": [
0
],
"sparse_values": [
0.1,
0.2,
0.3
],
"sparse_indices": [
10,
3,
156
]
},
"id": "example-vector-1",
"match_terms": {
"strategy": "all",
"terms": [
"animal",
"CHARACTER",
"donald Duck"
]
}
},
"fields": [
"chunk_text"
],
"rerank": {
"model": "bge-reranker-v2-m3",
"rank_fields": [
"chunk_text",
"title"
],
"top_n": 5,
"parameters": {
"truncate": "END"
},
"query": "What is the capital of France?"
}
}
Response
Returns 200 with an object. Read it in later steps with {{searchWithTextLegacyRecordsApi.response.data.<field>}}.
{
"result": {
"hits": [
{
"_id": "example-record-1",
"_score": 0.9281134605407715,
"fields": {
"data": "your example text",
"more_data": {
"text": "your example text"
}
}
}
]
},
"usage": {
"read_units": 5,
"egress_bytes": 1024,
"embed_total_tokens": 2,
"rerank_units": 1
},
"namespace": "example-namespace"
}
Need more? See the Pinecone guide for connection setup and behaviour shared by every action.
Was this page helpful?