Search with Text
Pinecone
Pinecone
Search with Text
Similarity search using raw text. Returns matching rows with confidence scores (_score). Requires a Pinecone index with integrated embedding.
ActionAI Tool
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
text | text | Required | The text to search for (e.g. a question or phrase). Pinecone embeds this and finds similar records. |
namespace | text | Required | Namespace to search in (required for search-with-text API). |
topK | number | Required | Number of results to return (e.g. 10). |
fields | array of text | Optional | Optional list of field names to include in each hit (e.g. ["chunk_text", "category"]). Omit to return all fields. |
rerank | object | Optional | Optional rerank config. model, top_n, and rank_fields (must be in 'fields'). Optionally query for rerank context. |
model | text | Optional | Reranker model (e.g. bge-reranker-v2-m3) |
top_n | number | Optional | Number of results to return after reranking |
rank_fields | array of text | Optional | Field names to rank by (must be included in 'fields') |
query | text | Optional | Optional query text for rerank context |
Outputs
| Name | Type | Description |
|---|---|---|
statusCode | number | HTTP status code |
body | object | Search response: usage (embed_total_tokens, read_units), result.hits (array of { _id, _score, fields }) |
usage | object | Token and read-unit usage |
embed_total_tokens | number | Total tokens used for embedding |
read_units | number | Read units consumed |
result | object | Search result with hits |
hits | array of object | Array of matches: { _id, _score, fields } |
_id | text | Record ID |
_score | number | Similarity score |
fields | object | Metadata/fields (e.g. chunk_text, category) |