Repository navigation
feat: 決算分析精度と実PDF評価基盤を改善 - #21
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
TDnet決算資料の読み取り精度を高めるため、PDF抽出からLLM分析、構造化出力検証、表示までを段階的に改善しました。会社ごとに異なる決算資料の表現はLLMで意味的に解釈しつつ、元PDFの根拠と決定論的な検証処理を組み合わせています。
主な変更
背景
従来は会社ごとの表記差、赤字決算、進捗率、事業別損益などを固定的な文字列判定だけで扱うと、誤判定や不適切な表示が発生する余地がありました。本変更ではLLMによる文脈理解を活用し、その結果をスキーマ検証と決定論的な補正で安全に扱います。
影響
.envからローカル評価時のみ読み込みます検証
npm test: 12ファイル / 153テスト合格npm run type-check: 合格npm run lint: 合格npm run build: 合格