#Adding Real-Time Web Search and Local DB Search to OpenAI Assistant API

1 messages · Page 1 of 1 (latest)

empty wharf
#

I currently have a chatbot built on the Assistant API that handles document uploads. Now, I would like to add two features:

Real-time web search when the answer is not available in the documents.
Local database search based on user requirements.
How can I implement these features?

empty wharf
inner totem
empty wharf
# inner totem there are many examples for function calling in openai cookbook and github. what...

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"
]
}
}

inner totem
empty wharf
#

okay , if i succed to run the function and after that it will be possible to do real time web search

inner totem
#

you run the search on your server and only pass the results. you dont give any url, etc. to it

empty wharf
inner totem
#

your own server that does all the api calls. openai servers will not run the search

empty wharf
inner totem