-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Error on Chroma.fromTexts() when creating a collection #1311
Comments
+1, there seems to be signature miss match between functions like public async getOrCreateCollection({
name,
metadata,
embeddingFunction
}: {
name: string,
metadata?: CollectionMetadata,
embeddingFunction?: CallableFunction
}): Promise<Collection> |
same issue when I'm using the flowise. langchain chroma
chromadb
|
Can you try updating your Chroma package to > 1.4.2 and bumping your LangChainJS version? #1348 should have fixed this. |
Yes, I've just done this and it definitely fix this issue. Thanks @jacoblee93 |
Excellent, thank you! |
I was trying this example
I get error
"langchain": "^0.0.96", |
i still get the same error! have you been able to solve it? |
EDIT: It seems we all missed step one of the setup instructions:
This starts the Chroma server running locally as a Docker container and accessible via port 8000. Once ChromaDB is running, you should be able to get this working. |
I encountered an error while using the Chroma.fromTexts() function in the Langchain library. The error occurs when attempting to create a collection using the fromTexts() method. The function throws an error with the message throw new Error(newCollection.error).
Use the following example code snippet:
Expected Behavior:
The Chroma.fromTexts() function should create a new Chroma vector store and perform a similarity search without errors.
Actual Behavior:
An error is thrown during the creation of the collection in Chroma's index.js file. The error message received is newCollection.error. The server is running - i checked docker and i get an endpoint request with a 422 error.
chroma-server-1 | 2023-05-18 09:36:46 INFO uvicorn.access 192.168.48.1:61414 - "POST /api/v1/collections HTTP/1.1" 422
It seems to be due to getOrCreateCollection in production langchain/dist/chroma.js only passing a name but it excepts an object:
And in /chromadb/dist/main/index.js
Additional Details:
Langchainjs version: 0.0.76
Chromadb version: 1.4.2
Error Stack Trace:
The text was updated successfully, but these errors were encountered: