milvus-io / milvus-sdk-node

The Official Mivus node.js sdk(client)
https://milvus.io
Apache License 2.0
118 stars 38 forks source link

Support for Milvus-Lite #354

Open hegdeashwin opened 2 weeks ago

hegdeashwin commented 2 weeks ago

Describe the feature:

  1. Would like to create collection, store vectors, search, query and delete embeddings on Milvus-Lite (Embedded Vector Store like pymilvus).

For Example using Python:

from pymilvus import MilvusClient
import numpy as np

client = MilvusClient("./milvus_demo.db")
client.create_collection(
    collection_name="demo_collection",
    dimension=384  # The vectors we will use in this demo has 384 dimensions
)

Here I don't need a Milvus Standalone server. Would like to do same in TypeScript as well using @zilliz/milvus2-sdk-node or some other way.

import { MilvusClient } from '@zilliz/milvus2-sdk-node';

const milvusClient = new MilvusClient({
  address: 'localhost:19530',
});

Here address field is required https://github.com/milvus-io/milvus-sdk-node/blob/3448094666ec5e1eba63c6530e8f6e87e0f9ec61/milvus/types/Client.ts#L17

Thus, wondering Milvus-Lite is not support for TypeScript/JavaScript.

Describe a specific use case for the feature:

  1. I'm working on VSCode Plugin which is written in TypeScript. Have to build RAG functionality for which I need "embedding vector store" for Local Context (No remote).
  2. Alternative solution were FaissStore or LanceDB but want to confirm of Milvus-Lite is supported for TS/JS
shanghaikid commented 2 weeks ago

Sorry, I don't think milvus-lite is supported here : (

hegdeashwin commented 2 weeks ago

Is Milvus team going to support this feature for milvus-sdk-node in near future? or Is this something which can be contributed from outside if it adds value?

shanghaikid commented 2 weeks ago

I am looking at the source code, https://github.com/milvus-io/milvus-lite/tree/main/src. It looks like a completely new project, and I am not sure it is portable from cpp to typescript. I will ask the milvus team later.