File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
clients/new-js/packages/chromadb Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments