0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

bedrock claude 3.5 sonnet v1 : アップロード可能ファイル拡張子

Last updated at Posted at 2025-02-20

前置き

  • bedrock claude 3.5 sonnet v1 の対応するファイル拡張子を見つける
    • 簡単に検索しただけでは分からなかった
  • AI を少し用いる

結果

  • playground の chat interface
    • gif
    • webp
    • jpeg
    • png
  • converse api を使用した場合
    • gif
    • jpeg
    • png
    • webp
    • docx
    • csv
    • html
    • txt
    • pdf
    • md
    • doc
    • xlsx
    • xls
  • file size 上限
    • ドキュメント : 4.5MB # pdf で試行
    • 画像 : 25MB # png で試行

playground chat ではファイルを添付可能かつ, uploadable ファイルのみ受け付けている.
様々な拡張子でファイルを作成し, 当該 chat interface 上で uploadable 拡張子を見つける.

ファイル作成 AI に任せる

漸進的に進めファイルを作成する

  • 1 : ビジネス, IT開発において一般的に使用される拡張子を列挙
  • 2 : [ 1 ] の結果に不足があれば拡張子の追加を指示する
  • 3 : [ 2 ] の拡張子群を元に, ダミーファイルを作成する touch command の作成指示を行う
  • 4 : [ 3 ] を手動で実行しファイルを作成
  • 5 : playground で読み込み可否を確認する

生成された commands

touch document.doc document.docx
touch spreadsheet.xls spreadsheet.xlsx
touch presentation.ppt presentation.pptx
touch report.pdf
touch notes.txt
touch readme.md
touch data.csv

touch script.py script.rb
touch script.js script.ts
touch program.java
touch code.c code.cpp code.cs
touch main.go main.rs
touch script.php
touch script.sh
touch script.bat

touch index.html
touch style.css
touch style.scss style.sass
touch config.json
touch data.xml
touch settings.yml settings.yaml

touch query.sql
touch database.db
touch storage.sqlite
touch access.mdb access.accdb

touch archive.zip archive.tar
touch compressed.gz
touch backup.7z
touch package.rar

touch app.exe
touch library.dll
touch module.so
touch binary.bin
touch disk.iso

touch vm.ova
touch disk.vmdk
touch disk.vdi
touch Dockerfile

touch .gitignore
touch .gitattributes
touch .editorconfig
touch .env

touch image.jpg image.jpeg
touch image.png
touch animation.gif
touch vector.svg
touch design.psd
touch illustration.ai
touch picture.bmp
touch photo.tiff photo.tif
touch graphic.webp
touch capture.heic
touch raw_image.raw
touch camera.cr2
touch camera.raf
touch camera.nef
touch camera.orf
touch camera.sr2
touch camera.dng

touch video.mp4
touch movie.avi
touch clip.mov
touch audio.mp3
touch sound.wav

chat からファイル選択ダイアログを表示

受付可能ファイルのみが白文字となる
スクリーンショット 2025-02-20 15.49.14.png

所感

  • 数分で作成できたので楽でした
  • ハルシネーション
    • 存在しない拡張子も含まれるかもしれないが, この場合では問題無い
  • claude 3.5 sonnet v1 が playground で受け付けている拡張子は意外と少ない

補足

こちらがより正確
converse api call 時に適当な拡張子を指定すると, 応答として返してくれました.
また, converse api では claude 3.5 sonnet v1 でもドキュメント系のファイルが受付可能でした

Member must satisfy enum value set: 
[docx, csv, html, txt, pdf, md, doc, xlsx, xls]
 Member must satisfy enum value set: 
 [gif, jpeg, png, webp]

補足2

bedrock claude 3.5 sonnet v2 では playground chat からドキュメントタイプのファイルも読み込み可能でした

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?