Find answers from the community

Updated 11 months ago

Is there a way to dynamically adjust the

Is there a way to dynamically adjust the alpha parameter of a Hybrid Retriever that has already been created? Or can this only be done at instantiation? (I'm currently digging into the docs to find this answer myself but figured I'd ask in case someone else had encountered this)
L
n
7 comments
What kind of retriever?

Since its python, you can likely just do retriever.alpha = 0.5
So if I had a retriever that was instantiated I could technically adjust this value before a particular query to the retriever? I don't need to reinstantiate?
exactly πŸ‘
Wonderful.. this is very helpful. Thank you
@Logan M Starting this part of my tool... it looks like when I try to set the alpha value in a retriever it looks like :
retriever._alpha rather than retriever.alpha

My intuition tells me this is not conventional. Should I be hestitant to dynamically update this property? Or should I just make a make this a normal property with the @property decorator?
I think its fine personally haha

Of course making it a property is the "correct" thing to do
Haha fair enough
Add a reply
Sign up and join the conversation on Discord