As RetrievalAugmentationAdvisor is expected to replace QuestionAnswerAdvisor, it should also support FILTER_EXPRESSION the way that QuestionAnswerAdvisor does.
This makes it possible to configure the advisor as a default advisor when creating a ChatClient and then plug in a filter expression for searching the vector store when submitting a prompt.
I suspect, based on how this works with RetrievalAugmentationAdvisor that the change required would be made to VectorStoreDocumentRetriever, as that's the place and implementation of DocumentRetriever that would be able to make use of the expression.
As
RetrievalAugmentationAdvisor
is expected to replaceQuestionAnswerAdvisor
, it should also supportFILTER_EXPRESSION
the way thatQuestionAnswerAdvisor
does.This makes it possible to configure the advisor as a default advisor when creating a
ChatClient
and then plug in a filter expression for searching the vector store when submitting a prompt.I suspect, based on how this works with
RetrievalAugmentationAdvisor
that the change required would be made toVectorStoreDocumentRetriever
, as that's the place and implementation ofDocumentRetriever
that would be able to make use of the expression.