The community member is asking if it is possible to dynamically adjust the alpha parameter of a Hybrid Retriever that has already been created, or if this can only be done at instantiation. The comments suggest that it is possible to dynamically adjust the alpha value, with one community member stating that the community member can likely just do retriever.alpha = 0.5 to update the value. Another community member confirms that the community member can adjust the value without needing to reinstantiate the retriever. However, one community member notes that when trying to set the alpha value, it appears as retriever._alpha rather than retriever.alpha, and questions whether this is conventional and if they should be hesitant to dynamically update this property or make it a normal property with the @property decorator.
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)
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?
@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?