• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kobotoolbox / kpi / 41868854834
86%
master: 76%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 04 Nov 2026 04:41PM UTC
Jobs 10
Files 890
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

04 Nov 2026 04:35PM UTC coverage: 85.724% (-0.02%) from 85.74%
41868854834

push

github

web-flow
feat(subsequences): use Gemma4 instead of Gemma3 for images DEV-3210 (#7794)

### 👷 Description for instance maintainers
Requires the AWS credentials to have the
`bedrock-mantle:CreateInference` permission


### 💭 Notes
Gemma4 is only available through Bedrock Mantle, not Bedrock Runtime, so
the LLM call requires a little refactoring.

#### Notably not covered
This PR just uses AWS_BEDROCK_REGION_NAME to select the region for the
Mantle client. This may need to be changed to comply with the data
residency requirements, but that is a separate issue.


### 👀 Preview steps
Basically a regression test

Needs to be done through cURL or the API docs page, there is currently
no UI for adding qual to image questions. Make sure you are logged in to
aws.

1. â„šī¸ have an account and a project with an image question
2. Add a submission with the following image: 
<img width="896" height="504" alt="bunny"
src="https://github.com/user-attachments/assets/e6cd7262-3538-4da4-b4f8-b0d32a099074"
/>
3. Add a manual qual question by POSTing to
`/api/v2/assets/<asset_uid>/advanced-features` with

```
{
  "question_xpath": <image_question_xpath>,
  "action": "manual_qual",
  "params": [
    {
      "type": "qualText",
      "uuid": "9df82a5d-8954-484d-8308-ad5ba703a505",
      "labels": {
        "_default": "Describe the rabbit."
      }
   }
  ]
}
```

4. Add the same question to automatic qual by POSTing to
`/api/v2/assets/<asset_uid>/advanced-features` with

```
{
  "question_xpath": <image_question_xpath>,
  "action": "automatic_bedrock_qual",
  "params": [{
      "uuid": "9df82a5d-8954-484d-8308-ad5ba703a505"
      }
  ]
}
```
5. Request an LLM response by PATCHing
`/api/v2/assets/<asset_uid>/data/<submission_root_uuid>/supplement/`
with

```
{
  "_version": "20250820",
  <image_question_xpath>: {
    "automatic_bedrock_qual": {
      "uuid": "9df82a5d-8954-484d-8308-ad5ba703a505"
    }
  }
}
```
6. Look at the data table
7. đŸŸĸ [on PR] notice that there is a column for t... (continued)

10797 of 13642 branches covered (79.15%)

45 of 94 new or added lines in 2 files covered. (47.87%)

3 existing lines in 1 file now uncovered.

33790 of 39417 relevant lines covered (85.72%)

5.8 hits per line

Uncovered Changes

Lines Coverage ∆ File
36
53.25
kobo/apps/subsequences/actions/automatic_bedrock_qual_utils.py
13
26.53
-4.0% kobo/apps/subsequences/actions/automatic_bedrock_qual.py

Coverage Regressions

Lines Coverage ∆ File
3
26.53
-4.0% kobo/apps/subsequences/actions/automatic_bedrock_qual.py
Jobs
ID Job ID Ran Files Coverage
1 41868854834.1 04 Nov 2026 04:41PM UTC 885
54.31
2 41868854834.2 04 Nov 2026 04:41PM UTC 887
55.65
3 41868854834.3 04 Nov 2026 04:42PM UTC 887
58.62
4 41868854834.4 04 Nov 2026 04:42PM UTC 885
59.43
5 41868854834.5 04 Nov 2026 04:42PM UTC 885
49.85
6 41868854834.6 04 Nov 2026 04:42PM UTC 887
51.23
7 41868854834.7 04 Nov 2026 04:44PM UTC 885
57.0
8 41868854834.8 04 Nov 2026 04:45PM UTC 888
66.28
9 41868854834.9 04 Nov 2026 04:48PM UTC 890
68.82
10 41868854834.10 04 Nov 2026 05:14PM UTC 887
60.61
Source Files on build 41868854834
  • Tree
  • List 890
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 0f72414c on github
  • Prev Build on main (#41854501447)
  • Next Build on main (#41891048467)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc