Code Monkey home page Code Monkey logo

Comments (8)

eyurtsev avatar eyurtsev commented on September 14, 2024

Hi @NageshMashette,

  1. Docs are available here: localhost:800/docs. Check the examples directory to see client and server combinations. I suggest using the python RemoteRunnable client to interact with the server.
  2. The chain that you've implementing will NOT work correctly for what I'd consider server use since it has a single global state for the memory that will be shared between all users. We'll be releasing more documentation on how to set this up in the upcoming 1-2 weeks.

from langserve.

eyurtsev avatar eyurtsev commented on September 14, 2024

Closing as this is not an issue but a question

from langserve.

NageshMashette avatar NageshMashette commented on September 14, 2024

https://github.com/langchain-ai/langserve/blob/main/examples/conversational_retrieval_chain/client.ipynb
without memory also im facing issue , i fallowed client code provided in example folder.

i used
**from langserve import RemoteRunnable
remote_runnable = RemoteRunnable("http://localhost:8000/")

await remote_runnable.ainvoke({"question": "Hi how are you?", "chat_history": ""})**

HTTPStatusError: Client error '404 Not Found' for url 'http://localhost:8000/invoke'
For more information check: https://httpstatuses.com/404 for {"detail":"Not Found"}

from langserve.

murali-innerfit avatar murali-innerfit commented on September 14, 2024

faced same issue .After updating to latest version of langserve its started working for me.

from langserve.

NageshMashette avatar NageshMashette commented on September 14, 2024

faced same issue .After updating to latest version of langserve its started working for me.

are you able to execute with memory?

from langserve.

navjotmakkar avatar navjotmakkar commented on September 14, 2024

Has anyone tried to combine conversation memory with langchain chain that is served using langserve?

from langserve.

eyurtsev avatar eyurtsev commented on September 14, 2024

I don't recommend using the old memory abstractions. Instead take a look at the examples in the readme there are examples that show how to handle conversation history including multi user support.

from langserve.

NageshMashette avatar NageshMashette commented on September 14, 2024

thanks @eyurtsev ok let me try it.

from langserve.

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.