Skip to content

Release v2.5.9

Compare
Choose a tag to compare
@shanghaikid shanghaikid released this 19 May 09:25
· 4 commits to 2.5 since this release
29bc8a5
  • Use JSON proto instead of proto files (No more proto files)
    Introduced proto-json functionality that eliminates proto file dependency (#437)
    → Solves import failures in serverless platforms like Vercel and Cloudflare or AWS lambda
    → No more need to manage proto files manually
    issues: (#326 #276)

  • Milvus Lite 2.5 RC Support
    Now compatible with Milvus Lite version 2.5 (#434)
    → only supprt 2.5 RC1 https://pypi.org/project/milvus-lite/2.5.0rc1/

Example:

import { MilvusLiteClient } from '@zilliz/milvus2-sdk-node';
const milvusClient = await MilvusLiteClient({
  address: path.resolve(__dirname, 'test.db')
});
// create
await milvusClient.createCollection({
  collection_name: COLLECTION_NAME,
  fields: schema,
});
// describe
await milvusClient.describeCollection({
  collection_name: COLLECTION_NAME,
});
// create index
await milvusClient.createIndex({
  collection_name: COLLECTION_NAME,
  field_name: 'vector',
  extra_params: {
    index_type: 'IVF_FLAT',
    metric_type: 'L2',
    params: JSON.stringify({ nlist: 1024 }),
  },
});
// load
await milvusClient.loadCollection({
  collection_name: COLLECTION_NAME,
});
// insert
await milvusClient.insert({
  collection_name: COLLECTION_NAME,
  data,
});
// query
await milvusClient.query({
  collection_name: COLLECTION_NAME,
  expr: `id > 0`,
});
// search
await milvusClient.search({
  collection_name: COLLECTION_NAME,
  data: [1, 2, 3, 4],
});
  • Schema Flexibility
    Added option to ignore schema check during insertion and use string key for validation (#438)
    if you have trouble to insert data on AWS lambda, you can skip check schema like below or upgrade your milvus to v2.5.12
await milvusClient.insert({
  collection_name: 'my-collection',
  skip_check_schema: true
});
  • Grpc API Enhancement
    • Added support for specifying partition type (load/all) in showPartitions API (#431)
    • New runAnalyzer API
      const runAnalyzer = await milvusClient.runAnalyzer({
        analyzer_params: {
          tokenizer: 'standard',
          filter: ['lowercase'],
        },
        text: 'Would you like to eat an apple?',
        with_detail: true,
        with_hash: true,
      });
  • REST API Enhancement
    Added consistency level support for RESTful query API (#440)

Full Changelog

For complete details, see:
v2.5.8...v2.5.9