cloudwego / cloudwego/eino-ext

MultiModelRead returns PDF bytes directly, which model cannot recognize

Open Beginner friendly
#892 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
811
Forks
368
Avg merge
16h 22m
Merged PRs (30d)
13

Description

adk/backend/Local.MultiModalRead 模型没有传 pages 参数时, 直接返回了PDF二进制数据,模型无法识别
```go
if !paged {
return &filesystem.MultiFileContent{
Parts: []filesystem.FileContentPart{
{
Type: filesystem.FileContentPartTypePDF,
MIMEType: "application/pdf",
Data: data,
},
},
}, nil
}
```

Contributor guide

Open the contributing guide

Research direction

Start in adk/backend/Local.MultiModalRead and inspect the no-pages branch alongside the paged branch. Trace how MultiFileContent PDF parts are passed to the model, then verify that the returned content is recognized as intended when pages is omitted.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
ai, backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.