Skip to content

Commit

Permalink
export IncludeEnum as it is required by #get and #query (chroma-core#…
Browse files Browse the repository at this point in the history
…1167)

## Description of changes

The `IncludeEnum` enum is not exported, cause lint errors when using
`.get` or `.query`, as follows:

```js
const result = await collection.query({
    queryTexts: [query],
    // THIS LINE WILL PRODUCE LINT ERROR as it needs IncludeEnum.Distances etc.
    include: ['distances', 'documents', 'metadatas'],
    nResults: 2,
})
```

## Test plan

Nil

## Documentation Changes

Nil
  • Loading branch information
calvintwr authored Sep 21, 2023
1 parent 5436bd5 commit 35991bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clients/js/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ export { OpenAIEmbeddingFunction } from './embeddings/OpenAIEmbeddingFunction';
export { CohereEmbeddingFunction } from './embeddings/CohereEmbeddingFunction';
export { WebAIEmbeddingFunction } from './embeddings/WebAIEmbeddingFunction';
export { TransformersEmbeddingFunction } from './embeddings/TransformersEmbeddingFunction';
export { IncludeEnum } from './types';

0 comments on commit 35991bf

Please sign in to comment.