GithubHelp home page GithubHelp logo

h2oai / enterprise-h2ogpte Goto Github PK

View Code? Open in Web Editor NEW
74.0 38.0 5.0 414 KB

Client Code Examples, Use Cases and Benchmarks for Enterprise h2oGPTe RAG-Based GenAI Platform

Home Page: https://h2o.ai/platform/enterprise-h2ogpt/

License: Apache License 2.0

Makefile 4.97% Python 95.03%
benchmark genai llm python rag

enterprise-h2ogpte's Introduction

Enterprise h2oGPTe - GenAI RAG

In this repository, you'll find code examples, notebooks and benchmarks.

enterprise-h2ogpte's People

Contributors

arnocandel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

enterprise-h2ogpte's Issues

TimeoutError: answer_question_using_context timed out, took more than 60s

Any reasons why Im getting this error when running below code.

from h2ogpte import H2OGPTE

API_KEY = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
REMOTE_ADDRESS = "https://h2ogpte.genai.h2o.ai"

client = H2OGPTE(address=REMOTE_ADDRESS, api_key=API_KEY)

llm = "mistralai/Mixtral-8x7B-Instruct-v0.1"

answer = client.answer_question(question="Who are you?", llm=llm).content
print(f"{llm}: {answer}", flush=True)

Error:

Traceback (most recent call last):
  File "E:\TechLabs\SyntheticData_2\test2.py", line 10, in <module>
    answer = client.answer_question(question="Who are you?", llm=llm).content
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\TechLabs\SyntheticData_2\venv\Lib\site-packages\h2ogpte\h2ogpte.py", line 335, in answer_question
    ret = self._lang(
          ^^^^^^^^^^^
  File "E:\TechLabs\SyntheticData_2\venv\Lib\site-packages\h2ogpte\h2ogpte.py", line 209, in _lang
    res = self._post("/rpc/lang", marshal(dict(method=method, params=kwargs)))
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\TechLabs\SyntheticData_2\venv\Lib\site-packages\h2ogpte\h2ogpte.py", line 179, in _post
    self._raise_error_if_any(res)
  File "E:\TechLabs\SyntheticData_2\venv\Lib\site-packages\h2ogpte\h2ogpte.py", line 197, in _raise_error_if_any
    raise InternalServerError(error)
h2ogpte.errors.InternalServerError: InternalServerError: Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/exceptions.py", line 65, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/usr/local/lib/python3.10/dist-packages/starlette/_exception_handler.py", line 64, in wrapped_app
    raise exc
  File "/usr/local/lib/python3.10/dist-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    await app(scope, receive, sender)
  File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 756, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 776, in app
    await route.handle(scope, receive, send)
  File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 297, in handle
    await self.app(scope, receive, send)
  File "src/h2ogpte_core/server.py", line 413, in __call__
  File "/usr/local/lib/python3.10/dist-packages/starlette/_exception_handler.py", line 64, in wrapped_app
    raise exc
  File "/usr/local/lib/python3.10/dist-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    await app(scope, receive, sender)
  File "src/h2ogpte_core/server.py", line 409, in app
  File "src/h2ogpte_core/server.py", line 405, in rpc
  File "src/h2ogpte_core/server.py", line 112, in redis_async_wrapper
TimeoutError: answer_question_using_context timed out, took more than 60s

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.