h2oai / h2ogpt

Private chat with local GPT with document, images, video, etc. 100% private, Apache 2.0. Supports oLLaMa, Mixtral, llama.cpp, and more. Demo: https://gpt.h2o.ai/ https://codellama.h2o.ai/
http://h2o.ai
Apache License 2.0
10.94k stars 1.2k forks source link

h2o Windows installer "Web Search" and "Q/A" #1676

Closed UUSR closed 2 weeks ago

UUSR commented 3 weeks ago

I installed the installer for Windows but I don’t have it in the application "Web-Search integration with Chat and Document Q/A" It is indicated here: https://github.com/h2oai/h2ogpt/tree/main#windows-1011-64-bit-with-full-document-qa-capability Windows 10/11 64-bit with full document Q/A capability. I don't have a function in my interface. 2024-06-09_213258 In the example on the website https://gpt.h2o.ai/ it looks like this: 2024-06-09_213316 I looked at the file ./src/utils.py

have_chromamigdb = False
try:
    assert distribution('chromamigdb') is not None
    have_chromamigdb = True
except (PackageNotFoundError, AssertionError):
    pass

have_serpapi = False
try:
    assert distribution('google-search-results') is not None
    have_serpapi = True
except (PackageNotFoundError, AssertionError):
    pass

How can I enable these additional features?

pseudotensor commented 2 weeks ago

Hi, you need to have the SERP API key in your env.

https://github.com/h2oai/h2ogpt/blob/main/docs/README_SerpAPI.md