Replies: 1 comment 1 reply
-
Hi @hodge-jai. Can you share the code example thats causing this issue? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am creating a RAG application and was wondering if there was a simple way to pull all the documents from my ElasticsearchDocumentStore instance that have either a specific
title
or specificsource_id
. I'm not looking to use it as part of a pipeline, I simply want to retrieve the documents that fit the criteria. I've used a document splitter as part of my indexing pipeline, and would like to allow users a way to see the rest of the original document that was split.I've tried both using the
filter_documents
method that is part of theDocumentStore
class, as well as theFilterRetriever
retriever, but I'm not sure if my query syntax for the filters parameter is correct, because I keep getting an empty array as a return value, implying that it can't find any documents that match thesource_id
ortitle
that I've supplied even though I know for a fact that the documents exist. I've used various filters values such as{"field": "title", "operator": "==", "value": title}
and{"field": "title", "operator": "in", "value": [list_of_titles]}
to no avail. A simple{"title": title}
filter doesn't not work, either.I'm sure I'm making a simple mistake here, so any guidance would be appreciated!
Beta Was this translation helpful? Give feedback.
All reactions