langchainjs
langchainjs copied to clipboard
chore(version): update package @zilliz/milvus2-sdk-node from 2.2.0 to 2.2.7
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.
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 |
Thank you!
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
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);
};