Comments (4)
Can someone look at this?
from pymilvus.
@afzalIbnSH sorry for the late response.
I have made some modifications based on your example to facilitate local execution.
I was unable to reproduce the issue in version 2.3.7 and 2.4.0.
import time
import numpy as np
import time
import numpy as np
from pymilvus import (
connections,
utility,
FieldSchema, CollectionSchema, DataType,
MilvusClient,
)
dim = 8
collection_name = "hello_milvus"
milvus_client = MilvusClient("http://localhost:19530")
fields = [
FieldSchema(
name="pk",
dtype=DataType.VARCHAR,
max_length=50,
is_primary=True,
auto_id=False,
),
FieldSchema(name="bool", dtype=DataType.BOOL),
FieldSchema(name="codes", dtype=DataType.JSON),
FieldSchema(name="json", dtype=DataType.JSON),
FieldSchema(name="embeddings", dtype=DataType.FLOAT_VECTOR, dim=dim),
]
schema = CollectionSchema(
fields=fields, description="search recipes", enable_dynamic_field=True
)
index_params = milvus_client.prepare_index_params()
index_params.add_index(
field_name="embeddings",
index_type="IVF_FLAT",
metric_type="IP",
params={"nlist": 1536}
)
milvus_client.create_collection(
collection_name,
id_type="string",
vector_field_name="embeddings",
metric_type="IP",
schema=schema,
index_params=index_params
)
index_names = milvus_client.list_indexes(collection_name)
print(f"index names for {collection_name}:", index_names)
for index_name in index_names:
index_info = milvus_client.describe_index(collection_name, index_name=index_name)
print(f"index info for index {index_name} is:", index_info)
output:
index names for hello_milvus: ['embeddings']
index info for index embeddings is: {'index_type': 'IVF_FLAT', 'metric_type': 'IP', 'nlist': '1536', 'field_name': 'embeddings', 'index_name': 'embeddings'}
from pymilvus.
The return from the SDK side is OK , and I could reproduce this issue on Zilliz Cloud, so I think this is not a pymilvus issue。
On zilliz cloud, this could be reproduced indeed:
Orm created collection and index:
Client created collection and index
from pymilvus.
So I think maybe need to file an issue on Zilliz cloud
from pymilvus.
Related Issues (20)
- [QUESTION]: Search()中limit参数无法控制返回数量。 HOT 1
- [Bug]: failed to flush collection HOT 1
- [QUESTION]:
- [Enhancement]: multi vector search using new MilvusClient SDK
- [Enhancement]: Reduce pymilvus package size HOT 6
- Can't run Flask+gevent with milvus connections.connect HOT 3
- [Enhancement]: Raise exception if RPC error occurs
- [Bug]: Spark Milvus Connector DataType.ARRAY HOT 1
- [QUESTION]: Why does ORM-style API seem to outperform MilvusClient in database search operations?
- [Bug]: bulkwriter does not support add row for new json datatype HOT 1
- [Enhancement]: Supports f16 and bf16 datatype for bulk writer HOT 2
- [Bug]: Attu up_time is negative
- [Bug]: [create_partition], <_MultiThreadedRendezvous: StatusCode.UNIMPLEMENTED, HOT 2
- [QUESTION]: Is it possible to test milvus offline by ann_benchmark on Centos?
- [Bug]: Failed to create sparse vector index
- search中limit设置为5只返回一个数据
- [QUESTION]: 向量的维度只能设置为一个定值吗?能不能设置一个范围? HOT 2
- [Bug]: <MilvusException: (code=1, message=Unexpected error, message=<Cannot invoke RPC: Channel closed!>)>
- 删除数据后,再次查询,实体没有及时更新 HOT 2
- 请问如何判断数据有没有load到内存 HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pymilvus.