-
Hello, my code (simple RAG) runs into an error when I try to use a retriever (PGVector) that I have made available via LangServe:
Relevant part of the client code:
It appears to me that the type checking of the RemoteRunnable fails, but I was unable to find a method to make the runnable object appear as the correct type (e.g. VectorStoreRetriever) on the client side. Versions used:
Is this a bug or am I missing something ? |
Beta Was this translation helpful? Give feedback.
Answered by
eyurtsev
Feb 23, 2024
Replies: 1 comment 3 replies
-
Can you share a working example of the the retriever itself? Does the code below work? What does it return? retriever = RemoteRunnable("http://localhost:8000/retrieval")
retriever.invoke('my query') |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The type checking needs to be relaxed on ConversationalRetrieverChain.
For now, what you could do is wrap the RemoteRunnable inside a retriever