langchainjs icon indicating copy to clipboard operation
langchainjs copied to clipboard

feat(weaviate): Migrate to the new Weaviate client version 3

Open my8bit opened this issue 1 year ago • 5 comments

As stated in the official documentation for the Weaviate TypeScript client they are deprecating the v2 version of the client.

The v3 client is the current TypeScript client. If you have code written for the v2 client, you should migrate it to v3.

The v2 client version is still available in npm, however you should not use it to begin new projects.

Source: Weaviate Documentation

This MR is implementing the necessary changes to be able to use the v3 of the client.

my8bit avatar Jan 30 '25 10:01 my8bit

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

Name Status Preview Comments Updated (UTC)
langchainjs-docs ✅ Ready (Inspect) Visit Preview Jan 30, 2025 11:00am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
langchainjs-api-refs ⬜️ Ignored (Inspect) Jan 30, 2025 11:00am

vercel[bot] avatar Jan 30 '25 10:01 vercel[bot]

@my8bit what else is needs to be implements to get this ready for review?

hsm207 avatar Jan 31 '25 13:01 hsm207

Hey @hsm207, thanks for reaching out. There is a still usage of the old v2 client for compatibility.

From the functional perspective to keep the behavior as close as possible to v2:

  • [ ] Enabled support of the filter option for delete method have to support the filter parameter
  • [ ] Support to deletion of the tenant if specified and still applicable
  • [ ] Enabled support of the filter option for similaritySearchVectorWithScoreAndEmbedding method
  • [ ] Support of the tenant for similaritySearchVectorWithScoreAndEmbedding if specified and still applicable
  • [ ] Correctly passing the distance and vector from search results to the final Document

my8bit avatar Jan 31 '25 15:01 my8bit

thanks @my8bit for clarifying. I'd like to try making a contribution. Can you add me and @malgamves to your fork so we can collab on this PR?

hsm207 avatar Jan 31 '25 15:01 hsm207

hsm207

Thanks! I've sent invites with write access

my8bit avatar Jan 31 '25 16:01 my8bit

Apologies for missing this, but this has been changed in a different PR.

benjamincburns avatar May 22 '25 01:05 benjamincburns