I have developed a custom GPT that utilizes the web search function, a capability that custom GPTs possess by default. This feature is crucial for my application as it allows for real-time data retrieval from the web.
I am currently in the process of transitioning this custom GPT into the Assistance API. However, I have encountered an issue: I cannot find an option to enable web search capabilities within the Assistance API.
Could you please advise if there is a way to enable web search functionality in the Assistance API? If this feature is not available, is there an alternative approach I can take to integrate real-time web search within the Assistance API?
I mean, you already clearly have access to the Internet as you are using it to call the API, presumably you have the ability to search too.
The difference between search and, say, document retrieval or running a Python environment is that OpenAI doesn’t need to call any other external APIs to do those. In order to search, they need to call an external API.
That said, who knows… maybe the same time they launch SearchGPT they’ll include it in the API or something like it.
I’ve used to Python external Libraries to implement a web search functionalities. All I can say is, use Google, BeautifulSoup4 to fetch and extract data from internet. It is doable.
I’ll note the Jina Reader API is free to use (right now anyway) and that includes using it to search (for now anyway).
For instance, if I wanted to search “What is the equation for the volume on an n-dimensional hypersphere?” I would just append the URL-encoded question to the Jina Reader search API endpoint https://s.jina.ai,
Does this give replies to no so straight questions? What if I ask like give me top 10 CRM Analytic Tools of 2023. Because the answer you got for your question is from Wikipedia and it’s followed link.
None the less, thanks for the information, will definitely try this.
It’s randomly selecting some URL(assuming using python Google Library), and them scrapping for exact data(assuming using beautifulsoup4 python library) and then giving response exactly like in the article.
This is exactly what I mention in my other comments. There’s no AI involved in this. The next step in this would be to pass this information back to AI for the summarization and give a final response to user.
It’s not my thing, it’s just a free service that performs a search and returns some results in a markdown format that is easy for an LLM to process.
Hi
I’m working with web search using the Assistants API, and believe me, it’s not easy.
Today, I created this video as a summary of the issues I’ve encountered. I hope you find some of its advice useful.