Skip to content
This repository was archived by the owner on Sep 9, 2026. It is now read-only.
This repository was archived by the owner on Sep 9, 2026. It is now read-only.

IOMixin for DocVec (to/from) #1330

Closed

Description

@jupyterjazz

We want to support IO functionality in DocVec such as from/to json, csv, bytes, etc. For example, to/from json is needed to make it FastAPI-compatible.

However, we can not use the existing IOMixin here as the logic behind DocVec is different from DocList and we'd have to overwrite some functions.

Solution:
Create an abstract mixin containing functions that the two classes share, and for other functions create separate mixins inheriting from the abstract class

Activity

  1. moved this from Todo/Bug to Todo/Features in DocArray backlogon Apr 25, 2023
  2. changed the title [-]IOMixin for DocArrayStacked[/-] [+]IOMixin for Doc2Vec (to/from)[/+] on Apr 27, 2023
  3. JoanFM commented on Apr 27, 2023

    @JoanFM
    Member

    The description needs to be changed to Doc2Vec

  4. JoanFM commented on May 10, 2023

    @JoanFM
    Member

    When implementing this, please make sure to habdle the case shown in #1490

  5. changed the title [-]IOMixin for Doc2Vec (to/from)[/-] [+]IOMixin for DocVec (to/from)[/+] on May 19, 2023
  6. moved this from Todo/Features to In Progress in DocArray backlogon May 22, 2023
  7. JohannesMessner commented on May 22, 2023

    @JohannesMessner
    Member

    I am breaking this up into multiple PRs (will update the list as I go):

  8. samsja commented on Jun 2, 2023

    @samsja
    Member

    lets not do too much abstraction here. There are no shared behavior between DocList and DocVec IO. Lets juts implement the function in both, no need for an abstract class until we can provide the same IO capacity for both

  9. moved this from In Progress to Done in DocArray backlogon Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions