Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

422 Error code #1329

Closed
metallicalfa2 opened this issue May 19, 2023 · 4 comments
Closed

422 Error code #1329

metallicalfa2 opened this issue May 19, 2023 · 4 comments

Comments

@metallicalfa2
Copy link

I'm using docker-compose to run local chroma DB. While using from_documents function, the following error occurs
image

@rohinrohin
Copy link

Me too! It fails in the chroma.fromDocuments, getText, ... function and I think it is related to #1311. I tried to work around this but was not able to successfully.

Source code:
CleanShot 2023-05-23 at 19 00 29@2x

Error:

- error Error: [object Response]
    at ChromaClient.getOrCreateCollection 

Any help is appreciated!

@rodrigo398
Copy link

What version of ChromaClient are you using?, That's happening because there's a mismatch between the Chroma version used by Langchain and the actual Chroma version. In the latest version of LangChain, the getOrCreateCollection function is being called with only one argument, but Chroma requires three arguments.

name: string,
metadata?: CollectionMetadata,
embeddingFunction?: IEmbeddingFunction

@rodrigo398
Copy link

I see the issue I mentioned before was fixed already
#1348

@jacoblee93
Copy link
Collaborator

jacoblee93 commented May 25, 2023

Can you try updating your Chroma package to > 1.4.2 and bumping your LangChainJS version? #1348 should have fixed this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants