Skip to content

Commit

Permalink
Export Collection type directly
Browse files Browse the repository at this point in the history
  • Loading branch information
itaismith committed Nov 20, 2024
1 parent f16f832 commit b7f6501
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion clients/js/src/ChromaClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ export class ChromaClient {
/**
* Lists all collections.
*
* @returns {Promise<CollectionType[]>} A promise that resolves to a list of collection names.
* @returns {Promise<Collection>} A promise that resolves to a list of collection names.
* @param {PositiveInteger} [params.limit] - Optional limit on the number of items to get.
* @param {PositiveInteger} [params.offset] - Optional offset on the items to get.
* @throws {Error} If there is an issue listing the collections.
Expand Down
2 changes: 1 addition & 1 deletion clients/js/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export { ChromaClient } from "./ChromaClient";
export { AdminClient } from "./AdminClient";
export { CloudClient } from "./CloudClient";
export { Collection } from "./Collection";
export type { IEmbeddingFunction } from "./embeddings/IEmbeddingFunction";
export { OpenAIEmbeddingFunction } from "./embeddings/OpenAIEmbeddingFunction";
export { CohereEmbeddingFunction } from "./embeddings/CohereEmbeddingFunction";
Expand All @@ -14,7 +15,6 @@ export { OllamaEmbeddingFunction } from "./embeddings/OllamaEmbeddingFunction";
export type {
IncludeEnum,
GetParams,
CollectionType,
CollectionMetadata,
Embedding,
Embeddings,
Expand Down
7 changes: 0 additions & 7 deletions clients/js/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,6 @@ export type WhereDocument = {
| WhereDocument[];
};

export type CollectionType = {
name: string;
id: string;
metadata: Metadata | null;
configuration_json: any;
};

export type MultiGetResponse = {
ids: IDs;
embeddings: Embeddings | null;
Expand Down

0 comments on commit b7f6501

Please sign in to comment.