diff --git a/haystack/database/faiss.py b/haystack/database/faiss.py index 7f2335299..2376b4484 100644 --- a/haystack/database/faiss.py +++ b/haystack/database/faiss.py @@ -141,6 +141,8 @@ class FAISSDocumentStore(SQLDocumentStore): def query_by_embedding( self, query_emb: np.array, filters: Optional[dict] = None, top_k: int = 10, index: Optional[str] = None ) -> List[Document]: + if filters: + raise Exception("Query filters are not implemented for the FAISSDocumentStore.") if not self.faiss_index: raise Exception("No index exists. Use 'update_embeddings()` to create an index.") query_emb = query_emb.reshape(1, -1)