Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

chromadb

Package Overview
Dependencies
Maintainers
2
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chromadb - npm Package Compare versions

Comparing version 1.7.3-beta1 to 1.7.3-beta2

32

dist/chromadb.d.ts
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 };

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc