Skip to content

Commit ffce99a

Browse files
committed
RDBTC-223 Guide: AI Agent Attachments Fixes 2 and index.tsx fix
1 parent f38763c commit ffce99a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

guides/ai-agents-attachments.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ conversation.AddAttachment(bill.ImageResourceName, imageStream, "image/png");
5858

5959
Of course, this is a simplified version to illustrate the idea, as we already have specific files locally, but you can use it with any binary stream provided by the user. If we wanted to support this without RavenDB’s built-in method, we’d have to rely on a few tools or design our own file-handling mechanism. In practice, that means adding extra components solely to handle file uploads, processing, and retrieval. Compared to a method that works out of the box, the difference is immediately visible.
6060

61-
## How it works
61+
## Storage and token efficiency
6262

6363
This is not only about allowing you to upload a file into chat. When you add a file to the conversation with the Agent, it is added as a RavenDB document Attachment.
6464

@@ -78,7 +78,7 @@ This method tells RavenDB which document to copy the attachment from and specifi
7878

7979
But how does it look in practice? Let’s look at the demo.
8080

81-
### Demo
81+
### Demo: HR Chatbot
8282

8383
<Admonition type="note" title="Run This Demo Yourself">
8484
Before we begin, if you want to run this demo yourself, you can find the [samples-hr repository on GitHub](https://github.com/ravendb/samples-hr). Instructions for launching it are included.

src/theme/IdealImage/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function RegularImg(props: Omit<Props, "img"> & { img: string | { default: strin
7676

7777
return (
7878
<div className="ideal-image-lightbox-host" data-lightbox-src={src} data-lightbox-description={alt}>
79-
<img src={src} alt={alt} {...propsRest} />
79+
<img src={src} alt={alt} className="mb-5" {...propsRest} />
8080
</div>
8181
);
8282
}

0 commit comments

Comments
 (0)