Skip to content

Revisit cocoindex data types exported by Python SDK #322

@badmonster0

Description

@badmonster0

CocoIndex data types: https://cocoindex.io/docs/core/data_types

Problems:

  • Types such as cocoindex.typing.Float32 are too long. cocoindex.Float32 is better and easier to use. Same for other types under cocoindex.typing.
  • For vector, Annotated[list[type], cocoindex.typing.Vector(dim=N)] is too long and hard to use. Something like cocoindex.Vector[type, N] is better.

We want to:

  • Update the Python SDK to allow users to reference these types in easier way.
  • Update documents accordingly.
  • Update examples accordingly.

Metadata

Metadata

Assignees

Labels

python-sdkCocoIndex Python SDK

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions