haystack-tutorials icon indicating copy to clipboard operation
haystack-tutorials copied to clipboard

Tutorial 6 - Make MilvusDocumentStore warning prominent

Open bilgeyucel opened this issue 1 year ago • 1 comments

Describe the issue Tutorial "Better Retrieval with Embedding Retrieval" gives an error when run with MilvusDocumentStore

---------------------------------------------------------------------------
ContextualVersionConflict                 Traceback (most recent call last)
[<ipython-input-4-b2f9ac6965f8>](https://localhost:8080/#) in <module>
      6 
      7 from haystack.utils import launch_milvus
----> 8 from haystack.document_stores import MilvusDocumentStore
      9 
     10 launch_milvus()

9 frames
[/usr/local/lib/python3.9/dist-packages/pkg_resources/__init__.py](https://localhost:8080/#) in resolve(self, requirements, env, installer, replace_conflicting, extras)
    798                 # Oops, the "best" so far conflicts with a dependency
    799                 dependent_req = required_by[req]
--> 800                 raise VersionConflict(dist, req).with_context(dependent_req)
    801 
    802             # push the new requirements onto the stack

ContextualVersionConflict: (grpcio 1.51.3 (/usr/local/lib/python3.9/dist-packages), Requirement.parse('grpcio<=1.48.0,>=1.47.0'), {'pymilvus'})

To Reproduce Run "Better Retrieval with Embedding Retrieval"

Expected behavior No error

What environment did you try to run the tutorial on?:

  • OS: Colab
  • Browser: Chrome
  • Haystack Version: 1.15.0rc

Additional context N/A

bilgeyucel avatar Mar 15 '23 16:03 bilgeyucel

I missed the warning statement: # Milvus cannot be run on Colab, so this cell is commented out.. Let's make it more prominent.

bilgeyucel avatar Mar 15 '23 16:03 bilgeyucel