Skip to content

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
texttextRequiredThe text to search for (e.g. a question or phrase). Pinecone embeds this and finds similar records.
namespacetextRequiredNamespace to search in (required for search-with-text API).
topKnumberRequiredNumber of results to return (e.g. 10).
fieldsarray of textOptionalOptional list of field names to include in each hit (e.g. ["chunk_text", "category"]). Omit to return all fields.
rerankobjectOptionalOptional rerank config. model, top_n, and rank_fields (must be in 'fields'). Optionally query for rerank context.
modeltextOptionalReranker model (e.g. bge-reranker-v2-m3)
top_nnumberOptionalNumber of results to return after reranking
rank_fieldsarray of textOptionalField names to rank by (must be included in 'fields')
querytextOptionalOptional query text for rerank context

Outputs

Name Type Description
statusCodenumberHTTP status code
bodyobjectSearch response: usage (embed_total_tokens, read_units), result.hits (array of { _id, _score, fields })
usageobjectToken and read-unit usage
embed_total_tokensnumberTotal tokens used for embedding
read_unitsnumberRead units consumed
resultobjectSearch result with hits
hitsarray of objectArray of matches: { _id, _score, fields }
_idtextRecord ID
_scorenumberSimilarity score
fieldsobjectMetadata/fields (e.g. chunk_text, category)