langchain icon indicating copy to clipboard operation
langchain copied to clipboard

Removes leftover embedding_function name / doc references from chroma/atlas vectorstores

Open EvanOman opened this issue 2 years ago • 5 comments

Removes leftover embedding_function name / doc references from chroma/atlas vectorstores

The Chroma and Atlas vector stores had been refactored to use a Embeddings instance rather than an embedding_function.

This PR cleans up a few variable names and comments which still used the old name embedding_function but used the new Embeddings object. This should make those sections of the code more readable.

Who can review?

Anybody, but @dev2049 in particular

EvanOman avatar May 16 '23 00:05 EvanOman

this is a great cleanup but breaks backwards compatibility, so we'll want to think of some workaround for that

dev2049 avatar May 16 '23 01:05 dev2049

@dev2049 Are you thinking about people using the old embedding_function as a named argument?

I could check the kwargs to see if the Embeddings instance is being passed as an embedding_function argument, use it, and then print a deprecation warning

EvanOman avatar May 16 '23 01:05 EvanOman

sounds reasonable to me @EvanOman!

dev2049 avatar May 17 '23 22:05 dev2049

@dev2049 Done, let me know if there any other suggestions 👍

EvanOman avatar May 19 '23 21:05 EvanOman

Hey @dev2049 , just pinging one more time on this, thanks! 👍

EvanOman avatar May 27 '23 03:05 EvanOman

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

Name Status Preview Comments Updated (UTC)
langchain ❌ Failed (Inspect) Jun 23, 2023 5:28pm

vercel[bot] avatar Jun 23 '23 17:06 vercel[bot]

Looks like the Vercel bot is not happy, I'd address the issue but I don't have any access on Vercel to see what's up

EvanOman avatar Jun 23 '23 17:06 EvanOman

@EvanOman Hi , could you, please, resolve the merging issues? After that ping me and I push this PR for the review. Thanks! Seems, you need just commit some dummy change and Vercel would reset.

leo-gan avatar Sep 13 '23 20:09 leo-gan

Closing because the PR wouldn't line up with the current directory structure of the library (would need to be in /libs/langchain/langchain instead of /langchain). Feel free to reopen against the current head if it's still relevant!

efriis avatar Nov 07 '23 04:11 efriis