bdambrosio / llmsearch

llm enhanced web search
132 stars 23 forks source link

Great job #3

Open ShamsAlZaman opened 8 months ago

ShamsAlZaman commented 8 months ago

Hello! How are you? Great job with this tool! I tried it locally and it seems good. However, sometimes there are non-factual answers like “What is the latest version of Android? its answer was Android 12” and so on. I noticed that you updated the README and referred to an update for this repository. May I get and try it?

bdambrosio commented 8 months ago

Thanks. 'latest' should have helped, it's a keyword checked for to change to google search priorities. Problem is, given my limited web skills, most pages are dynamically generated and don't have a pub-date header. And, sometimes new pages are just plain wrong. I'll see if there is anything in the version I'm using locally that might help with this. It is a very stripped-down version of the code embedded in the repository for the research bot I'm building, and which I'm not quite ready to release, doesn't use the pld plugin api, I'll ask my bot and see if it comes up with a better answer.

Well, maybe just luck of the draw: Web result: The latest version of Android is 14.0, released on October 4, 2023. It introduces exciting features including a new system UI with Material You, redesigned widgets, AppSearch, Game Mode, and new codecs, as well as new protections like privacy dashboard and approximate location. Android 14 also includes better support for large screens and prevents the installation of older apps from Android 5.1 and earlier. Users are encouraged to update to the latest version of Android for security reasons. The update also brings power consumption tracking with the Power Profiler and a new Gallery mode in Compose Preview. For Pixel phone users, the update can be activated through Google Assistant. Additionally, Android 14 won't be available for devices in the beta program. There are also reminders in Play Console for developers to migrate to the latest version of Play Billing Library and to upgrade to version 5.0 or later before November.

The new code uses fastapi and I run it as a uvicorn server, I'll see how easy it is to split it out. I'm not sure it includes image search, do you use that much?

ShamsAlZaman commented 8 months ago

My testing was done by specifying Google results to the top three websites only, so this may be the reason for the different answers. Is there anything you can do to reduce the time it takes to handle the request? It would be great if you could combine this repository with Function Calling so that the model specifies when to use Google search, not always.

I noticed that you are using an old package code with OpenAI which has been updated a lot. Therefore, there are many errors you must handle before running the search script. I think you should specify the package version of OpenAI which you have used for the code.

I haven’t tested the image search yet. I am excited to see the new version 👀👀.