-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to check Langserve Rest API swagger for ConversationalRetrievalChain with memory. #96
Comments
Hi @NageshMashette,
|
Closing as this is not an issue but a question |
https://github.com/langchain-ai/langserve/blob/main/examples/conversational_retrieval_chain/client.ipynb i used await remote_runnable.ainvoke({"question": "Hi how are you?", "chat_history": ""})** HTTPStatusError: Client error '404 Not Found' for url 'http://localhost:8000/invoke' |
faced same issue .After updating to latest version of langserve its started working for me. |
are you able to execute with memory? |
Has anyone tried to combine conversation memory with langchain chain that is served using langserve? |
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. |
thanks @eyurtsev ok let me try it. |
memory = ConversationBufferWindowMemory(k=4, memory_key="chat_history", return_messages=True)
qa = ConversationalRetrievalChain.from_llm(
llm,
db.as_retriever(search_kwargs={"k": 3}),
memory=memory
)
I created RAG QA with ConversationalRetrievalChain with memory, and did
app = FastAPI()
from langserve import add_routes
add_routes(app, qa)
its executed and given api also swagger UI also available how to test and in which endpoint i need to pass user question to get the response.
The text was updated successfully, but these errors were encountered: