Closed jawhster closed 1 year ago
Ok, I looked through the docker-compose file and now see that I need to get the vectorizer setup first before running data, etc. I will look into https://weaviate.io/developers/weaviate/modules/retriever-vectorizer-modules/multi2vec-clip. Thanks
DEFAULT_VECTORIZER_MODULE: 'multi2vec-clip' ENABLE_MODULES: 'multi2vec-clip' CLUSTER_HOSTNAME: 'node1' multi2vec-clip: image: semitechnologies/multi2vec-clip:sentence-transformers-clip-ViT-B-32-multilingual-v1
I installed weaviate_client-3.16.0 to try and use
from weaviate.embedded import EmbeddedOptions
for weaviate.Client but am getting below error when running this example class_obj throughclient.schema.create_class(class_obj)
UnexpectedStatusCodeException Traceback (most recent call last) Input In [4], in
6 # Create a schema to add images
7 # I have used the web page https://weaviate.io/developers/weaviate/v1.11.0/retriever-vectorizer-modules/multi2vec-clip.html
8 # to get help on making a suitable schema. You can read the contents of this web page to know more.
9 class_obj = {
10 "class": "ClipExample",
11 "description": "A class to implement CLIP example",
(...)
41 ]
42 }
---> 44 client.schema.create_class(class_obj)
45 print("Schema class created")
File ~/.local/lib/python3.8/site-packages/weaviate/schema/crud_schema.py:182, in Schema.create_class(self, schema_class) 180 # validate the class before loading 181 check_class(loaded_schema_class) --> 182 self._create_class_with_primitives(loaded_schema_class) 183 self._create_complex_properties_from_class(loaded_schema_class)
File ~/.local/lib/python3.8/site-packages/weaviate/schema/crud_schema.py:708, in Schema._create_class_with_primitives(self, weaviate_class) 706 raise RequestsConnectionError("Class may not have been created properly.") from conn_err 707 if response.status_code != 200: --> 708 raise UnexpectedStatusCodeException("Create class", response)
UnexpectedStatusCodeException: Create class! Unexpected status code: 422, with response body: {'error': [{'message': 'vectorizer: no module with name "multi2vec-clip" present'}]}.