Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'in' operator with AstraEmbeddingRetriever filters in Haystack #1139

Closed
mercedesuniphore opened this issue Oct 16, 2024 · 1 comment · Fixed by #1145
Closed

'in' operator with AstraEmbeddingRetriever filters in Haystack #1139

mercedesuniphore opened this issue Oct 16, 2024 · 1 comment · Fixed by #1145
Assignees
Labels
feature request Ideas to improve an integration integration:astra P1

Comments

@mercedesuniphore
Copy link

Hi, I am trying to use the 'in' operator with AstraEmbeddingRetriever filters in Haystack but it does not retrieve any document, operator "==" works. Am I doing something wrong or is it not well implemented yet? I am using the last versions:

- haystack-ai = 2.6.1
- astra-haystack = 0.9.3 
def run_pipeline(self, query: str):
        filters = {
            "operator": "AND",
            "conditions": [
                {"field": "meta.name", "operator": "in", "value": ["programs", "promotions", "plans"]},
            ],
        }
        inputs = {  'embedder':
                        {'text': query},
                    'retriever':
                        {'filters': filters},
                    'ranker':
                        {'query': query},
                  }
        output = self.run(inputs)
        return output

This thread is related with issue: #865

@davidsbatista
Copy link
Contributor

hi @mercedesuniphore we've updated and released the astradb integration fixing the possible issue with the in operator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Ideas to improve an integration integration:astra P1
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants