Skip to content

Semantic document search using dates to narrow down the search #2759

Discussion options

You must be logged in to vote

Hi @Squishy-33 thank you for explaining your setup in such detail. Your BM25Retriever can handle any filters via the filters parameter in its retrieve method:

filters: Optional[Dict[str, Union[Dict, List, str, int, float, bool]]] = None,

However, note that the search won't really be a semantic search but only a keyword-based search if you use ElasticsearchDocumentStore with a BM25Retriever. For semantic search you would need to use an EmbeddingRetriever and with your number of documents a DocumentStore other than ElasticsearchDocumentStoremakes more sense (faiss or milvus). The indexing takes much longer tha…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@shayanalipour
Comment options

@julian-risch
Comment options

Answer selected by julian-risch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants