query
Performs hybrid dense+sparse semantic search over a Pinecone namespace with optional reranking and metadata filtering to return relevant records.
Instructions
Hybrid semantic search (dense + sparse) with optional reranking. Requires suggest_query_params to be called first for the target namespace. Use preset=fast for low-latency retrieval without reranking and lightweight fields; detailed for reranked, content-oriented retrieval; full to set use_reranking and fields explicitly.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query_text": "<query_text>",
"namespace": "<namespace>"
},
"name": "query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top_k | No | Number of results to return (1-100). Default: 10 | |
| fields | No | Optional field names to return from Pinecone. Use suggest_query_params suggested_fields for better performance. | |
| preset | No | fast: no reranking + lightweight fields (former query_fast). detailed: reranking on (former query_detailed). full: use use_reranking and fields below. | full |
| source | No | Pinecone source name (from list_sources). Omit on discovery tools to search all sources. On query tools, omit only when namespace uniquely identifies one source. | |
| namespace | Yes | Namespace to search within. Use list_namespaces/namespace_router first, then suggest_query_params before querying. | |
| query_text | Yes | Search query text. Be specific for better results. | |
| use_reranking | No | Used when preset is detailed or full (default true). Ignored when preset is fast. | |
| metadata_filter | No | Optional metadata filter to narrow down search results. |