Socket
Socket
Sign inDemoInstall

chromadb

Package Overview
Dependencies
39
Maintainers
2
Versions
42
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.7.1-beta2 to 1.7.1

src/CloudClient.ts

42

dist/chromadb.d.ts
import * as openai from 'openai';
import * as cohere_ai from 'cohere-ai';
import * as _google_generative_ai from '@google/generative-ai';

@@ -1214,2 +1215,12 @@ /**

interface CloudClientParams {
apiKey?: string;
database?: string;
cloudHost?: string;
cloudPort?: string;
}
declare class CloudClient extends ChromaClient {
constructor({ apiKey, database, cloudHost, cloudPort }: CloudClientParams);
}
declare class OpenAIEmbeddingFunction implements IEmbeddingFunction {

@@ -1250,2 +1261,20 @@ private api_key;

declare class GoogleGenerativeAiEmbeddingFunction implements IEmbeddingFunction {
private api_key;
private model;
private googleGenAiApi?;
private taskType;
constructor({ googleApiKey, model, taskType }: {
googleApiKey: string;
model?: string;
taskType?: string;
});
private loadClient;
generate(texts: string[]): Promise<any>;
/** @ignore */
static import(): Promise<{
googleGenAi: typeof _google_generative_ai;
}>;
}
declare class HuggingFaceEmbeddingServerFunction implements IEmbeddingFunction {

@@ -1259,2 +1288,13 @@ private url;

export { type AddParams, AdminClient, ChromaClient, type ChromaClientParams, CohereEmbeddingFunction, Collection, type CollectionMetadata, type CollectionType, type CreateCollectionParams, type DeleteCollectionParams, type DeleteParams, type Document, type Documents, type Embedding, type Embeddings, type GetCollectionParams, type GetOrCreateCollectionParams, type GetParams, type GetResponse, HuggingFaceEmbeddingServerFunction, type ID, type IDs, type IEmbeddingFunction, IncludeEnum, type ListCollectionsParams, type Metadata, type Metadatas, type ModifyCollectionParams, OpenAIEmbeddingFunction, type PeekParams, type QueryParams, type QueryResponse, type UpdateParams, type UpsertParams, type Where, type WhereDocument };
declare class JinaEmbeddingFunction implements IEmbeddingFunction {
private model_name;
private api_url;
private headers;
constructor({ jinaai_api_key, model_name }: {
jinaai_api_key: string;
model_name?: string;
});
generate(texts: string[]): Promise<any[]>;
}
export { AddParams, AdminClient, ChromaClient, ChromaClientParams, CloudClient, CohereEmbeddingFunction, Collection, CollectionMetadata, CollectionType, CreateCollectionParams, DeleteCollectionParams, DeleteParams, Document, Documents, Embedding, Embeddings, GetCollectionParams, GetOrCreateCollectionParams, GetParams, GetResponse, GoogleGenerativeAiEmbeddingFunction, HuggingFaceEmbeddingServerFunction, ID, IDs, IEmbeddingFunction, IncludeEnum, JinaEmbeddingFunction, ListCollectionsParams, Metadata, Metadatas, ModifyCollectionParams, OpenAIEmbeddingFunction, PeekParams, QueryParams, QueryResponse, UpdateParams, UpsertParams, Where, WhereDocument };

2

package.json
{
"name": "chromadb",
"version": "1.7.1-beta2",
"version": "1.7.1",
"description": "A JavaScript interface for chroma",

@@ -5,0 +5,0 @@ "keywords": [],

@@ -53,2 +53,3 @@ import { IEmbeddingFunction } from './embeddings/IEmbeddingFunction';

});
if (auth !== undefined) {

@@ -55,0 +56,0 @@ this.apiAdapter = new IsomorphicFetchClientAuthProtocolAdapter(new DefaultApi(apiConfig), auth);

export { ChromaClient } from './ChromaClient';
export { AdminClient } from './AdminClient';
export { CloudClient } from './CloudClient';
export { Collection } from './Collection';

@@ -7,2 +8,3 @@ export { IEmbeddingFunction } from './embeddings/IEmbeddingFunction';

export { CohereEmbeddingFunction } from './embeddings/CohereEmbeddingFunction';
export { GoogleGenerativeAiEmbeddingFunction } from './embeddings/GoogleGeminiEmbeddingFunction';
export {

@@ -40,1 +42,2 @@ IncludeEnum,

export { HuggingFaceEmbeddingServerFunction } from './embeddings/HuggingFaceEmbeddingServerFunction';
export { JinaEmbeddingFunction } from './embeddings/JinaEmbeddingFunction';

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc