-
Notifications
You must be signed in to change notification settings - Fork 593
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
add web search #273
add web search #273
Conversation
I think this pr is awesome! Any reason why you close this? |
I have just noticed this new PR but before reviewing I think it would be better for you to do local cheks first before committing and pushing. It sends quite a lot of emails into my inboxes... And may I ask why you close this? |
This pr is submmit from my fork, it can't use sercet api key, so I opened another pr #274 from a branch. |
sorry about that, i met a wierd error. Everything goes well in my laptap, but get wrong in github, it said i give a 'function' type, but expect 'Callable' type, i dont know why, so i try to delete some functions. |
This pr is submmit from my fork, it can't use sercet api key, so I opened another pr #274 from a branch. |
Description
Search web for information.
When agent ask a question, google search can provide a list of urls which relative with the question, then using requests to get
each url and extract text. Split the text to small chunks and feed to chatgpt to get answer.
Notice: these functions require google api key you can find here https://developers.google.com/custom-search/v1/overview,
and search engine id you can find here https://cse.google.com/cse/all.
So, can anyone add these two key into the github actions, my pr need them to pass the test, thanks!
They look like this:
Motivation and Context
Why is this change required? What problem does it solve?
Give the agent ability to search internet.
Types of changes
What types of changes does your code introduce? Put an
x
in all the boxes that apply:Implemented Tasks
Checklist
Go over all the following points, and put an
x
in all the boxes that apply.If you are unsure about any of these, don't hesitate to ask. We are here to help!