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
@@ -198,13 +198,13 @@ To use a different vector database, implement the `ToolStore` interface. The `sy
198
198
199
199
> **Best Practice: Crafting Text for High-Quality Embeddings**
200
200
>
201
-
> The quality of the semantic search is highly dependent on the text used to generate the embedding for each tool. For best results, your `ToolStore`'s `sync` method should create a single, rich string that includes the tool's name, its detailed description, and any relevant keywords.
201
+
> The quality of the semantic search is highly dependent on the text used to generate the embedding for each tool. For best results, your `ToolStore`'s `sync` method should create a single, rich string that includes the tool's name, its detailed description, and any relevant searchTerms.
202
202
>
203
203
> The default `InMemoryStore` uses the following format as its best practice, and replicating this pattern in your custom store will ensure you get great search accuracy:
For persistent stores (like Supabase or Pinecone), it's crucial to implement `sync` efficiently to avoid re-calculating embeddings for unchanged tools on every application restart. The library provides a `createToolContentHash` utility to help with this.
@@ -316,8 +316,8 @@ export class SupabaseStore implements ToolStore {
316
316
// Create the rich text for each tool to be embedded
0 commit comments