Re-verifying Whether Image PDF Parsing in Amazon Bedrock Managed Knowledge Base Has Improved

Re-verifying Whether Image PDF Parsing in Amazon Bedrock Managed Knowledge Base Has Improved

I re-tested in November 2026 whether Amazon Bedrock Managed Knowledge Base has improved at parsing image PDFs. Japanese text reading got better, but documents in a different language from the question are now dropped from search. Fixes included.
2026.12.01

This page has been translated by machine translation. View original

Introduction

Hello! I'm Kosuke from the AI Business Division.

In July 2026, I wrote two articles that ingested image-based PDFs (a feature comparison table with status marks and a system architecture diagram) into Amazon Bedrock Managed Knowledge Base and verified the parsing quality of the Managed parser.

https://dev.classmethod.jp/articles/managed-knowledgebase/

https://dev.classmethod.jp/articles/managed-knowledgebase-en/

To summarize the results roughly: with the Japanese materials, the table broke down and could not be read, and the descriptions of the diagram were generated in English. With the English materials, the text was read correctly, but symbols such as ○ / △ / × inside the image table were sometimes not detected correctly. In this article, I recreate the Managed Knowledge Base under the same conditions as in July and check how the parsing results have changed. At that time it was right after GA, so I would like to verify whether things have improved and whether any behavior has changed.

Please note in advance that the evaluation in this verification is my personal impression from looking at the chunks returned by the Retrieve API with my own eyes. It is not a quantitative evaluation like a benchmark.

Recap of the July Verification Results

Aspect Japanese materials (July) English materials (July)
Text of the comparison table (feature names, plan names) × ○
Symbols of the comparison table (○ / △ / ×) × ×
Description of the architecture diagram △ *1 ○
Chunks of duplicated fragments / broken raw text × *2 -
Questions about the table (1–3) × ○ *3
Questions about the diagram (4–6) ○ ○

Legend: ○ = as expected △ = partially as expected × = not as expected - = not mentioned in the July article
*1 The content was extracted accurately, but the description was mostly in English with a mix of Japanese and English
*2 Fragments of the same description and unreadable text filled the top search results
*3 Symbols were mixed up, but for question 3 the answer was supplemented by the inference of the answer-generating model

With the Japanese materials, the table collapsed into a list of [ ] and [X], and even the feature names could not be read. With the English materials, the table was extracted correctly including its row structure, so my view as of July was that there might be a difference in the language support of the text recognition (OCR). On the other hand, regardless of language, symbols could not be read properly: both ○ and △ became [ ], and the △ in the legend was garbled into the Cyrillic character Д.

Verification Environment and Assumptions

  • Execution date: November 19, 2026
  • Region: Tokyo (ap-northeast-1)
  • Parser: Managed parser (SMART_PARSING)
  • Embeddings model: Titan Text Embeddings V2 (Bedrock embeddings model)
  • Chunking: Default (chunking configuration omitted in the API; see below)
  • Answer generation model: Claude Sonnet 5 (same as in July)
  • One Managed Knowledge Base created per document language (one for Japanese / one for English). Same split as in July
  • Number of trials: 6 questions once each for each KB

Verification Details

Sample Data

I use the same four image-based PDFs without a text layer as in July. All of them are dummy materials I created myself on the theme of a fictitious service, "Example Notes."

File Content
hoshitori.pdf / hoshitori_en.pdf Feature comparison table per plan (Free / Standard / Pro). ○ / △ / × and two footnotes
architecture.pdf / architecture_en.pdf AWS architecture diagram: ALB → ECS (Fargate) → ElastiCache / RDS / S3

Japanese materials

English materials (the same content as the Japanese materials, in English)

Question Set for Evaluation

The questions are the same six (in Japanese) as in July. I ask the KB with the English materials in Japanese as well.

Questions about the comparison table

  1. "Can the feature 'External sharing' be used on the Standard plan?"
  2. "List all features that are available only on the Pro plan."
  3. "Which plan has the most ○?"

Questions about the architecture diagram

  1. "Which database is the web server connected to?"
  2. "List all AWS services that appear in the architecture diagram."
  3. "Are there any components with a single-AZ configuration?"

Verification Method

In a Managed Knowledge Base, the vector store is under AWS management and you cannot view the index directly. Therefore, as in July, I retrieve the top 10 chunks for each question with the Retrieve API and check the parsing results indirectly.

import boto3

client = boto3.client("bedrock-agent-runtime", region_name="ap-northeast-1")

KB_ID = "XXXXXXXXXX"  # ID of the created Managed KB

QUESTIONS = [
    "機能『外部共有』はスタンダードプランで使えますか",
    "プロプランでしか使えない機能をすべて挙げてください",
    "○ が一番多いプランはどれですか",
    "Web サーバーはどのデータベースに接続していますか",
    "構成図に登場する AWS サービスをすべて挙げてください",
    "シングル AZ 構成になっているコンポーネントはありますか",
]

for q in QUESTIONS:
    print(f"\n########## クエリ: {q} ##########")
    # For a Managed KB, use managedSearchConfiguration instead of vectorSearchConfiguration
    res = client.retrieve(
        knowledgeBaseId=KB_ID,
        retrievalQuery={"text": q},
        retrievalConfiguration={"managedSearchConfiguration": {"numberOfResults": 10}},
    )
    for i, result in enumerate(res["retrievalResults"], 1):
        uri = result.get("location", {}).get("s3Location", {}).get("uri", "不明")
        print(f"\n=== チャンク {i}(score: {result.get('score')})===")
        print(f"[source] {uri}")
        print(result["content"]["text"])

For answers, I passed the top 10 chunks retrieved by Retrieve to Claude Sonnet 5 through the Converse API, instructing it to "answer based only on the search results."

Creating the KB

The settings are the same as in July, but this time I created it with boto3. Do not specify storageConfiguration (vector store), and specify MANAGED for type.

agent = boto3.client("bedrock-agent", region_name="ap-northeast-1")

# ARN of the embeddings model (Titan Text Embeddings V2)
TITAN_V2_ARN = boto3.client("bedrock", region_name="ap-northeast-1").get_foundation_model(
    modelIdentifier="amazon.titan-embed-text-v2:0"
)["modelDetails"]["modelArn"]

kb = agent.create_knowledge_base(
    name="managed-kb-revisit-ja",
    roleArn=ROLE_ARN,  # Role Bedrock uses to read S3 and invoke the embeddings model
    knowledgeBaseConfiguration={
        "type": "MANAGED",
        "managedKnowledgeBaseConfiguration": {
            "embeddingModelType": "CUSTOM",  # Specify Titan Text Embeddings V2 yourself
            "embeddingModelArn": TITAN_V2_ARN,
            "embeddingModelConfiguration": {"bedrockEmbeddingModelConfiguration": {"dimensions": 1024}},
        },
    },
)

agent.create_data_source(
    knowledgeBaseId=kb["knowledgeBase"]["knowledgeBaseId"],
    name="s3-ja",
    dataSourceConfiguration={
        "type": "MANAGED_KNOWLEDGE_BASE_CONNECTOR",
        "managedKnowledgeBaseConnectorConfiguration": {
            "connectorParameters": {
                "type": "S3",
                "version": "1",
                "connectionConfiguration": {"bucketName": BUCKET, "bucketOwnerAccountId": ACCOUNT_ID},
                "filterConfiguration": {"inclusionPrefixes": ["ja/"]},
            },
        },
    },
    vectorIngestionConfiguration={"parsingConfiguration": {"parsingStrategy": "SMART_PARSING"}},
)

The sync succeeded in ingesting 2 documents for both the Japanese and English KBs, and both took about 3.5 minutes.

Verification Results

Japanese Materials: Comparison Table (hoshitori.pdf)

Below are the top chunks retrieved for the question "Can the feature 'External sharing' be used on the Standard plan?"

=== チャンク 1(score: 0.774)===
Example Notes プラン別機能比較表
Example Notes プラン別機能比較表 2026年7月版/社内様証用ダミー資料
機能	フリー	スタンダード	プロ
ノート作成・編集
全文検索
リアルタイム共同編集
オフライン編集
外部共有リンク	✕	△ *1
バージョン履歴	✕	△ *2
API アクセス
監査ログ
SSO(シングルサインオン
ストレージ無制限

=== チャンク 2(score: 0.496)===
凡例: ◎ = 利用可能 △ = 制限付きで利用可能 ✕ = 利用不可 *1 外部共有リンクは閲覧のみ(編集権限の付与はプロプランのみ) *2 バージョン履歴の保持期間は 7 日間(プロプランは無制限)

In July it collapsed into a list of [ ] and [X] and even the feature names could not be read, so you can see that the reading of Japanese text has clearly improved. The feature names, plan names, and footnotes *1 *2 are almost correct, and the row structure of the table is preserved (though there seem to be minor misreadings, such as "検証用" becoming "様証用").

On the other hand, symbols such as ○ and × are mostly not being read.

  • ○ (green circle) disappeared from the table and was read as ◎ in the legend
  • × remained as ✕ only in the two rows "External sharing links" and "Version history," and the × in the other six rows (real-time collaborative editing, API access, etc.) disappeared
  • △ remained in both places with *1 *2

Japanese Materials: Architecture Diagram (architecture.pdf)

When I asked questions about the architecture diagram (architecture.pdf) in Japanese, not a single chunk of the diagram was returned.

########## クエリ: 構成図に登場する AWS サービスをすべて挙げてください ##########

=== チャンク 1(score: 0.774)===
[source] s3://<bucket>/ja/hoshitori.pdf
Example Notes プラン別機能比較表 (2026年7月版/社内様証用ダミー資料)

=== チャンク 2(score: 0.496)===
[source] s3://<bucket>/ja/hoshitori.pdf
Example Notes プラン別機能比較表
Example Notes プラン別機能比較表 2026年7月版/社内様証用ダミー資料
機能	フリー	スタンダード	プロ
ノート作成・編集
全文検索
リアルタイム共同編集
オフライン編集
外部共有リンク	✕	△ *1
バージョン履歴	✕	△ *2
API アクセス
監査ログ
SSO(シングルサインオン
ストレージ無制限

=== チャンク 3(score: 0.228)===
[source] s3://<bucket>/ja/hoshitori.pdf
凡例: ◎ = 利用可能 △ = 制限付きで利用可能 ✕ = 利用不可 *1 外部共有リンクは閲覧のみ(編集権限の付与はプロプランのみ) *2 バージョン履歴の保持期間は 7 日間(プロプランは無制限)

Only chunks of the comparison table, unrelated to the architecture diagram, were returned.

On the other hand, when I asked "Which AWS services appear in the architecture diagram?" in English, 7 chunks of the diagram were returned. The parsing result itself is as follows.

=== チャンク 5 ===
</caption> <extraction> - VPC (10.0.0.0/16) - User/Browser (ユーザー/ブラウザ) - HTTPS protocol - ALB (Application Load Balancer) - Web App (Webアプリ) - Amazon ECS (Fargate / マルチAZ) - Session Information (セッション情報) - Cache (キャッシュ) - Amazon ElastiCache (Redis) - DB (Database) - Amazon RDS (PostgreSQL / シングルAZ ※) - Attached File (添付ファイル) - Amazon S3 ...

=== チャンク 7 ===
VPC (10.0.0.0/16) 1-+ HTTPS ALB Web P711 Amazon ECS Application Load Balancer (Fargate / VLFAZ) I SQL [SIGNATURE] DB 1711 Amazon ElastiCache Amazon RDS Amazon S3 (Redis) (PostgreSQL / RDS AZ AZ ) ECS 92312 2 DO AZ 1 S3 11 DB
  • As in July, the description (the content of the <analysis> tag) was generated in English, with Japanese added in parentheses. The content was accurate, and the fact that RDS is single-AZ was also captured
  • The chunks of raw text read directly from the image again had broken Japanese parts ("Web アプリ" → Web P711, "マルチ AZ" → VLFAZ). The title was also unreadable, appearing as Example Notes 24 "X )

Since the descriptions are mostly in English, the architecture diagram seems to be treated as an "English document." I will dig into the reason why the diagram cannot be retrieved with Japanese questions in the later section "The Reason Japanese Questions Cannot Retrieve It May Be the Chunk's Language Code."

English Materials: Symbols of the Comparison Table (hoshitori_en.pdf)

When I sent the six Japanese questions to the English KB, all six returned 0 search results. The Retrieve output contains only the query headings and not a single chunk.

########## クエリ: 機能『外部共有』はスタンダードプランで使えますか ##########

########## クエリ: プロプランでしか使えない機能をすべて挙げてください ##########

########## クエリ: ○ が一番多いプランはどれですか ##########

########## クエリ: Web サーバーはどのデータベースに接続していますか ##########

########## クエリ: 構成図に登場する AWS サービスをすべて挙げてください ##########

########## クエリ: シングル AZ 構成になっているコンポーネントはありますか ##########

Next, I asked "Which features are available only on the Pro plan?" in English to check.

Feature	Free	Standard	Pro
Note creation & editing	[ ]	[ ]	[ ]
Real-time collaboration	[X]	[ ]	[ ]
External sharing links	[X]	[ ] *1	[ ]
API access	[X]	[X]	[ ]

Legend: o = Available Д = Available with limitations = Not available *1 External sharing links are view-only ...

The text and row structure are read correctly, as in July. The symbol output was exactly the same as in July, with no change.

Original symbol Output in table (July) Output in table (now) Output in legend (July) Output in legend (now)
○ (available) [ ] [ ] o o
△ (limited) [ ] [ ] Д Д
× (unavailable) [X] [X] Missing Missing

English Materials: Architecture Diagram (architecture_en.pdf)

Good, as in July. The descriptions were generated accurately in English, and the raw text chunks were also read without breaking, as User HTTPS ALB Web App ... Amazon RDS (PostgreSQL / Single-AZ *). If you ask in English, the chunks of the diagram line up at the top.

Answers to the 6 Questions

Question Japanese KB English KB
1. Can external sharing be used on Standard? ○ Correctly answered "△ (limited). View only," including the footnote × 0 search results
2. Pro-only features △ From the footnotes it listed "edit permission for external sharing" and "unlimited retention of version history," but for API access, audit logs, SSO, and unlimited storage it said "the symbols could not be read, so unknown" × 0 search results
3. Plan with the most ○ × "There is no ○ in the search results, so unknown" × 0 search results
4. DB the web server connects to × The diagram did not appear in search, so "unknown" × 0 search results
5. AWS services in the diagram × Same as above × 0 search results
6. Single-AZ components × Same as above × 0 search results

For the questions about the Japanese table, question 1 can now be answered because the text became readable. The questions about the diagram (4–6) that could be answered in July, and all questions for the English KB, can no longer be answered because the relevant chunks are not returned in search.
It may be that if the language in which the question is asked and the language associated with the document are not the same, the document is no longer included in the search targets.

The Reason Japanese Questions Cannot Retrieve It May Be the Chunk's Language Code

Looking at the results together, we observed behavior in which only chunks in the same language as the question are returned. So I checked the metadata attached to the Retrieve results.

Chunks Have a Language Code

In a Managed Knowledge Base, metadata starting with _ is automatically attached to each chunk at ingestion. The metadata of a chunk of the architecture diagram is as follows.

{
  "_file_type": "PDF",
  "_document_title": "architecture.pdf",
  "_data_source_type": "S3",
  "_excerpt_page_number": 1.0,
  "_language_code": "en",
  "_media_type": "image",
  ...
}

Regarding _language_code, all 7 chunks of architecture.pdf in the Japanese materials were en, and all 3 chunks of hoshitori.pdf were ja. Both files of the English materials were all en.

Only Chunks Whose Language Code Matches the Question's Language Are Retrieved

I changed the questions and counted the _language_code of the returned chunks.

KB Question Count Returned chunks
Japanese External sharing links on the Standard plan 7 Only the diagram (en). The comparison table (ja) that has the answer does not appear
Japanese Amazon RDS PostgreSQL 7 Only the diagram (en)
Japanese Example Notes system architecture diagram 3 Only the comparison table (ja)
Japanese RDS is a single-AZ configuration because it is a test environment 3 Only the comparison table (ja). Even a sentence taken verbatim from a chunk of the diagram cannot retrieve it
Japanese Tell me about the configuration of Amazon RDS 3 Only the comparison table (ja)
English External sharing links / Amazon RDS 9 Comparison table and diagram (both en)
English External sharing links / Tell me about Amazon RDS (in Japanese) 0 None

We found that for questions containing Japanese only ja chunks were retrieved, and for questions with only alphanumeric characters only en chunks were retrieved. Chunks with a different language code do not seem to be included in the retrieval results.

Trying to Rewrite the Language Code

In the same location as ja/architecture.pdf in S3, I placed the following metadata file architecture.pdf.metadata.json and re-synced the KB. This file is originally something I want treated as Japanese data, but it had been labeled en.

{
  "metadataAttributes": {
    "_language_code": {"value": {"type": "STRING", "stringValue": "ja"}},
  }
}

After the rewrite, when I asked in Japanese, the chunks of architecture.pdf could be retrieved!

Question Before rewrite After rewrite
List all AWS services that appear in the architecture diagram 3 (comparison table only) 10 (7 diagram, 3 comparison table)
Which database is the web server connected to? 3 (comparison table only) 10 (7 diagram, 3 comparison table)
Are there any components with a single-AZ configuration? 3 (comparison table only) 10 (7 diagram, 3 comparison table)
ECS Fargate (alphanumeric only) 7 (diagram) 0

The three questions about the diagram could now be answered correctly as well.

質問: 構成図に登場する AWS サービスをすべて挙げてください
- Amazon ECS (Fargate) - Webアプリケーション(マルチAZ構成)
- Amazon ElastiCache (Redis) - セッション情報のキャッシュ用
- Amazon RDS (PostgreSQL) - データベース(検証環境のためシングルAZ構成)
- Amazon S3 - 添付ファイルのストレージ用
- ALB(Application Load Balancer) - HTTPSトラフィックのエントリーポイント

Conversely, the alphanumeric-only "ECS Fargate" returned 0 results. This is because this KB no longer has en chunks, so I think the hypothesis that documents to be searched are narrowed down by the language code of the question text appears correct.

Verification Results

Aspect Japanese (July → now) English (July → now)
Table text × → ○ ○ → ○
Table symbols (○ / △ / ×) × → △ × → × (same mix-up as July)
Description of the diagram △ → △ (generated in English) ○ → ○
Table questions (1–3) × → △ (only question 1 correct) ○ → × (0 search results)
Diagram questions (4–6) ○ → × (diagram not retrieved) ○ → × (0 search results)

Legend: ○ = as expected △ = partially as expected × = not as expected

  • Parsing: The text in Japanese image PDFs became readable. However, table symbols cannot be read correctly in either Japanese or English
  • Search: Only chunks with the same _language_code as the question can be retrieved. Diagrams whose descriptions became English and English materials cannot be retrieved with Japanese questions
  • Workaround: Rewriting _language_code with a metadata file makes them hit in search, and the three diagram questions were answered correctly

Cleanup

When the verification is finished, delete the following so that charges do not continue.

  1. The two Managed Knowledge Bases (Japanese / English). Delete the data sources first, then delete the KBs
  2. The IAM role created for the KBs
  3. The S3 bucket (aws s3 rb s3://<bucket-name> --force)

Conclusion

In this article, I checked the current state of image PDF parsing in Amazon Bedrock Managed Knowledge Base, which I verified in July, using the same materials and the same questions.

As a result, parsing performance seems to have partially improved, but the search mechanism has changed in behavior, and it appears that only data files associated with the same language code as the question text are now search targets. The language code can be rewritten with a metadata file, and once rewritten, the files become search targets.
If you handle image-centric Japanese materials, I continue to recommend checking the Retrieve results with your actual materials and actual questions before adopting Managed Knowledge Base. If you want to handle tables with many symbols accurately, the traditional Knowledge Bases (FM parser), where you can choose the parsing model and prompt, is still a strong option.

I would like to keep verifying this periodically.
Thank you for reading to the end!

References

Share this article

AWSのお困り事はクラスメソッドへ