langchainjs icon indicating copy to clipboard operation
langchainjs copied to clipboard

chore(version): update package @zilliz/milvus2-sdk-node from 2.2.0 to 2.2.7

Open Todmy opened this issue 1 year ago • 1 comments

The update includes the change in SDK interface

logs when I tried to run langchainjs with the new version of [email protected]:

dataManager are no longer necessary, you can call methods directly on the client object.
collectionManager are no longer necessary, you can call methods directly on the client object.
indexManager are no longer necessary, you can call methods directly on the client object.

Todmy avatar Apr 27 '23 17:04 Todmy

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
langchainjs-docs ✅ Ready (Inspect) Visit Preview May 19, 2023 10:31pm

vercel[bot] avatar Apr 27 '23 17:04 vercel[bot]

Thank you!

jacoblee93 avatar May 19 '23 23:05 jacoblee93

When I use the search parameter now, it does not return database field. any pointers on this? Have you tested the results from vector similarity search with zilliz??

I may have to downgrade langchain version so that it works with zilliz

Screenshot 2023-06-21 at 19 30 14

This is the code I used to call it: export const searchZillizVectorStore = async (query: string) => { const client = await getZillizClient(); const collectionName = "testHMO"; const embeddings = new OpenAIEmbeddings(); const queryVector = await embeddings.embedQuery(query) const searchResp = await client.search({ collection_name: "testHMO", vectors: [queryVector], search_params: { anns_field: "langchain_vector", // node topk: "2", metric_type: "L2", params: '{"ef":64}', }, // vector_type: 101, // DataType.FloatVector, });

console.log("searchResp", searchResp); }; Screenshot 2023-06-21 at 20 47 39

yongyi520 avatar Jun 22 '23 04:06 yongyi520