Releases: milvus-io/milvus-sdk-node
Release v2.5.9
-
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
) inshowPartitions
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, });
- Added support for specifying partition type (
- REST API Enhancement
Added consistency level support for RESTful query API (#440)
Full Changelog
For complete details, see:
v2.5.8...v2.5.9
release v2.5.8
What's Changed
- fix: Search output on multiple vector search returning values of the first record by @shanghaikid in #429
- feat: split search results if nq >2 for HttpClient by @shanghaikid in #430
Full Changelog: v2.5.7...v2.5.8
Release v2.5.7
What's Changed
- fix: the search result is formatted incorrectly if nq > 1 with some filters by @zhanshuyou in #420
Full Changelog: v2.5.6...v2.5.7
Release v2.5.6
What's Changed
- feat: support external_filter_fn for searchIterator by @shanghaikid in #415
- feat: add describeReplicas, alias for getReplicas by @shanghaikid in #416
- feat: update 2.5 proto by @shanghaikid in #417
- feat: use server side schema cache for the insert/upsert request by @shanghaikid in #418
Full Changelog: v2.5.5...v2.5.6
Release v2.5.5
What's Changed
- fix: Cannot read properties of undefined (reading 'nq') when searching with wrong anns field by @shanghaikid in #408
- Support search iterator by @shanghaikid in #409
- Add alterDatabaseProperties by @shanghaikid in #410
- Add node_filters into ResourceGroupConfig by @shanghaikid in #411
- fix: listGrants should respect db_name by @shanghaikid in #414
- Support trace context propagation and traceID visibility by @shanghaikid in #412
Full Changelog: v2.5.4...v2.5.5
Release v2.5.4
What's Changed
The search result should not contains id
field if you don't have it in your schema.
Full Changelog: v2.5.3...v2.5.4
Release v2.4.11
What's Changed
The search result should not contains the id
field if you don't have it in your schema.
Full Changelog: v2.4.10...v2.4.11
Release v2.5.3
What's Changed
- add alterCollectionFieldProperties API by @shanghaikid in #392
- Add createPrivilegeGroup/dropPrivilegeGroup/listPrivilegeGroups/addPrivilegesToGroup/removePrivilegesFromGroup by @shanghaikid in #394
- Add grantPrivilegeV2 and revokePrivilegeV2 by @shanghaikid in #395
- add refreshLoad api by @shanghaikid in #396
- fix: query without output_fields should return all fields by @shanghaikid in #398
- Add backupRBAC and restoreRBAC API by @shanghaikid in #400
- fix upsert failed on autoid enabled collection by @shanghaikid in #402
- Add more test cases for the upsert API by @shanghaikid in #403
Full Changelog: v2.5.2...v2.5.3
v2.4.10
What's Changed
- support expr template values
- Add alterCollectionFieldProperties API
- Add backupRBAC and restoreRBAC API
- Add grantPrivilegeV2 and revokePrivilegeV2
- Add createPrivilegeGroup/dropPrivilegeGroup/listPrivilegeGroups/addPrivilegesToGroup/removePrivilegesFromGroup
- Add alterIndexProperties and dropIndexProperties
- support delete properties for database and collection
- support the properties param in the create database api
- Passing db_name param to the describeCollection()
- feat(TLS): Support skipCertCheck option to bypass certificate check
- support clustering key
- fix: queryIterator limit field should be optional
Full Changelog: v2.4.9...v2.4.10
Release v2.5.2
What's Changed
- support insert null by @shanghaikid in #382
- enhance: support hints param by @chasingegg in #383
- update milvus proto by @shanghaikid in #384
- support delete properties for database and collection by @shanghaikid in #385
- support recalls in search result by @shanghaikid in #387
- Add alterIndexProperties and dropIndexProperties by @shanghaikid in #388
- support expr template for query/search/delete by @shanghaikid in #389
- deprecate alterCollection, use alterCollectionProperties instead by @shanghaikid in #390
New Contributors
- @chasingegg made their first contribution in #383
Full Changelog: v2.5.1...v2.5.2