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: github.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:d71f47d8-e085-2a2d-5f24-39ea1d068308 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B776:35369E:2953AFF:361AB27:696487AD |
| html-safe-nonce | a9c1486f99bcd8bf2a05d5535d16072f50c3c31bba6b86bc70c7f6220f93ce53 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNzc2OjM1MzY5RToyOTUzQUZGOjM2MUFCMjc6Njk2NDg3QUQiLCJ2aXNpdG9yX2lkIjoiODA3MTY3OTUwNDU0ODEzNjg3NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 98f289e92bc12a07496698f0b3aee62768eaf0f8acb64b2f9c3bbcca72653567 |
| 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 | baa7d9900fdf7b27d604f36887af878d569cfbdcf97126832a5f4f0caf0c6ba5 |
| 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 | 842eff1d11f899d02b6b3b98fa3ea4860e64b34e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width