Comparing version 1.7.3-beta1 to 1.7.3-beta2
import * as openai from 'openai'; | ||
import * as cohere_ai from 'cohere-ai'; | ||
import * as _xenova_transformers from '@xenova/transformers'; | ||
import * as chromadb_default_embed from 'chromadb-default-embed'; | ||
@@ -1009,2 +1010,31 @@ interface IEmbeddingFunction { | ||
export { ChromaClient, CohereEmbeddingFunction, Collection, type IEmbeddingFunction, IncludeEnum, OpenAIEmbeddingFunction, TransformersEmbeddingFunction }; | ||
declare class DefaultEmbeddingFunction implements IEmbeddingFunction { | ||
private pipelinePromise?; | ||
private transformersApi; | ||
private model; | ||
private revision; | ||
private quantized; | ||
private progress_callback; | ||
/** | ||
* DefaultEmbeddingFunction constructor. | ||
* @param options The configuration options. | ||
* @param options.model The model to use to calculate embeddings. Defaults to 'Xenova/all-MiniLM-L6-v2', which is an ONNX port of `sentence-transformers/all-MiniLM-L6-v2`. | ||
* @param options.revision The specific model version to use (can be a branch, tag name, or commit id). Defaults to 'main'. | ||
* @param options.quantized Whether to load the 8-bit quantized version of the model. Defaults to `false`. | ||
* @param options.progress_callback If specified, this function will be called during model construction, to provide the user with progress updates. | ||
*/ | ||
constructor({ model, revision, quantized, progress_callback, }?: { | ||
model?: string; | ||
revision?: string; | ||
quantized?: boolean; | ||
progress_callback?: Function | null; | ||
}); | ||
generate(texts: string[]): Promise<number[][]>; | ||
private loadClient; | ||
/** @ignore */ | ||
static import(): Promise<{ | ||
pipeline: typeof chromadb_default_embed; | ||
}>; | ||
} | ||
export { ChromaClient, CohereEmbeddingFunction, Collection, DefaultEmbeddingFunction, type IEmbeddingFunction, IncludeEnum, OpenAIEmbeddingFunction, TransformersEmbeddingFunction }; |
{ | ||
"name": "chromadb", | ||
"version": "1.7.3-beta1", | ||
"version": "1.7.3-beta2", | ||
"description": "A JavaScript interface for chroma", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
803786
11297