LLMで画像を取り扱うために画像と図番号を紐付ける方法の技術検討を行う。
環境構築(以下のコマンドは一度だけ実行してください)
git clone [email protected]:dice-tfukuda/llm-image.git
cd llm-image
※buildは環境は環境によって以下のどちらかを実行してください。
[Windows]
docker build -t llm_image:latest
[mac]
docker build -t llm_image:latest --platform linux/amd64 .
docker-compose up -d
docker ps
※このコマンドを実行後dice_ocr:latestのコンテナが立ち上がっていることを確認してください。
接続方法
ブラウザでlocalhost:8888
にアクセスするとJupyter Labに接続できます。
作業終了時のコマンド
docker-compose down
作業再開
docker-compose up -d
dataフォルダを作成しPDFファイルを格納(複数可) outputフォルダを作成しコードを実行すること.txtファイルとして格納されます。