Skip to content

Commit 6edd60c

Browse files
authored
[RELEASE] JS 3.1.6 (#5895)
1 parent cbe2c4f commit 6edd60c

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

clients/new-js/packages/chromadb/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "chromadb",
3-
"version": "3.1.5",
3+
"version": "3.1.6",
44
"description": "A JavaScript interface for chroma",
55
"keywords": [
66
"chroma",

clients/new-js/packages/chromadb/src/chroma-client.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -417,13 +417,14 @@ export class ChromaClient {
417417
client: this.apiClient,
418418
path: { crn },
419419
});
420-
const schema = await Schema.deserializeFromJSON(data.schema ?? undefined);
420+
const schema = await Schema.deserializeFromJSON(data.schema ?? null, this);
421421
const schemaEmbeddingFunction = resolveSchemaEmbeddingFunction(schema);
422422
const resolvedEmbeddingFunction =
423-
(await getEmbeddingFunction(
424-
data.name,
425-
data.configuration_json.embedding_function ?? undefined,
426-
)) ?? schemaEmbeddingFunction;
423+
(await getEmbeddingFunction({
424+
collectionName: data.name,
425+
efConfig: data.configuration_json.embedding_function ?? undefined,
426+
client: this,
427+
})) ?? schemaEmbeddingFunction;
427428
return new CollectionImpl({
428429
chromaClient: this,
429430
apiClient: this.apiClient,

0 commit comments

Comments
 (0)