Skip to content
Discussion options

You must be logged in to vote

The type checking needs to be relaxed on ConversationalRetrieverChain.

For now, what you could do is wrap the RemoteRunnable inside a retriever

class MyCustomRetriever(BaseRetriever):
    @abstractmethod
    def _get_relevant_documents(
        self, query: str, *, run_manager: CallbackManagerForRetrieverRun
    ) -> List[Document]:
        """Get documents relevant to a query.
        Args:
            query: String to find relevant documents for
            run_manager: The callbacks handler to use
        Returns:
            List of relevant documents
        """
      invoke the remote runnable here

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@LarsAC
Comment options

@eyurtsev
Comment options

Answer selected by LarsAC
@LarsAC
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #475 on February 22, 2024 15:13.