This repository was archived by the owner on May 5, 2026. It is now read-only.
custom per_user_vector_store_retriever can't get configurable fields get filled if they get defined already in other runnable #589
shaojun (shaojun)
started this conversation in
General
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
hi.
I created a basic
RunnableWithMessageHistorywhich has configurable fields:user_idandconversation_id, all set with is_shared to true.Also, I need to add a
per_user_vector_store_retrieverin chain for RAG, the retriever itself relies on configurable field:user_idas well.so the chain now is like:
the problem is, in above code, the
user_idinclass PerUserVectorStoreRetrieverare always empty, whileuser_idis 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_idandmeta_datacan get filled in retriever.could you help?
Beta Was this translation helpful? Give feedback.
All reactions