What's the Best Practice to use the MCP Tools? #860
-
|
I found that in the example of My question is, what's the differents between these two way? Is there a difference in their efficiency? And why the first way need an embedding model? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
Hi, the reason why you might need an embedding model is for tool ragging (essentially being able to carry out semantic search and fetch tools from a vector store based on a query). The reason why we provide another way by default is so that if you want to just add tools without tool ragging, it should be simple to do. |
Beta Was this translation helpful? Give feedback.
Dynamic tools are selected using similarity search from a vector store, static tools will always be in the context.
If you want to use MCP tools pulled from the
rmcpintegration, you need to create aToolSetfrom them (likely viaToolSet::from_tools()), then add them in usingAgentBuilder::dynamic_tools().The agent tool-building stuff could probably use some love in terms of the documentation/having helper methods …