Fix multiagents docs (#549)
This commit is contained in:
parent
63adfcd836
commit
3fc2d0e4e8
|
@ -116,7 +116,7 @@ print(visit_webpage("https://en.wikipedia.org/wiki/Hugging_Face")[:500])
|
|||
Now that we have all the tools `search` and `visit_webpage`, we can use them to create the web agent.
|
||||
|
||||
Which configuration to choose for this agent?
|
||||
- Web browsing is a single-timeline task that does not require parallel tool calls, so JSON tool calling works well for that. We thus choose a `JsonAgent`.
|
||||
- Web browsing is a single-timeline task that does not require parallel tool calls, so JSON tool calling works well for that. We thus choose a `ToolCallingAgent`.
|
||||
- Also, since sometimes web search requires exploring many pages before finding the correct answer, we prefer to increase the number of `max_steps` to 10.
|
||||
|
||||
```py
|
||||
|
|
|
@ -119,7 +119,7 @@ print(visit_webpage("https://en.wikipedia.org/wiki/Hugging_Face")[:500])
|
|||
अब जब हमारे पास सभी टूल्स `search` और `visit_webpage` हैं, हम उनका उपयोग वेब एजेंट बनाने के लिए कर सकते हैं।
|
||||
|
||||
इस एजेंट के लिए कौन सा कॉन्फ़िगरेशन चुनें?
|
||||
- वेब ब्राउज़िंग एक सिंगल-टाइमलाइन टास्क है जिसे समानांतर टूल कॉल की आवश्यकता नहीं है, इसलिए JSON टूल कॉलिंग इसके लिए अच्छी तरह काम करती है। इसलिए हम `JsonAgent` चुनते हैं।
|
||||
- वेब ब्राउज़िंग एक सिंगल-टाइमलाइन टास्क है जिसे समानांतर टूल कॉल की आवश्यकता नहीं है, इसलिए JSON टूल कॉलिंग इसके लिए अच्छी तरह काम करती है। इसलिए हम `ToolCallingAgent` चुनते हैं।
|
||||
- साथ ही, चूंकि कभी-कभी वेब सर्च में सही उत्तर खोजने से पहले कई पेजों की सर्च करने की आवश्यकता होती है, हम `max_steps` को बढ़ाकर 10 करना पसंद करते हैं।
|
||||
|
||||
```py
|
||||
|
|
|
@ -120,7 +120,7 @@ print(visit_webpage("https://en.wikipedia.org/wiki/Hugging_Face")[:500])
|
|||
现在我们有了所有工具`search`和`visit_webpage`,我们可以使用它们来创建web agent。
|
||||
|
||||
我们该选取什么样的配置来构建这个agent呢?
|
||||
- 网页浏览是一个单线程任务,不需要并行工具调用,因此JSON工具调用对于这个任务非常有效。因此我们选择`JsonAgent`。
|
||||
- 网页浏览是一个单线程任务,不需要并行工具调用,因此JSON工具调用对于这个任务非常有效。因此我们选择`ToolCallingAgent`。
|
||||
- 有时候网页搜索需要探索许多页面才能找到正确答案,所以我们更喜欢将 `max_steps` 增加到10。
|
||||
|
||||
```py
|
||||
|
|
Loading…
Reference in New Issue