nomic-ai / ts-nomic

Typescript bindings for Atlas
MIT License
4 stars 4 forks source link

add raw createIndex function with upstream types #82

Closed bmschmidt closed 1 week ago

bmschmidt commented 1 week ago

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.


[!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 for direct API type usage in 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.

This description was created by Ellipsis for 04f9d571312094c93c3aead88c5f360582a3009b. It will automatically update as commits are pushed.

bmschmidt commented 1 week ago

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @bmschmidt and the rest of your teammates on Graphite Graphite

bmschmidt commented 1 week ago

Merge activity