I’ve been working on integrating the ChatGPT API into my application, and I’ve encountered a question regarding enabling web search functionality. I’m looking for a way to allow ChatGPT to provide web search results and return relevant information from the internet.
My initial thought was to use a call function to trigger web searches, but I’m concerned about whether the GPT model will be able to conduct searches like a human would. I understand that GPT-3.5 doesn’t have the capability to browse the internet directly.
Do you have any suggestions on how I can implement web search functionality for ChatGPT? Are there any alternative approaches that you recommend to achieve this? I want to ensure that the responses provided by ChatGPT are accurate and well-informed, and having access to web search results could greatly enhance its capabilities.
I’d greatly appreciate any insights or ideas you can provide. Thank you in advance for your help!
If, for example, the AI that can search the web got a search engine result for a PDF link, I’d have to provide some special “download and parse pdf to text” function that does all the processing in software to have a chance of the AI understanding just what little could be extracted from it.
In fact, I want to send a URL of the PDF that is on my server, it is completely readable and make a comparison with some text parameters that I am passing. using functions
PDF: Completely readable to you, but raw files, not to an AI.
This is the daily, exhausting, “how can I talk to my pdf” question.
PDF files not only are a binary data format, but also can be mostly images, like a PDF from scanning documents.
The easiest is to preprocess any files meant for AI consumption with a pdf-to-text utility, also including a pdf OCR text augmentation stage. Result, a database of text files that might still have some knowledge after tables have been garbled and other oddities.
Then you likely have more information in a txt file than you can pass to the AI all at once, a maximum of around 2000 words (or less if you want a long answer or chat history).