-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add docs for evaluating with attachments #540
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
outputs={"answer": "$123456"}, | ||
attachments={ | ||
# Each attachments is just a name with a mime type and the bytes content of the file | ||
"pdf": ("application/pdf", Path("./foo_earnings.pdf").read_bytes()), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not related to this pr, but is it too late to change tuple -> dict? imo naming the values improves usability a lot, eg
attachments = [
{
"name": "my_pdf",
"mime_type": "applications/pdf",
"bytes": Path(...).read_bytes()
},
...
]
is easier to read for me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
related to this pr, would be nice to download some real public pdf here to use. could just be https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf
docs/evaluation/how_to_guides/evaluation/evaluate_with_attachments.mdx
Outdated
Show resolved
Hide resolved
docs/evaluation/how_to_guides/evaluation/evaluate_with_attachments.mdx
Outdated
Show resolved
Hide resolved
docs/evaluation/how_to_guides/evaluation/evaluate_with_attachments.mdx
Outdated
Show resolved
Hide resolved
docs/evaluation/how_to_guides/evaluation/evaluate_with_attachments.mdx
Outdated
Show resolved
Hide resolved
|
||
# Evaluate an LLM application with attachments | ||
|
||
Attachments allow you to associate large files with your examples. This allows you to evaluate RAG applications |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe worth adding a sentence about why attachments are better than storing file in example inputs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tried my best, but someone more well versed with the benefits should probably chime in
No description provided.