Title: “Multimodal deep learning with DocArray” There are many errors on the page · Issue #1889 · docarray/docarray · GitHub
Open Graph Title: “Multimodal deep learning with DocArray” There are many errors on the page · Issue #1889 · docarray/docarray
X Title: “Multimodal deep learning with DocArray” There are many errors on the page · Issue #1889 · docarray/docarray
Description: Initial Checks I have read and followed the docs and still think this is a bug Description I couldn't find anywhere else to report document errors. https://docs.docarray.org/how_to/multimodal_training_and_serving/ Defined class PairTextI...
Open Graph Description: Initial Checks I have read and followed the docs and still think this is a bug Description I couldn't find anywhere else to report document errors. https://docs.docarray.org/how_to/multimodal_train...
X Description: Initial Checks I have read and followed the docs and still think this is a bug Description I couldn't find anywhere else to report document errors. https://docs.docarray.org/how_to/multimodal_t...
Opengraph URL: https://github.com/docarray/docarray/issues/1889
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"“Multimodal deep learning with DocArray” There are many errors on the page","articleBody":"### Initial Checks\n\n- [X] I have read and followed [the docs](https://docs.docarray.org/) and still think this is a bug\n\n### Description\n\nI couldn't find anywhere else to report document errors.\r\nhttps://docs.docarray.org/how_to/multimodal_training_and_serving/\r\nDefined\r\n```\r\nclass PairTextImage(BaseDoc):\r\n text: TextDoc\r\n image: ImageDoc\r\n```\r\nand then use it\r\n```\r\n da = DocList[PairTextImage](\r\n PairTextImage(text=Text(text=i.caption), image=Image(url=f\"Images/{i.image}\"))\r\n for i in df.itertuples()\r\n )\r\n```\r\nactually the `Image` class is not defined.\r\n```\r\n def __call__(self, text: Text) -\u003e None:\r\n assert isinstance(text, Text)\r\n text.tokens = Tokens(\r\n **self.tokenizer(\r\n text.text, padding=\"max_length\", truncation=True, max_length=48\r\n )\r\n```\r\nand the `Text` class is not defined.\r\n\r\n\r\n\n\n### Example Code\n\n_No response_\n\n### Python, DocArray \u0026 OS Version\n\n```Text\nI couldn't find anywhere else to report document errors\n```\n\n\n### Affected Components\n\n- [ ] [Vector Database / Index](https://docs.docarray.org/user_guide/storing/docindex/)\n- [ ] [Representing](https://docs.docarray.org/user_guide/representing/first_step)\n- [ ] [Sending](https://docs.docarray.org/user_guide/sending/first_step/)\n- [ ] [storing](https://docs.docarray.org/user_guide/storing/first_step/)\n- [X] [multi modal data type](https://docs.docarray.org/data_types/first_steps/)","author":{"url":"https://github.com/Kodp","@type":"Person","name":"Kodp"},"datePublished":"2024-05-29T01:17:47.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/1889/docarray/issues/1889"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:279e88a6-9144-615b-8dda-5ce1bbb1145a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9178:1DE0:452907:609DFF:6982F0DE |
| html-safe-nonce | 0ba2a7e83771b085ac9c31d5df5ae85b2674a82625710b845e1dc7d367ebedec |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTc4OjFERTA6NDUyOTA3OjYwOURGRjo2OTgyRjBERSIsInZpc2l0b3JfaWQiOiI0ODk0MDk3NTk5MTc4MzAzNjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9351aabd285a4e244787c61ac7c87f70aff91762d7fdbb92532649faee95fb28 |
| hovercard-subject-tag | issue:2322158116 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/docarray/docarray/1889/issue_layout |
| twitter:image | https://opengraph.githubassets.com/797aeb0cb7910dcc9d19268a9b2207a1a50d628c595814028ca84f0c5a07ce95/docarray/docarray/issues/1889 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/797aeb0cb7910dcc9d19268a9b2207a1a50d628c595814028ca84f0c5a07ce95/docarray/docarray/issues/1889 |
| og:image:alt | Initial Checks I have read and followed the docs and still think this is a bug Description I couldn't find anywhere else to report document errors. https://docs.docarray.org/how_to/multimodal_train... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Kodp |
| hostname | github.com |
| expected-hostname | github.com |
| None | c6741528aa4d4ba81c57bbff8f8cc0de0e9115cb2993431dc9dac8d489f7b4ee |
| turbo-cache-control | no-preview |
| go-import | github.com/docarray/docarray git https://github.com/docarray/docarray.git |
| octolytics-dimension-user_id | 117445116 |
| octolytics-dimension-user_login | docarray |
| octolytics-dimension-repository_id | 438303578 |
| octolytics-dimension-repository_nwo | docarray/docarray |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 438303578 |
| octolytics-dimension-repository_network_root_nwo | docarray/docarray |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | df2a3cea9cc9adaf422cd462f5351935c407af4d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width