Skip to content

feat: encode primitive type in the proto#772

Merged
samsja merged 9 commits into
feat-rewrite-v2from
refactor-v2-proto-types
Nov 15, 2022
Merged

feat: encode primitive type in the proto#772
samsja merged 9 commits into
feat-rewrite-v2from
refactor-v2-proto-types

Conversation

@samsja

@samsja samsja commented Nov 14, 2022

Copy link
Copy Markdown
Member

context

We want to re transcript the primitive type into the document proto. This pr do this with the current type

FYI : #760

Signed-off-by: Sami Jaghouar <sami.jaghouar@hotmail.fr>
Signed-off-by: Sami Jaghouar <sami.jaghouar@hotmail.fr>
Signed-off-by: Sami Jaghouar <sami.jaghouar@hotmail.fr>
Signed-off-by: Sami Jaghouar <sami.jaghouar@hotmail.fr>
Signed-off-by: Sami Jaghouar <sami.jaghouar@hotmail.fr>
Signed-off-by: Sami Jaghouar <sami.jaghouar@hotmail.fr>
@samsja samsja force-pushed the refactor-v2-proto-types branch from b7ba688 to 5c87798 Compare November 14, 2022 14:57
Comment thread docarray/document/abstract_document.py
Comment thread docarray/document/abstract_document.py
Signed-off-by: Sami Jaghouar <sami.jaghouar@hotmail.fr>
Signed-off-by: Sami Jaghouar <sami.jaghouar@hotmail.fr>
@samsja samsja changed the title refactor: change embedding and base node refactor: encode primitive type in the proto Nov 14, 2022
@samsja samsja changed the title refactor: encode primitive type in the proto feat: encode primitive type in the proto Nov 14, 2022
@samsja samsja linked an issue Nov 14, 2022 that may be closed by this pull request
Signed-off-by: Sami Jaghouar <sami.jaghouar@hotmail.fr>
JoanFM
JoanFM previously requested changes Nov 14, 2022
Comment thread docarray/proto/docarray.proto
Comment thread docarray/proto/docarray.proto
@JohannesMessner

Copy link
Copy Markdown
Member

Let's keep in mind that we might have to move the id out of the map at some point, to cleanly differentiate it from other id's that the user might manually put inside the schema/dataclass

@samsja samsja dismissed JoanFM’s stale review November 15, 2022 09:03

oral approval

@samsja samsja merged commit 924d9e4 into feat-rewrite-v2 Nov 15, 2022
@samsja samsja deleted the refactor-v2-proto-types branch November 15, 2022 09:03
JohannesMessner pushed a commit that referenced this pull request Nov 16, 2022
* refactor: change embedding and base node

Signed-off-by: Sami Jaghouar <sami.jaghouar@hotmail.fr>

* fix: expose any url to user

Signed-off-by: Sami Jaghouar <sami.jaghouar@hotmail.fr>

* refactor: docarray type are relfected at the proto level

Signed-off-by: Sami Jaghouar <sami.jaghouar@hotmail.fr>

* fix: add test and fix dump to proto

Signed-off-by: Sami Jaghouar <sami.jaghouar@hotmail.fr>

* refactor: move get nested class to document

Signed-off-by: Sami Jaghouar <sami.jaghouar@hotmail.fr>

* fix: fix mypy return type hint

Signed-off-by: Sami Jaghouar <sami.jaghouar@hotmail.fr>

* feat: add id as a type

Signed-off-by: Sami Jaghouar <sami.jaghouar@hotmail.fr>

* feat: adapt proto to the new id type

Signed-off-by: Sami Jaghouar <sami.jaghouar@hotmail.fr>

* fix(proto): does not return mixin anymore type

Signed-off-by: Sami Jaghouar <sami.jaghouar@hotmail.fr>

Signed-off-by: Sami Jaghouar <sami.jaghouar@hotmail.fr>
Signed-off-by: Johannes Messner <messnerjo@gmail.com>
samsja added a commit that referenced this pull request Nov 17, 2022
* refactor: change embedding and base node

Signed-off-by: Sami Jaghouar <sami.jaghouar@hotmail.fr>

* fix: expose any url to user

Signed-off-by: Sami Jaghouar <sami.jaghouar@hotmail.fr>

* refactor: docarray type are relfected at the proto level

Signed-off-by: Sami Jaghouar <sami.jaghouar@hotmail.fr>

* fix: add test and fix dump to proto

Signed-off-by: Sami Jaghouar <sami.jaghouar@hotmail.fr>

* refactor: move get nested class to document

Signed-off-by: Sami Jaghouar <sami.jaghouar@hotmail.fr>

* fix: fix mypy return type hint

Signed-off-by: Sami Jaghouar <sami.jaghouar@hotmail.fr>

* feat: add id as a type

Signed-off-by: Sami Jaghouar <sami.jaghouar@hotmail.fr>

* feat: adapt proto to the new id type

Signed-off-by: Sami Jaghouar <sami.jaghouar@hotmail.fr>

* fix(proto): does not return mixin anymore type

Signed-off-by: Sami Jaghouar <sami.jaghouar@hotmail.fr>

Signed-off-by: Sami Jaghouar <sami.jaghouar@hotmail.fr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor(v2): Proto should represent the different type

3 participants