Skip to content

Prompt-time filter expressions for RetrievalAugmentationAdvisor/VectorStoreDocumentRetriever #1776

@habuma

Description

@habuma

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.

Metadata

Metadata

Assignees

Labels

RAGIssues related to Retrieval Augmented GenerationenhancementNew feature or requestmetadata filters

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions