You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
exportconstSERVER_INSTRUCTIONS=`Quickstart for AI clients: for most user questions, call \`guided_query\` with the user's question — it does namespace routing, suggestion, and execution in one shot and returns a decision_trace you can show the user. For manual flows, call \`list_namespaces\` -> \`suggest_query_params\` -> \`query_fast\` / \`query_detailed\` / \`count\` (the suggest step is a mandatory gate). Use \`query_documents\` for full-document reading, \`keyword_search\` for exact-keyword retrieval against the sparse index, and \`generate_urls\` when records need URLs synthesized from metadata.
63
-
64
-
A semantic search server that provides hybrid search capabilities over Pinecone vector indexes with automatic namespace discovery.
37
+
exportconstSERVER_INSTRUCTIONS=`A semantic search server that provides hybrid search capabilities over Pinecone vector indexes with automatic namespace discovery.
65
38
66
39
Features:
67
40
- Hybrid Search: Combines dense and sparse embeddings for superior recall
68
-
- Semantic Reranking: Uses a configurable reranker model (default bge-reranker-v2-m3) for improved precision
41
+
- Semantic Reranking: Uses BGE reranker model for improved precision
69
42
- Dynamic Namespace Discovery: Automatically discovers available namespaces
70
43
- Metadata Filtering: Supports optional metadata filters for refined searches
71
44
- Namespace Router: Suggests likely namespace(s) from natural-language intent
72
45
- Count: Use the count tool for "how many X?" questions; it uses semantic search only and minimal fields (no content) for performance, returning unique document count.
73
-
- URL Generation: Use generate_urls to synthesize URLs for namespaces that have a registered generator when metadata lacks url.
74
-
- Document reassembly: Use query_documents to get whole documents (chunks grouped and merged by document_number/doc_id/url) for content analysis or summarization. query_documents always reranks for best document-level relevance.
75
-
- Keyword search: Use keyword_search to query the sparse index for lexical/keyword-only retrieval without reranking.
46
+
- URL Generation: Use generate_urls to synthesize URLs for namespaces that support it when metadata lacks url.
47
+
- Document reassembly: Use query_documents to get whole documents (chunks grouped and merged by document_number/doc_id/url) for content analysis or summarization.
48
+
- Keyword search: Use keyword_search to query the sparse index (default: rag-hybrid-sparse) for lexical/keyword-only retrieval without reranking.
76
49
77
50
Usage:
78
-
1. Use list_namespaces (cached) to discover available namespaces in the index. The response includes \`expires_at_iso\` so you know when to refresh.
79
-
2. Optionally use namespace_router to choose candidate namespace(s) from user intent.
80
-
3. Call suggest_query_params before query/count/query_documents tools (mandatory flow gate) to get suggested_fields and recommended_tool.
81
-
4. Use count for count questions, query_fast/query_detailed for chunk-level retrieval, or query_documents for full-document content.
82
-
83
-
Notes:
84
-
- Result rows include both \`document_id\` (canonical) and \`paper_number\` (deprecated alias kept for one minor cycle; will be removed in the next major release). Prefer \`document_id\` in new code.
85
-
- The server emits structured logs to stderr (text by default, set PINECONE_READ_ONLY_MCP_LOG_FORMAT=json for log aggregation).`;
51
+
1. Use list_namespaces (cached for 30 minutes) to discover available namespaces in the index
52
+
2. Optionally use namespace_router to choose candidate namespace(s) from user intent
53
+
3. Call suggest_query_params before query/count/query_documents tools (mandatory flow gate) to get suggested_fields and recommended tool
54
+
4. Use count for count questions, query_fast/query_detailed for chunk-level retrieval, or query_documents for full-document content`;
0 commit comments