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
Copy file name to clipboardExpand all lines: docs/CONFIGURATION.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ Configuration is built from **CLI flags** (when using the binary), **environment
28
28
|`sources`|`sources` / `PINECONE_SOURCES` or JSON config file | Omitted in single-key mode; see [Multi-source mode](#multi-source-mode)|
29
29
|`defaultSource`| JSON config `defaultSource` only | First source when using inline `PINECONE_SOURCES`|
30
30
31
-
**Throws** if `apiKey` or `indexName` is missing after trim (single-key mode). In multi-source mode, `PINECONE_API_KEY` is ignored when `PINECONE_SOURCES` or a config file is set; credentials come from each source entry.
31
+
**Throws** if `apiKey` or `indexName` is missing after trim (single-key mode) — this happens at server startup, not as an MCP tool error. In multi-source mode, `PINECONE_API_KEY` is ignored when `PINECONE_SOURCES` or a config file is set; credentials come from each source entry.
32
32
33
33
For the full Alliance tool surface (including `suggest_query_params`, `guided_query`, and built-in URL generators), import from `@will-cppa/pinecone-read-only-mcp/alliance` and use the three-step instance-first recipe at [Library embedding](#library-embedding) below.
Copy file name to clipboardExpand all lines: src/constants.ts
+6-11Lines changed: 6 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ const SERVER_FEATURES_AND_NOTES = `A semantic search server that provides hybrid
36
36
37
37
Features:
38
38
- Hybrid Search: Combines dense and sparse embeddings for superior recall
39
-
- Semantic Reranking: Uses a configurable reranker model when PINECONE_RERANK_MODEL is set; disabled when unset
39
+
- Semantic Reranking: Applied when a rerank model is configured; skipped when none is configured
40
40
- Dynamic Namespace Discovery: Automatically discovers available namespaces
41
41
- Metadata Filtering: Supports optional metadata filters for refined searches
42
42
- Namespace Router: Suggests likely namespace(s) from natural-language intent
@@ -47,11 +47,10 @@ Features:
47
47
- Multi-Source: When PINECONE_SOURCES or a config file is set, multiple Pinecone projects are available in one server. Use list_sources and pass source on tools; list_namespaces tags each namespace with its source.
48
48
49
49
Notes:
50
-
- 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.
51
-
- The server emits structured logs to stderr (text by default, set PINECONE_READ_ONLY_MCP_LOG_FORMAT=json for log aggregation).`;
50
+
- 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.`;
52
51
53
52
/** MCP instructions for {@link setupCoreServer} (eight core tools including guided_query). */
54
-
exportconstCORE_SERVER_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 \`experimental.decision_trace\` you can show the user. Alternatively call \`list_namespaces\` to discover namespaces, optionally \`namespace_router\` to rank candidates from user intent, then \`query\` (preset fast/detailed/full), \`count\`, \`query_documents\`, \`keyword_search\`, or \`generate_urls\` as needed. For \`setupCoreServer\` / package-root \`resolveConfig\`, \`PINECONE_INDEX_NAME\` (or \`--index-name\`) is required in addition to \`PINECONE_API_KEY\`. Misconfiguration surfaces at startup, not as tool errors.
53
+
exportconstCORE_SERVER_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 \`experimental.decision_trace\` you can show the user. Alternatively call \`list_namespaces\` to discover namespaces, optionally \`namespace_router\` to rank candidates from user intent, then \`query\` (preset fast/detailed/full), \`count\`, \`query_documents\`, \`keyword_search\`, or \`generate_urls\` as needed.
55
54
56
55
${SERVER_FEATURES_AND_NOTES}
57
56
@@ -66,13 +65,9 @@ Multi-source (when configured): call list_sources, then list_namespaces (all sou
66
65
/** Alliance-only supplement appended to core instructions for {@link setupAllianceServer}. */
67
66
exportconstALLIANCE_INSTRUCTIONS_APPENDIX=`
68
67
69
-
Alliance deployment: The Alliance CLI and \`resolveAllianceConfig\` default the index to \`rag-hybrid\` (and rerank to \`bge-reranker-v2-m3\`) when those env vars are omitted.
70
-
71
-
For manual flows with the full tool surface, call \`list_namespaces\` -> \`suggest_query_params\` -> \`query\` (use preset fast/detailed/full per suggestion) or \`count\` (the suggest step is a mandatory gate unless \`PINECONE_DISABLE_SUGGEST_FLOW=true\`).
72
-
73
-
Alliance usage (after list_namespaces):
74
-
4. Call suggest_query_params before query/count/query_documents tools (mandatory flow gate) to get suggested_fields and recommended_tool.
75
-
5. Use count for count questions, \`query\` with the appropriate preset for chunk-level retrieval, or query_documents for full-document content.`;
68
+
Manual Alliance flow (after list_namespaces):
69
+
- Call suggest_query_params before query (preset fast/detailed/full per suggestion), count, or query_documents — mandatory gate unless PINECONE_DISABLE_SUGGEST_FLOW=true
70
+
- Use the recommended preset/tool from the suggestion response`;
76
71
77
72
/** MCP instructions for {@link setupAllianceServer} (core tools plus Alliance tools). */
0 commit comments