Adding user metadata on query #1288
robmartin-scibite
started this conversation in
General
Replies: 1 comment
-
HI @robmartin-scibite, this feature is planned: #1122 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to add additional metadata to the users query before routing to the numerous
ContentRetrievers
. Examples of this may be additional filters/parameters selected by the user when submitting a question, the language used before translation, user preferences loaded from a datastore or the result of preprocessing the query (eg entities found when performing NER on the question). This is common data which will be used by the routing algorithm, multipleContentRetrievers
and also downstream in the chain and perhaps beyond after we use an LLM to generate a result.The
Query
class does have metadata, but no way to dynamically add custom properties. Is there any alternative method I have not considered or features planned to support this?Beta Was this translation helpful? Give feedback.
All reactions