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

kp-forks / txtai
100%

Build:
DEFAULT BRANCH: master
Repo Added 24 Jan 2026 06:02PM UTC
Token KynaA2A0MBcLDjXuRWZkF2VNx5KZwd8qZ regen
Build 19 Last
Files 250
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

LAST BUILD ON BRANCH master
branch: SELECT
CHANGE BRANCH
x
Sync Branches
  • No branch selected
  • master

09 Mar 2026 06:39PM UTC coverage: 100.0%. Remained the same
22883144220

push

github

web-flow
Fix translation chunk concatenation when showmodels is enabled (#1052)

* Fix translation chunk concatenation when showmodels is enabled

When translating long text that gets split into multiple chunks by the
tokenizer, the translate() method combines results from the same source
text segment. With showmodels=True, each result is a tuple (path, text).
Using += to combine tuples produces (path, text1, path, text2) instead
of the expected (path, text1+text2). This causes a ValueError when the
caller unpacks with "model, op = outputs[y]" since there are too many
values.

Fix by explicitly concatenating only the text portion of the tuple when
showmodels is enabled.

Signed-off-by: JiangNan <1394485448@qq.com>

* Add unit test for showmodels with chunked translation

Adds testLongTranslationWithShowmodels to verify that when text is long
enough to be chunked by the tokenizer, the showmodels result is still a
proper 3-tuple (translation, language, model) and not a malformed tuple
from incorrect concatenation.

Signed-off-by: JiangNan <1394485448@qq.com>

* Shorten test method name to fix build

Rename testLongTranslationWithShowmodels -> testShowmodelsChunked
as the previous name was too long for the test runner.

Signed-off-by: JiangNan <1394485448@qq.com>

---------

Signed-off-by: JiangNan <1394485448@qq.com>

5 of 5 new or added lines in 1 file covered. (100.0%)

9591 of 9591 relevant lines covered (100.0%)

1.0 hits per line

Relevant lines Covered
Build:
Build:
9591 RELEVANT LINES 9591 COVERED LINES
1.0 HITS PER LINE
Source Files on master
  • Tree
  • List 250
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
22883144220 master Fix translation chunk concatenation when showmodels is enabled (#1052) * Fix translation chunk concatenation when showmodels is enabled When translating long text that gets split into multiple chunks by the tokenizer, the translate() method comb... push 11 Mar 2026 02:04AM UTC web-flow github
100.0
22290040323 master Merge 3073589ad into a53b43149 Pull #204 24 Feb 2026 01:42AM UTC web-flow github
100.0
22290040966 master Add deterministic setting to database functions closes #1048. Add ability to index database expressions #1049 push 24 Feb 2026 01:06AM UTC davidmezzetti github
100.0
22261301510 master Add support for custom SQL functions with DuckDB, closes #1047 push 22 Feb 2026 05:36PM UTC davidmezzetti github
100.0
22261300571 master Merge a53b43149 into ba0d1eaea Pull #203 22 Feb 2026 05:21PM UTC web-flow github
100.0
22247893261 master Add BB25 normalization for sparse encoders (#1046) * Add log-odds conjunction fusion for BB25 hybrid search BB25 normalization outputs calibrated probabilities, but the existing hybrid fusion uses convex combination which discards the Bayesian p... push 22 Feb 2026 01:55AM UTC web-flow github
100.0
22247892541 master Merge ba0d1eaea into 89299926b Pull #202 22 Feb 2026 01:52AM UTC web-flow github
100.0
22176511704 master Merge 89299926b into 48f0962a4 Pull #201 20 Feb 2026 09:41AM UTC web-flow github
100.0
22150850220 master Merge 48f0962a4 into 1c181e407 Pull #200 19 Feb 2026 05:56PM UTC web-flow github
99.57
22150851549 master Add log-odds conjunction fusion for BB25 hybrid search (#1041) * Add log-odds conjunction fusion for BB25 hybrid search BB25 normalization outputs calibrated probabilities, but the existing hybrid fusion uses convex combination which discards th... push 19 Feb 2026 05:49PM UTC web-flow github
99.57
See All Builds (19)

Badge your Repo: txtai

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

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

Refresh
  • Settings
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc