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

FilterError in WeaviateDocumentStore #810

Closed
vedantnaik19 opened this issue Jun 16, 2024 · 0 comments · Fixed by #811
Closed

FilterError in WeaviateDocumentStore #810

vedantnaik19 opened this issue Jun 16, 2024 · 0 comments · Fixed by #811
Labels
bug Something isn't working

Comments

@vedantnaik19
Copy link
Contributor

Describe the bug
A FilterError is raised when running a pipeline that includes a CacheChecker component and WeaviateDocumentStore.

raise FilterError(msg)
haystack.errors.FilterError: 'operator' key missing in {'file_path': 'filename.txt'}

To Reproduce
Steps to reproduce the behavior:

  1. Set up WeaviateDocumentStore (in this case running locally at localhost:8080).
  2. Create a pipeline with CacheChecker and WeaviateDocumentStore:
from haystack import Pipeline
from haystack.components.converters import TextFileToDocument
from haystack.components.writers import DocumentWriter
from haystack.components.caching import CacheChecker
from haystack_integrations.document_stores.weaviate import WeaviateDocumentStore

pipeline = Pipeline()
document_store = WeaviateDocumentStore(url="http:https://localhost:8080")
pipeline.add_component(instance=CacheChecker(document_store, cache_field="file_path"), name="cache_checker")
pipeline.add_component("converter", TextFileToDocument())
pipeline.add_component("writer", DocumentWriter(document_store))
pipeline.connect("cache_checker.misses", "converter.sources")
pipeline.connect("converter", "writer")
res = pipeline.run({"cache_checker": {"items": ["code_1.txt"]}})
print(res)
  1. Run the script

Environment:

  • OS: macOS 14.5, Apple M2 Pro
  • Haystack version: 2.2.1
  • Integration version: weaviate-haystack==2.1.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant