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: README.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
@@ -238,7 +238,7 @@ During `BuildIndexAsync()` the gateway:
238
238
- generates embeddings only for tools that are missing in the store
239
239
- upserts the newly generated vectors back into the store
240
240
241
-
This avoids recalculating tool embeddings on every rebuild while still refreshing them automatically when the descriptor document changes. Query embeddings are still generated at search time from the registered `IEmbeddingGenerator<string, Embedding<float>>`.
241
+
This avoids recalculating tool embeddings on every rebuild while still refreshing them automatically when the descriptor document changes. Stored vectors are scoped to both the descriptor hash and the resolved embedding-generator fingerprint, so changing the provider or model automatically forces regeneration. Query embeddings are still generated at search time from the registered `IEmbeddingGenerator<string, Embedding<float>>`.
Copy file name to clipboardExpand all lines: src/ManagedCode.MCPGateway/McpGateway.cs
+54-7Lines changed: 54 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ public sealed class McpGateway(
44
44
privateconststringSourceLoadFailedMessageTemplate="Failed to load tools from source '{0}': {1}";
45
45
privateconststringDuplicateToolIdMessageTemplate="Skipped duplicate tool id '{0}'.";
46
46
privateconststringEmbeddingCountMismatchMessageTemplate="Embedding generation returned {0} vectors for {1} tools.";
47
-
privateconststringEmbeddingGeneratorMissingMessage="No keyed or unkeyed IEmbeddingGenerator<string, Embedding<float>> is registered. Lexical fallback only.";
47
+
privateconststringEmbeddingGeneratorMissingMessage="No keyed or unkeyed IEmbeddingGenerator<string, Embedding<float>> is registered. Stored tool embeddings may be reused, but search falls back lexically without a query embedding generator.";
0 commit comments