Replies: 1 comment 2 replies
-
Likely need to propagate methods for configurable fields in the def configurable_fields(
self, **kwargs: AnyConfigurableField
) -> RunnableSerializable[Input, Output]:
"""Configure particular runnable fields at runtime.
return self.child_runnable.configurable_fields(**kwargs) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hi.
I created a basic
RunnableWithMessageHistory
which has configurable fields:user_id
andconversation_id
, all set with is_shared to true.Also, I need to add a
per_user_vector_store_retriever
in chain for RAG, the retriever itself relies on configurable field:user_id
as well.so the chain now is like:
the problem is, in above code, the
user_id
inclass PerUserVectorStoreRetriever
are always empty, whileuser_id
is working good inget_chat_history(user_id: str, conversation_id: str)
.Later, by a testing, If I don't use the
RunnableWithMessageHistory
, then all good, theuser_id
andmeta_data
can get filled in retriever.could you help?
Beta Was this translation helpful? Give feedback.
All reactions