Skip to content

Commit 2d09aba

Browse files
committed
Update the intro
1 parent 995c965 commit 2d09aba

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

tool_use/tool_search_alternate_approaches.ipynb

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,28 @@
66
"source": [
77
"# Tool Search: Alternate Approaches\n",
88
"\n",
9-
"**Recommend first reading the cookbook: [Tool Search with Embeddings](./tool_search_with_embeddings.ipynb).**\n",
9+
"**Recommend first reading see the cookbook: Tool Search with Embeddings.**\n",
1010
"\n",
11-
"The goal of this cookbook is to show alternate approaches to tool search (or \"tool discovery\") with Claude. We'll demonstrate two useful techniques:\n",
11+
"The goal of this cookbook is to show of some alternate approaches to using tool search (or really \"tool discovery\") with Claude. In this cookbook we'll demonstrate two useful techniques:\n",
1212
"\n",
13-
"1. **Tools can be discovered without \"search\"**. Instead of semantic search, we'll include all tool names in Claude's system prompt and provide a `describe_tool` tool for Claude to load specific tools into context.\n",
14-
"2. **Tools don't need to be in the `tools` list initially**. Using `defer_loading=True`, tools can be added dynamically while preserving prompt caching.\n",
13+
"1. Tools can be discovered without \"Search\". In this cookbook, we'll include all of the tool names in Claude's system prompt and provide Claude with decribe_tool_tool to load the tool fully into \n",
14+
"Claude's context.\n",
15+
"2. Tools do not have to be passed in the request's `tools` list if they have not been loaded into Claude's context yet. This can be a bit more application complexity to manage, but can allow your \n",
16+
"application to keep requests small, even while Claude has potential access to thousands of tools.\n",
1517
"\n",
16-
"This cookbook demonstrates these techniques using a describe_tool example, but the same pattern applies to many discovery mechanisms (searching, listing by category, etc.).\n",
18+
"Users have a lot of flexibility to design tool search to keep Claude's context (and Messages requests) as focused as possible.\n",
1719
"\n",
1820
"## Prerequisites\n",
1921
"\n",
20-
"- Python 3.11+\n",
21-
"- Anthropic API key\n",
22-
"- Basic understanding of [Claude Tool Use](https://docs.anthropic.com/en/docs/build-with-claude/tool-use)\n",
22+
"Before following this guide, ensure you have:\n",
2323
"\n",
24-
"## Setup"
24+
"**Required Knowledge**\n",
25+
"- Python fundamentals - comfortable with functions, dictionaries, and basic data structures\n",
26+
"- Basic understanding of Claude tool use - we recommend reading the [Tool Use Guide](https://docs.anthropic.com/en/docs/build-with-claude/tool-use) first\n",
27+
"\n",
28+
"**Required Tools**\n",
29+
"- Python 3.11 or higher\n",
30+
"- Anthropic API key ([get one here](https://docs.anthropic.com/claude/reference/getting-started-with-the-api))"
2531
]
2632
},
2733
{

0 commit comments

Comments
 (0)