Find answers from the community

Updated 3 months ago

No worries, managed to figure it out!:

No worries, managed to figure it out!:

Plain Text
        return VectorIndexRetriever(
            index=index,
            similarity_top_k=similarity_top_k,
            doc_ids=context_filter.docs_ids if context_filter else None,
            filters=MetadataFilters(filters = [ExactMatchFilter(key=file_name,value=file_name)]),
        )
L
1 comment
Yea, we have a unified interface for filtering πŸ™‚
Add a reply
Sign up and join the conversation on Discord