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

feat: use schema-ed json as default to_dict/json - #57

Merged
hanxiao merged 3 commits into
mainfrom
refactor-json-dict
Jan 17, 2022
Merged

hanxiao merged 3 commits into
mainfrom
refactor-json-dict

Conversation

@hanxiao

@hanxiao hanxiao commented Jan 17, 2022

Copy link
Copy Markdown
Member

close #56

@JoanFM JoanFM left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add test validating that embeddings are properly handled

@codecov

codecov Bot commented Jan 17, 2022 •

Copy link
Copy Markdown

Codecov Report

Merging #57 (c3212a7) into main (5b2ea94) will increase coverage by 0.16%.
The diff coverage is 93.84%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #57      +/-   ##
==========================================
+ Coverage   82.75%   82.92%   +0.16%     
==========================================
  Files          70       70              
  Lines        3329     3350      +21     
==========================================
+ Hits         2755     2778      +23     
+ Misses        574      572       -2     
Flag Coverage Δ
docarray 82.92% <93.84%> (+0.16%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
docarray/document/mixins/porting.py 88.73% <89.18%> (-3.87%) ⬇️
docarray/__init__.py 100.00% <100.00%> (ø)
docarray/array/mixins/io/csv.py 87.50% <100.00%> (-1.39%) ⬇️
docarray/array/mixins/io/json.py 92.50% <100.00%> (+8.28%) ⬆️
docarray/base.py 95.23% <100.00%> (ø)
docarray/document/mixins/pydantic.py 87.75% <100.00%> (+4.03%) ⬆️
docarray/document/pydantic_model.py 97.05% <100.00%> (+0.08%) ⬆️
docarray/math/ndarray.py 90.52% <0.00%> (+2.10%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 86b03f3...c3212a7. Read the comment docs.

@hanxiao

hanxiao commented Jan 17, 2022

Copy link
Copy Markdown
Member Author

do you know that random_docs have embeddings?

@hanxiao
hanxiao marked this pull request as ready for review January 17, 2022 17:16
@hanxiao
hanxiao merged commit a96787e into main Jan 17, 2022
@hanxiao
hanxiao deleted the refactor-json-dict branch January 17, 2022 17:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants