├── .github └── workflows │ └── ci.yml ├── .gitignore ├── .gitlab-ci.yml ├── .pre-commit-config.yaml ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── app.py ├── cdk.json ├── config-example.yml ├── demo ├── example_attributes │ ├── attributes_email.json │ └── attributes_financial.json ├── idp_bedrock_demo.ipynb ├── originals │ ├── Financial Statement 1.pdf │ ├── Financial Statement 2.pdf │ ├── Financial Statement 3.pdf │ ├── boarding-pass-example.pdf │ ├── boarding-pass-example.png │ ├── cloud-adoption-framework.pdf │ ├── code-sample-catalog.pdf │ ├── email_1.txt │ ├── email_2.txt │ ├── email_3.txt │ └── markings.json └── utils.py ├── infra ├── __init__.py ├── constructs │ ├── __init__.py │ ├── api.py │ ├── buckets.py │ ├── cognito_auth.py │ └── layers.py ├── stack.py └── stacks │ ├── __init__.py │ └── ecs.py ├── install_deps.sh ├── install_env.sh ├── mcp ├── bedrock_server │ ├── README.md │ ├── deploy_idp_bedrock_mcp.ipynb │ ├── deploy_idp_bedrock_mcp.py │ ├── mcp_server.py │ ├── requirements.txt │ ├── test_mcp_server.py │ ├── tests │ │ ├── __init__.py │ │ ├── pytest.ini │ │ ├── test_direct_http.py │ │ └── test_helpers.py │ ├── update_mcp_config.sh │ └── utils.py └── local_server │ ├── README.md │ ├── deploy_stdio_server.sh │ ├── mcp_stdio_server.py │ └── requirements.txt ├── media ├── architecture.drawio ├── architecture.png ├── diagram.png ├── idp_demo.mp4 ├── mcp_agentcore.png └── team │ ├── aiham.jpeg │ ├── babs.jpeg │ ├── egor.jpeg │ ├── elizaveta.jpeg │ ├── ennio.jpeg │ ├── huong.jpeg │ ├── nikita.jpeg │ ├── nuno.jpeg │ ├── romain.jpeg │ └── zainab.jpeg ├── pyproject.toml └── src ├── ecs ├── .env ├── .streamlit │ ├── config.toml │ └── pages.toml ├── Dockerfile ├── Makefile ├── build_docker.sh ├── pyproject.toml ├── src │ ├── Home.py │ ├── app_pages │ │ └── idp_bedrock.py │ ├── components │ │ ├── api.py │ │ ├── authenticate.py │ │ ├── constants.py │ │ ├── frontend.py │ │ ├── model.py │ │ ├── s3.py │ │ ├── ssm.py │ │ └── styling.py │ └── static │ │ ├── cover_image.png │ │ ├── employment_contract.pdf │ │ ├── rental_agreement_contract.pdf │ │ └── service_agreement_contract.pdf └── uv.lock ├── lambda ├── get_presigned_url │ └── get_presigned_url.py ├── read_office_file │ ├── Dockerfile │ ├── read_office.py │ ├── requirements.txt │ └── utils.py ├── retrieve_from_ddb │ └── retrieve_list.py ├── run_bda │ └── run_bda.py ├── run_idp_on_image │ ├── Dockerfile │ ├── __init__.py │ ├── helpers.py │ ├── model │ │ ├── bedrock.py │ │ └── parser.py │ ├── prompter.py │ ├── prompts │ │ ├── prompt.txt │ │ └── system_prompt.txt │ ├── requirements.txt │ └── run_idp_on_image.py ├── run_idp_on_text │ ├── Dockerfile │ ├── model │ │ ├── __init__.py │ │ ├── bedrock.py │ │ └── parser.py │ ├── prompter.py │ ├── prompts │ │ ├── prompt.txt │ │ └── system_prompt.txt │ ├── requirements.txt │ ├── run_idp_on_text.py │ └── utils.py ├── run_textract │ ├── run_textract.py │ └── utils.py └── upload_few_shot │ └── upload_few_shot.py ├── layers ├── extra_deps │ └── requirements.txt ├── idp_bedrock │ └── python │ │ ├── messaging │ │ ├── __init__.py │ │ ├── publishers │ │ │ ├── __init__.py │ │ │ └── base.py │ │ └── service.py │ │ ├── model │ │ ├── __init__.py │ │ ├── bedrock.py │ │ └── parser.py │ │ └── requirements.txt └── textractor │ └── requirements.txt └── step_functions └── state_machine.json /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitlab-ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/.gitlab-ci.yml -------------------------------------------------------------------------------- /.pre-commit-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/.pre-commit-config.yaml -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/README.md -------------------------------------------------------------------------------- /app.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/app.py -------------------------------------------------------------------------------- /cdk.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/cdk.json -------------------------------------------------------------------------------- /config-example.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/config-example.yml -------------------------------------------------------------------------------- /demo/example_attributes/attributes_email.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/demo/example_attributes/attributes_email.json -------------------------------------------------------------------------------- /demo/example_attributes/attributes_financial.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/demo/example_attributes/attributes_financial.json -------------------------------------------------------------------------------- /demo/idp_bedrock_demo.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/demo/idp_bedrock_demo.ipynb -------------------------------------------------------------------------------- /demo/originals/Financial Statement 1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/demo/originals/Financial Statement 1.pdf -------------------------------------------------------------------------------- /demo/originals/Financial Statement 2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/demo/originals/Financial Statement 2.pdf -------------------------------------------------------------------------------- /demo/originals/Financial Statement 3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/demo/originals/Financial Statement 3.pdf -------------------------------------------------------------------------------- /demo/originals/boarding-pass-example.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/demo/originals/boarding-pass-example.pdf -------------------------------------------------------------------------------- /demo/originals/boarding-pass-example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/demo/originals/boarding-pass-example.png -------------------------------------------------------------------------------- /demo/originals/cloud-adoption-framework.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/demo/originals/cloud-adoption-framework.pdf -------------------------------------------------------------------------------- /demo/originals/code-sample-catalog.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/demo/originals/code-sample-catalog.pdf -------------------------------------------------------------------------------- /demo/originals/email_1.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/demo/originals/email_1.txt -------------------------------------------------------------------------------- /demo/originals/email_2.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/demo/originals/email_2.txt -------------------------------------------------------------------------------- /demo/originals/email_3.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/demo/originals/email_3.txt -------------------------------------------------------------------------------- /demo/originals/markings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/demo/originals/markings.json -------------------------------------------------------------------------------- /demo/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/demo/utils.py -------------------------------------------------------------------------------- /infra/__init__.py: -------------------------------------------------------------------------------- 1 | """ 2 | Copyright © Amazon.com and Affiliates 3 | """ 4 | -------------------------------------------------------------------------------- /infra/constructs/__init__.py: -------------------------------------------------------------------------------- 1 | """ 2 | Copyright © Amazon.com and Affiliates 3 | """ 4 | -------------------------------------------------------------------------------- /infra/constructs/api.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/infra/constructs/api.py -------------------------------------------------------------------------------- /infra/constructs/buckets.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/infra/constructs/buckets.py -------------------------------------------------------------------------------- /infra/constructs/cognito_auth.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/infra/constructs/cognito_auth.py -------------------------------------------------------------------------------- /infra/constructs/layers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/infra/constructs/layers.py -------------------------------------------------------------------------------- /infra/stack.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/infra/stack.py -------------------------------------------------------------------------------- /infra/stacks/__init__.py: -------------------------------------------------------------------------------- 1 | """ 2 | Copyright © Amazon.com and Affiliates 3 | """ 4 | -------------------------------------------------------------------------------- /infra/stacks/ecs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/infra/stacks/ecs.py -------------------------------------------------------------------------------- /install_deps.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/install_deps.sh -------------------------------------------------------------------------------- /install_env.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/install_env.sh -------------------------------------------------------------------------------- /mcp/bedrock_server/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/mcp/bedrock_server/README.md -------------------------------------------------------------------------------- /mcp/bedrock_server/deploy_idp_bedrock_mcp.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/mcp/bedrock_server/deploy_idp_bedrock_mcp.ipynb -------------------------------------------------------------------------------- /mcp/bedrock_server/deploy_idp_bedrock_mcp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/mcp/bedrock_server/deploy_idp_bedrock_mcp.py -------------------------------------------------------------------------------- /mcp/bedrock_server/mcp_server.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/mcp/bedrock_server/mcp_server.py -------------------------------------------------------------------------------- /mcp/bedrock_server/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/mcp/bedrock_server/requirements.txt -------------------------------------------------------------------------------- /mcp/bedrock_server/test_mcp_server.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/mcp/bedrock_server/test_mcp_server.py -------------------------------------------------------------------------------- /mcp/bedrock_server/tests/__init__.py: -------------------------------------------------------------------------------- 1 | """Test package for IDP with Amazon Bedrock MCP Server.""" 2 | -------------------------------------------------------------------------------- /mcp/bedrock_server/tests/pytest.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/mcp/bedrock_server/tests/pytest.ini -------------------------------------------------------------------------------- /mcp/bedrock_server/tests/test_direct_http.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/mcp/bedrock_server/tests/test_direct_http.py -------------------------------------------------------------------------------- /mcp/bedrock_server/tests/test_helpers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/mcp/bedrock_server/tests/test_helpers.py -------------------------------------------------------------------------------- /mcp/bedrock_server/update_mcp_config.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/mcp/bedrock_server/update_mcp_config.sh -------------------------------------------------------------------------------- /mcp/bedrock_server/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/mcp/bedrock_server/utils.py -------------------------------------------------------------------------------- /mcp/local_server/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/mcp/local_server/README.md -------------------------------------------------------------------------------- /mcp/local_server/deploy_stdio_server.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/mcp/local_server/deploy_stdio_server.sh -------------------------------------------------------------------------------- /mcp/local_server/mcp_stdio_server.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/mcp/local_server/mcp_stdio_server.py -------------------------------------------------------------------------------- /mcp/local_server/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/mcp/local_server/requirements.txt -------------------------------------------------------------------------------- /media/architecture.drawio: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/media/architecture.drawio -------------------------------------------------------------------------------- /media/architecture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/media/architecture.png -------------------------------------------------------------------------------- /media/diagram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/media/diagram.png -------------------------------------------------------------------------------- /media/idp_demo.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/media/idp_demo.mp4 -------------------------------------------------------------------------------- /media/mcp_agentcore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/media/mcp_agentcore.png -------------------------------------------------------------------------------- /media/team/aiham.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/media/team/aiham.jpeg -------------------------------------------------------------------------------- /media/team/babs.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/media/team/babs.jpeg -------------------------------------------------------------------------------- /media/team/egor.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/media/team/egor.jpeg -------------------------------------------------------------------------------- /media/team/elizaveta.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/media/team/elizaveta.jpeg -------------------------------------------------------------------------------- /media/team/ennio.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/media/team/ennio.jpeg -------------------------------------------------------------------------------- /media/team/huong.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/media/team/huong.jpeg -------------------------------------------------------------------------------- /media/team/nikita.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/media/team/nikita.jpeg -------------------------------------------------------------------------------- /media/team/nuno.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/media/team/nuno.jpeg -------------------------------------------------------------------------------- /media/team/romain.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/media/team/romain.jpeg -------------------------------------------------------------------------------- /media/team/zainab.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/media/team/zainab.jpeg -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/pyproject.toml -------------------------------------------------------------------------------- /src/ecs/.env: -------------------------------------------------------------------------------- 1 | # Copyright © Amazon.com and Affiliates 2 | 3 | STACK_NAME="idp-bedrock" 4 | LOCAL_AUTH_FLOW="true" 5 | -------------------------------------------------------------------------------- /src/ecs/.streamlit/config.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/ecs/.streamlit/config.toml -------------------------------------------------------------------------------- /src/ecs/.streamlit/pages.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/ecs/.streamlit/pages.toml -------------------------------------------------------------------------------- /src/ecs/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/ecs/Dockerfile -------------------------------------------------------------------------------- /src/ecs/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/ecs/Makefile -------------------------------------------------------------------------------- /src/ecs/build_docker.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/ecs/build_docker.sh -------------------------------------------------------------------------------- /src/ecs/pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/ecs/pyproject.toml -------------------------------------------------------------------------------- /src/ecs/src/Home.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/ecs/src/Home.py -------------------------------------------------------------------------------- /src/ecs/src/app_pages/idp_bedrock.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/ecs/src/app_pages/idp_bedrock.py -------------------------------------------------------------------------------- /src/ecs/src/components/api.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/ecs/src/components/api.py -------------------------------------------------------------------------------- /src/ecs/src/components/authenticate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/ecs/src/components/authenticate.py -------------------------------------------------------------------------------- /src/ecs/src/components/constants.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/ecs/src/components/constants.py -------------------------------------------------------------------------------- /src/ecs/src/components/frontend.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/ecs/src/components/frontend.py -------------------------------------------------------------------------------- /src/ecs/src/components/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/ecs/src/components/model.py -------------------------------------------------------------------------------- /src/ecs/src/components/s3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/ecs/src/components/s3.py -------------------------------------------------------------------------------- /src/ecs/src/components/ssm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/ecs/src/components/ssm.py -------------------------------------------------------------------------------- /src/ecs/src/components/styling.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/ecs/src/components/styling.py -------------------------------------------------------------------------------- /src/ecs/src/static/cover_image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/ecs/src/static/cover_image.png -------------------------------------------------------------------------------- /src/ecs/src/static/employment_contract.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/ecs/src/static/employment_contract.pdf -------------------------------------------------------------------------------- /src/ecs/src/static/rental_agreement_contract.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/ecs/src/static/rental_agreement_contract.pdf -------------------------------------------------------------------------------- /src/ecs/src/static/service_agreement_contract.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/ecs/src/static/service_agreement_contract.pdf -------------------------------------------------------------------------------- /src/ecs/uv.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/ecs/uv.lock -------------------------------------------------------------------------------- /src/lambda/get_presigned_url/get_presigned_url.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/lambda/get_presigned_url/get_presigned_url.py -------------------------------------------------------------------------------- /src/lambda/read_office_file/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/lambda/read_office_file/Dockerfile -------------------------------------------------------------------------------- /src/lambda/read_office_file/read_office.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/lambda/read_office_file/read_office.py -------------------------------------------------------------------------------- /src/lambda/read_office_file/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/lambda/read_office_file/requirements.txt -------------------------------------------------------------------------------- /src/lambda/read_office_file/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/lambda/read_office_file/utils.py -------------------------------------------------------------------------------- /src/lambda/retrieve_from_ddb/retrieve_list.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/lambda/retrieve_from_ddb/retrieve_list.py -------------------------------------------------------------------------------- /src/lambda/run_bda/run_bda.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/lambda/run_bda/run_bda.py -------------------------------------------------------------------------------- /src/lambda/run_idp_on_image/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/lambda/run_idp_on_image/Dockerfile -------------------------------------------------------------------------------- /src/lambda/run_idp_on_image/__init__.py: -------------------------------------------------------------------------------- 1 | """ 2 | Copyright © Amazon.com and Affiliates 3 | """ 4 | -------------------------------------------------------------------------------- /src/lambda/run_idp_on_image/helpers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/lambda/run_idp_on_image/helpers.py -------------------------------------------------------------------------------- /src/lambda/run_idp_on_image/model/bedrock.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/lambda/run_idp_on_image/model/bedrock.py -------------------------------------------------------------------------------- /src/lambda/run_idp_on_image/model/parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/lambda/run_idp_on_image/model/parser.py -------------------------------------------------------------------------------- /src/lambda/run_idp_on_image/prompter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/lambda/run_idp_on_image/prompter.py -------------------------------------------------------------------------------- /src/lambda/run_idp_on_image/prompts/prompt.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/lambda/run_idp_on_image/prompts/prompt.txt -------------------------------------------------------------------------------- /src/lambda/run_idp_on_image/prompts/system_prompt.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/lambda/run_idp_on_image/prompts/system_prompt.txt -------------------------------------------------------------------------------- /src/lambda/run_idp_on_image/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/lambda/run_idp_on_image/requirements.txt -------------------------------------------------------------------------------- /src/lambda/run_idp_on_image/run_idp_on_image.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/lambda/run_idp_on_image/run_idp_on_image.py -------------------------------------------------------------------------------- /src/lambda/run_idp_on_text/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/lambda/run_idp_on_text/Dockerfile -------------------------------------------------------------------------------- /src/lambda/run_idp_on_text/model/__init__.py: -------------------------------------------------------------------------------- 1 | """ 2 | Copyright © Amazon.com and Affiliates 3 | """ 4 | -------------------------------------------------------------------------------- /src/lambda/run_idp_on_text/model/bedrock.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/lambda/run_idp_on_text/model/bedrock.py -------------------------------------------------------------------------------- /src/lambda/run_idp_on_text/model/parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/lambda/run_idp_on_text/model/parser.py -------------------------------------------------------------------------------- /src/lambda/run_idp_on_text/prompter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/lambda/run_idp_on_text/prompter.py -------------------------------------------------------------------------------- /src/lambda/run_idp_on_text/prompts/prompt.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/lambda/run_idp_on_text/prompts/prompt.txt -------------------------------------------------------------------------------- /src/lambda/run_idp_on_text/prompts/system_prompt.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/lambda/run_idp_on_text/prompts/system_prompt.txt -------------------------------------------------------------------------------- /src/lambda/run_idp_on_text/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/lambda/run_idp_on_text/requirements.txt -------------------------------------------------------------------------------- /src/lambda/run_idp_on_text/run_idp_on_text.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/lambda/run_idp_on_text/run_idp_on_text.py -------------------------------------------------------------------------------- /src/lambda/run_idp_on_text/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/lambda/run_idp_on_text/utils.py -------------------------------------------------------------------------------- /src/lambda/run_textract/run_textract.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/lambda/run_textract/run_textract.py -------------------------------------------------------------------------------- /src/lambda/run_textract/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/lambda/run_textract/utils.py -------------------------------------------------------------------------------- /src/lambda/upload_few_shot/upload_few_shot.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/lambda/upload_few_shot/upload_few_shot.py -------------------------------------------------------------------------------- /src/layers/extra_deps/requirements.txt: -------------------------------------------------------------------------------- 1 | pandas==2.2.0 2 | -------------------------------------------------------------------------------- /src/layers/idp_bedrock/python/messaging/__init__.py: -------------------------------------------------------------------------------- 1 | """ 2 | Copyright © Amazon.com and Affiliates 3 | """ 4 | -------------------------------------------------------------------------------- /src/layers/idp_bedrock/python/messaging/publishers/__init__.py: -------------------------------------------------------------------------------- 1 | """ 2 | Copyright © Amazon.com and Affiliates 3 | """ 4 | -------------------------------------------------------------------------------- /src/layers/idp_bedrock/python/messaging/publishers/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/layers/idp_bedrock/python/messaging/publishers/base.py -------------------------------------------------------------------------------- /src/layers/idp_bedrock/python/messaging/service.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/layers/idp_bedrock/python/messaging/service.py -------------------------------------------------------------------------------- /src/layers/idp_bedrock/python/model/__init__.py: -------------------------------------------------------------------------------- 1 | """ 2 | Copyright © Amazon.com and Affiliates 3 | """ 4 | -------------------------------------------------------------------------------- /src/layers/idp_bedrock/python/model/bedrock.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/layers/idp_bedrock/python/model/bedrock.py -------------------------------------------------------------------------------- /src/layers/idp_bedrock/python/model/parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/layers/idp_bedrock/python/model/parser.py -------------------------------------------------------------------------------- /src/layers/idp_bedrock/python/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/layers/idp_bedrock/python/requirements.txt -------------------------------------------------------------------------------- /src/layers/textractor/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/layers/textractor/requirements.txt -------------------------------------------------------------------------------- /src/step_functions/state_machine.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/intelligent-document-processing-with-amazon-bedrock/HEAD/src/step_functions/state_machine.json --------------------------------------------------------------------------------