#Adding Real-Time Web Search and Local DB Search to OpenAI Assistant API
1 messages · Page 1 of 1 (latest)
I tried this but failed if you have xperience can you help me?
there are many examples for function calling in openai cookbook and github. what was the issue?
i wrote like this but is not doing real search
{
"name": "google_for_answers",
"description": "Search Google using a fully-formed HTTP URL to retrieve relevant information and enhance knowledge.",
"strict": false,
"parameters": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "The fully-formed HTTP URL to perform a search.",
"default": "https://google.serper.dev/search"
}
},
"required": [
"url"
]
}
}
that's not how functions work. see the official detailed document https://platform.openai.com/docs/guides/function-calling
okay , if i succed to run the function and after that it will be possible to do real time web search
you run the search on your server and only pass the results. you dont give any url, etc. to it
when you mean server do you mean platform.open.ai? Because i have already uploaded documents, just i need to add real time web search if the answers are not in the documents
your own server that does all the api calls. openai servers will not run the search
thank you for this anwer , one more question from platform ai may i coonect to the local db? and gettin answer from local db
you can make a function and make it get the data but the api cant connect directly