Description
I get this error:
TypeError: _Vectorizer.text2vec_transformers() got an unexpected keyword argument 'passage_inference_url'
import weaviate.classes as wvc
import weaviate.classes.config as wvcc
client = weaviate.connect_to_custom(
http_host="localhost",
http_port="8080",
http_secure=False,
grpc_host="localhost",
grpc_port="50051",
grpc_secure=False,
)
doc_objs = [{...}]
try:
collection = client.collections.create(
name="mycollection",
properties=[
wvcc.Property(name="ID", data_type=wvcc.DataType.TEXT, skip_vectorization=True),
wvcc.Property(name="CONTENT", data_type=wvcc.DataType.TEXT, skip_vectorization=False)
],
vectorizer_config=wvc.config.Configure.Vectorizer.text2vec_transformers(
passage_inference_url="http://t2v-transformers-passage:8080",
query_inference_url='http://t2v-transformers-query:8080'
)
)
collection.data.insert_many(doc_objs)
finally:
client.close()
Server Setup Information
- Weaviate Server Version: Python weaviate version 4.5.1
- Deployment Method: docker
- Client Language and Version: Python weaviate version 4.5.1
Any additional Information
VScode code completer thinks that this keyword arg exists.