Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autogen not able to search online #287

Closed
strider1000 opened this issue Oct 18, 2023 · 11 comments
Closed

Autogen not able to search online #287

strider1000 opened this issue Oct 18, 2023 · 11 comments
Labels
question Further information is requested

Comments

@strider1000
Copy link

Mine is up and running but my assistant keeps telling me ‘it is an AI assistant and so doesn’t have the ability to load local documents or search online.’

@sonichi sonichi added the question Further information is requested label Oct 18, 2023
@mike12432
Copy link

did you try another model?

@gagb
Copy link
Collaborator

gagb commented Oct 18, 2023

Hi, can you please provide more details of your setup including minimal code/example that reproduces the error.

@strider1000
Copy link
Author

Hi, can you please provide more details of your setup including minimal code/example that reproduces the error.

That problem solved but now it claims a file in given file path doesnt exist, when it 100% does. can you help?
Relevant code below:

task = """
analyse the sales price listings in the this dataset (r"C:\Users\paddy\wulguru_data_set.xlsx") and give me a breakdown of the sales prices.
"""

And I get:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\paddy\wulguru_data_set.xlsx'

@strider1000
Copy link
Author

strider1000 commented Oct 20, 2023

did you try another model?

Trying Mistral 7b model at the moment. It is quite slow but after completing a task it says please click the link for the excel file that is claims to have created, but it does not give you a link. Nor did it save an excel file anywhere on my PC.

@afourney
Copy link
Member

Which agents are you using? None of the agents can search online right now, as web search APIs need keys. You can write a web search function with your own key, and configure an agent for function execution.

@sonichi
Copy link
Contributor

sonichi commented Oct 21, 2023

Hi, can you please provide more details of your setup including minimal code/example that reproduces the error.

That problem solved but now it claims a file in given file path doesnt exist, when it 100% does. can you help? Relevant code below:

task = """ analyse the sales price listings in the this dataset (r"C:\Users\paddy\wulguru_data_set.xlsx") and give me a breakdown of the sales prices. """

And I get: FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\paddy\wulguru_data_set.xlsx'

Is the code executed in docker? If so, it won't have access to that path.

@miiiz
Copy link

miiiz commented Oct 25, 2023

Which agents are you using? None of the agents can search online right now, as web search APIs need keys. You can write a web search function with your own key, and configure an agent for function execution.

I added a web search function in the agentchat_function_call.ipynb example and it worked. but It seems that before web search function added I had some tasks done perfectly without calling the web search function. After web search function added agent easily choose to use web search with the same task. How can I make the assistant agent think carefully whether to use a function or not. I try to modify the system message but seems useless. Should I define more agents and try group chat? Thanks.

@gagb
Copy link
Collaborator

gagb commented Oct 25, 2023

Which agents are you using? None of the agents can search online right now, as web search APIs need keys. You can write a web search function with your own key, and configure an agent for function execution.

I added a web search function in the agentchat_function_call.ipynb example and it worked. but It seems that before web search function added I had some tasks done perfectly without calling the web search function. After web search function added agent easily choose to use web search with the same task. How can I make the assistant agent think carefully whether to use a function or not. I try to modify the system message but seems useless. Should I define more agents and try group chat? Thanks.

Can you please provide your code and error so that we can help you better? Improving the function description may also help.

@miiiz
Copy link

miiiz commented Oct 26, 2023

Which agents are you using? None of the agents can search online right now, as web search APIs need keys. You can write a web search function with your own key, and configure an agent for function execution.

I added a web search function in the agentchat_function_call.ipynb example and it worked. but It seems that before web search function added I had some tasks done perfectly without calling the web search function. After web search function added agent easily choose to use web search with the same task. How can I make the assistant agent think carefully whether to use a function or not. I try to modify the system message but seems useless. Should I define more agents and try group chat? Thanks.

Can you please provide your code and error so that we can help you better? Improving the function description may also help.

Sure. Thanks for your reply. My goal is to build an agent who can access functions when it has to do so.

Yesterday I try to use a UserProxyAgent and an AssistantAgent with functions(web search, python, shell). Then the AssistantAgent attends to solve all the tasks using web_search function. But that was not what i wanted. Some tasks could be solved in an easier way without using web_search function.

Now I build a groupchat with three agents: user_proxy, coder with function call, assistant. But now in a situation that the groupchat couldn't stop. Code and Examples attached. Thank you.
agentchat_function_call.ipynb.zip

@sonichi
Copy link
Contributor

sonichi commented Oct 28, 2023

About termination in group chat, you may be interested in #309

@thinkall
Copy link
Collaborator

We are closing this issue due to inactivity; please reopen if the problem persists.

jackgerrits pushed a commit that referenced this issue Oct 2, 2024
* Update tool use examples to use inner agents rather than subclassing

* fix

* Merge remote-tracking branch 'origin/main' into ekzhu-update-tool-use-example

* Merge branch 'main' into ekzhu-update-tool-use-example

* Fix links in the sample.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

7 participants