Coder Social home page Coder Social logo

Comments (2)

shreyas-damle avatar shreyas-damle commented on July 17, 2024

Observations:

  • When checked by enabling debug mode, langchain_community.document_loaders.pebblo is giving warning when it is timing out(timeout in code is 20 seconds). WARNING:langchain_community.document_loaders.pebblo:Unable to reach pebblo server.
  • The logs also say that DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): localhost:8000, this means that the connection is established with Pebblo Server and server has accepted the request. Note that, "Unable to reach pebblo server" is custom message which is misleading here.
  • The exception is raised when timeout of 20 seconds is reached and in parallel, Pebblo Server is finished processing request with it's speed few seconds later if the payload is larger and generating report.

Issue is not on the Pebblo Server side, its the way connection timeout is handled on Pebblo Safe Loader side.

from pebblo.

rahul-trip avatar rahul-trip commented on July 17, 2024

Below is the scenario when /loader/doc api server is busy classifying or generating report and pebblo langchain client waits for its response.

  • Reduced timeout to 5 seconds: reduced processing time by half, the plugin will not really wait for the response. (Earlier loading time was ~30 secs now it takes 15 secs to finish the loading(On my machine.))
  • Assumed pebblo-server and pebblo client relationship as async for now, hence changed warning logs to debug logs, this will suppress the unable to connect to pebblo server output and will now appear in debug mode.

@srics , can we reduce it even further? please share your thoughts.

PR: daxa-ai/langchain-rel-0.1.12#21

from pebblo.

Related Issues (20)

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.