-
Notifications
You must be signed in to change notification settings - Fork 372
Closed
Description
Hello, I think it still has the problem.
I updated pymilvus to 2.5.6 but I got the same error.
ReferenceError: weakly-referenced object no longer exists
My collection contains vector field and auto bm25 function fields.
The code below both output the same error.
Can you please check once again.
vector_store_loaded = Milvus(
embeddings,
connection_args={"uri": URI},
collection_name=COLLECTION_NAME,
text_field='description',
vector_field='embedding'
)
# vector_store_loaded = Milvus(
# embedding_function=None,
# connection_args={"uri": URI},
# collection_name=COLLECTION_NAME,
# builtin_function=BM25BuiltInFunction(
# input_field_names="description", output_field_names="sparse"
# ),
# vector_field='sparse'
# )
This example also has the same error.
embedding1 = OpenAIEmbeddings(model="text-embedding-ada-002")
embedding2 = OpenAIEmbeddings(model="text-embedding-3-large")
vectorstore = Milvus.from_documents(
documents=docs,
embedding=[embedding1, embedding2],
builtin_function=BM25BuiltInFunction(
input_field_names="text", output_field_names="sparse"
),
text_field="text", # `text` is the input field name of BM25BuiltInFunction
# `sparse` is the output field name of BM25BuiltInFunction, and `dense1` and `dense2` are the output field names of embedding1 and embedding2
vector_field=["dense1", "dense2", "sparse"],
connection_args={
"uri": URI,
},
drop_old=True,
)
vectorstore.vector_fields
environment:
"pymilvus (==2.5.6)",
"langchain (>=0.3.21,<0.4.0)",
"langchain-core (>=0.3.45,<0.4.0)",
"langchain-community (>=0.3.16,<0.4.0)",
"langchain-text-splitters (>=0.3.8,<0.4.0)",
"langchain-milvus (>=0.1.8,<0.2.0)",
"langchain-openai (>=0.3.1,<0.4.0)",
Originally posted by @Ahjeong-Park in #2567
Metadata
Metadata
Assignees
Labels
No labels