Skip to content

Commit

Permalink
add raw createIndex function with upstream types (#82)
Browse files Browse the repository at this point in the history
The types on createIndex are pretty vague and have some custom wrappings; adding a new function at createIndexRaw lets us use the API types directly without breaking back-compatibility.
<!-- ELLIPSIS_HIDDEN -->


----

> [!IMPORTANT]
> Adds `createIndexRaw` function in `AtlasDataset` for direct API type usage in index creation, with tests and dependency updates.
> 
>   - **Behavior**:
>     - Adds `createIndexRaw` function in `AtlasDataset` class in `src/project.ts` to use upstream API types directly for index creation.
>     - Uses `createIndexTextDefaults` for default values, allowing user options to override them.
>     - Ensures `project_id` is set in the request.
>   - **Tests**:
>     - Adds test for `createIndexRaw` in `project.test.ts` to verify index creation.
>   - **Dependencies**:
>     - Updates `apache-arrow` to `^13.0.0` in `package.json`.
>     - Removes `@types/jasmine` from `devDependencies` in `package.json`.
> 
> <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=nomic-ai%2Fts-nomic&utm_source=github&utm_medium=referral)<sup> for bb175ab. It will automatically update as commits are pushed.</sup>


<!-- ELLIPSIS_HIDDEN -->
  • Loading branch information
bmschmidt authored Nov 4, 2024
1 parent 528867c commit 5696730
Show file tree
Hide file tree
Showing 4 changed files with 292 additions and 86 deletions.
Loading

0 comments on commit 5696730

Please sign in to comment.