|
75 | 75 | "source": [
|
76 | 76 | "## Introduction to `ImageContent`\n",
|
77 | 77 | "\n",
|
78 |
| - "[`ImageContent`](https://github.com/deepset-ai/haystack/blob/main/haystack/dataclasses/image_content.py) is a new dataclass that stores the image content of a user `ChatMessage`.\n", |
| 78 | + "[`ImageContent`](https://docs.haystack.deepset.ai/docs/chatmessage#types-of-content) is a new dataclass that stores the image content of a user `ChatMessage`.\n", |
79 | 79 | "\n",
|
80 | 80 | "It has the following attributes:\n",
|
81 | 81 | "- `base64_image`: A base64 string representing the image.\n",
|
|
364 | 364 | "## Image Converters for `ImageContent`\n",
|
365 | 365 | "\n",
|
366 | 366 | "To perform image conversion in multimodal pipelines, we also introduced two image converters:\n",
|
367 |
| - "- [`ImageFileToImageContent`](https://github.com/deepset-ai/haystack/blob/main/haystack/components/converters/image/file_to_image.py), which converts image files to `ImageContent` objects (similar to `from_file_path`).\n", |
368 |
| - "- [`PDFToImageContent`](https://github.com/deepset-ai/haystack/blob/main/haystack/components/converters/image/pdf_to_image.py), which converts PDF files to `ImageContent` objects." |
| 367 | + "- [`ImageFileToImageContent`](https://docs.haystack.deepset.ai/docs/imagefiletoimagecontent), which converts image files to `ImageContent` objects (similar to `from_file_path`).\n", |
| 368 | + "- [`PDFToImageContent`](https://docs.haystack.deepset.ai/docs/pdftoimagecontent), which converts PDF files to `ImageContent` objects." |
369 | 369 | ]
|
370 | 370 | },
|
371 | 371 | {
|
|
552 | 552 | "\n",
|
553 | 553 | "As we explored multimodal use cases, it became clear that the existing `ChatPromptBuilder` had some limitations. Specifically, we need a way to pass structured objects like `ImageContent` when building `ChatMessage`, and to handle a variable number of such objects.\n",
|
554 | 554 | "\n",
|
555 |
| - "To address this, we are introducing experimental support for string templates in the `ChatPromptBuilder`. The syntax is pretty simple, as you can see below." |
| 555 | + "To address this, we are introducing [support for string templates in the `ChatPromptBuilder`](https://docs.haystack.deepset.ai/docs/chatpromptbuilder#string-templates). The syntax is pretty simple, as you can see below." |
556 | 556 | ]
|
557 | 557 | },
|
558 | 558 | {
|
|
0 commit comments