Commit Graph
162 Commits
Author SHA1 Message Date
Zhichang Yu 9a71c10b09 refactor: keep the enterprise code out of the community build (#21614) 2026-10-29 11:35:50 +08:00
jay77721 d697b0410a feat(parser): add media references for on-demand image materialization (#21561) 2026-10-28 19:47:53 +08:00
qinling0210 7c8a7f26a1 fix(retrieval): align pagerank and rank-feature scoring (#21542) 2026-10-28 13:23:55 +08:00
buua436 56582a9926 fix: harden SMTP, SQL, and tokenizer boundaries (#21558) 2026-10-28 09:38:20 +08:00
ZZZZY eb939014f7 fix(infinity): split InsertChunks into batches of 8192 rows (#21380) 2026-10-23 13:36:13 +08:00
Lynn 4fd8c439af Fix: export deleteIfEqual for ee (#21351) 2026-10-22 20:15:55 +08:00
Bharadwaj Pendyala d7c8e1730d fix(infinity): treat dropping a missing table as a no-op (#20512)
Closes #20501
2026-10-22 12:20:45 +08:00
eleven914 e2d1c25e19 fix(kvrocks): propagate SetNX errors (#20746) 2026-10-16 22:02:35 +08:00
qinling0210 54cb269d0d feat(infinity): implement SearchByRegexp for the agent grep tool (#21068) 2026-10-16 17:15:53 +08:00
qinling0210 6303d2fc37 fix(infinity): keep one row per chunk id on insert (#21043) 2026-10-16 11:25:14 +08:00
Martin Civáňandmcivan 0ee7580672 Add Slovak & Czech language dataset support (#19013)
### Summary

Slovak and Czech datasets are effectively BM25-blind today. The tokenizer only keeps ASCII letter runs whole, so every accented word is fragmented before indexing (`škola` -> `š kola`) and the keyword leg of hybrid search never matches. Neither language has a Snowball stemmer either, so the analyzer inherits whatever stemmer the previously processed dataset left behind.


Co-authored-by: mcivan <martin.civan@nases.gov.sk>
2026-10-15 10:24:09 +08:00
qinling0210 ce3146be69 fix(infinity): make memory messages work on the Infinity engine (#20954) 2026-10-14 20:12:31 +08:00
qinling0210 fb8c6bfe61 fix(searchbot): honor the search app's saved retrieval config (#20944) 2026-10-14 17:36:51 +08:00
Wang Qi 5d25a3f859 Feature: add knowledge_compilation_scope (#20917) 2026-10-14 16:47:37 +08:00
Harsh Kashyap 805cd602ac fix(kvrocks): surface transport errors from SetNX and DistributedLock.Acquire (#20660) (#20774) 2026-10-14 16:35:34 +08:00
qinling0210 560702778c fix(chunk): keep the chunk list inside the requested document scope (#20914) 2026-10-13 19:56:29 +08:00
Yash Raj Pandey 65bfcf443e fix(infinity): drop row keys that are not table columns (#20513) 2026-10-13 10:36:18 +08:00
adws e7a3aef799 fix: correct multi-tenant retrieval scope (#20824) 2026-10-12 20:07:37 +08:00
qinling0210 bd3ef98d3e fix(infinity): make pool max idle connections configurable via INFINITY_POOL_MAX_IDLE (#20831) 2026-10-12 17:23:00 +08:00
Sourav Rajvi 9e53ae49af Fix Redis INFO memory reporting for Tair-compatible services (#19905)
Fixes #19873
2026-10-12 10:53:48 +08:00
Jin Hai 0e5ef65736 refactor (#20783)
Signed-off-by: Jin Hai <haijin.chn@gmail.com>
2026-10-12 10:16:30 +08:00
adws 104c682ba7 docs(engine): remove stale README (#20398) 2026-10-10 18:27:30 +08:00
Xavierando b33b458b61 fix(chunk): persist tag_kwd on Go UpdateChunk (#20138) (#20536) 2026-10-09 16:34:22 +08:00
adws 83c6ebdf2b fix(wiki): remove duplicate Markdown storage (#20597) 2026-10-09 15:48:06 +08:00
kk710 ef150bc2cd feat(vastbase): add Vastbase G100 document engine support with go (#20419) 2026-10-08 20:02:37 +08:00
deadtrickster 4e38aa47c2 serenedb: stop compiling the similarity threshold into the ANN scan (#20222) 2026-10-08 18:59:48 +08:00
Wang Qi f307aba34f Refactor: knowledge compilation field name refactor (#20587) 2026-10-08 16:05:27 +08:00
quifox 7a5a337756 fix(elasticsearch): propagate search failures with index context (#20546) 2026-10-08 14:00:54 +08:00
Zhichang Yu 2400ca8eb5 feat(agent,ingestion): carry the grep/bm25 contracts and index declared titles (#20542) 2026-10-03 23:52:13 +08:00
Zhichang Yu 98b48a0857 Port agentic RAG to Go, expose it as a chat mode, and add per-dialog failover (#20503)
## Background

This branch started as a focused fix to agentic RAG regexp retrieval
semantics (`f80556585`) and grew into the full agentic RAG path. The
title no longer describes the contents, so it has been rewritten.

The PR now covers three largely independent lines of work:

### 1. The agentic RAG is reachable from the UI

`internal/agentic_rag` (the eino-ADK ReAct explorer) was already built
and wired, but only reachable by hand-crafting an `agent_mode` kwarg. It
is now the sixth option in the chat mode selector (`reasoning` level 5).

One subtlety worth stating plainly: **levels 1-4 and level 5 are not the
same agent.** Levels 1-4 go through `internal/rag/agentic-rag` (the
harness graph) with a depth chosen by `harnessModeForLevel`; level 5
switches engines outright to `internal/agentic_rag`. That is why level 5
must never reach `harnessModeForLevel` — its `level >= 4` case would
silently answer "ultra" for a level outside its domain.

### 2. Per-dialog failover chain

`agenticModelChain` resolved exactly one model and the caller then used
`chain[0]`, so a "chain" was never more than a single element. A dialog
can now configure an ordered list of fallback models in Chat Settings,
handed to `NewFailoverEinoChatModel` (sticky cursor plus a 30s
full-chain cooldown).

The list lives in the dialog's own `llm_setting.failover_llm_ids`, so no
new table is involved. A member that no longer resolves is skipped with
a warning rather than failing the turn.

Also removed: `tenant_model_group` / `tenant_model_group_mapping`, which
nothing ever read (the DAOs were constructed but never called, and no
frontend or Python code referenced the concept). Their removal takes an
explicit drop migration with it, plus the account-deletion cascade that
queried them.

### 3. A hung MiniMax stream (independent of the agentic work)

With any mode selected, a chat rendered its whole answer and then sat on
"thinking" forever. Root cause is `minimax.go:256`: MiniMax sends `data:
[DONE]` but leaves the HTTP connection open, and the code waited for the
scanner goroutine's EOF *after* `HandleStreamingResponse` had already
returned. That receive can only end when `streamCallTimeout` (20
minutes) expires.

Diagnosed by capturing a real SSE stream (the complete answer arrives,
the terminal `final: true` never does) and a goroutine dump (6 requests
parked in `chan receive`).

## Two review findings fixed on the way through

- **KB-scope authorization**: the agentic branch bypassed quote
resolution, and an empty KB scope made `buildBoolQueryFromCondition`
drop the `kb_id` filter — so a citation could resolve a chunk belonging
to a different KB in the same tenant. The agentic branch now requires a
non-empty scope and otherwise falls through to the regular path.
- **Stale documentation**: `agentic-rag-failover-groups.md` described
the "automatically include every tenant model" strategy that upstream
had already removed. It was rewritten for the per-dialog scope and then
dropped entirely, since the design now lives in the code it describes.

## Verification

- `bash build.sh --test`: `admin`, `dao`, `service`, `service/dataset`
and `entity/models` all pass
- The MiniMax fix was verified end-to-end against a live server: before,
the turn hung indefinitely; after, it completes in **1.9s** with `final:
true` present
- Frontend: 9 tests added; type-check and lint clean on the touched
files

## Not included

- **Attachment support in agentic mode.** Text attachments could be
appended safely, but images have no safe fix: the agent's toolset is
built around corpus retrieval and has no image input channel. Fixing
only the text path would leave the feature half-supported and harder to
diagnose than now. Planned as a follow-up PR, with the design synced
here first.
- Tool-calling is not enforced as a group constraint. `is_tools` is a
provider-declared flag rather than a measured capability (187 of 659
chat models do not declare it), so gating on it would reject working
configurations while admitting broken ones.
2026-10-02 23:00:16 +08:00
Wang Qi 519e7d98a5 Refactor: use type_kwd instead of knowledge_graph_kwd (#20475) 2026-10-01 16:58:00 +08:00
jay77721 9b67a4112a refactor(parser): unify spreadsheet tables on a segmented HTML wire (#20358) 2026-09-29 15:00:46 +08:00
Jin Hai 72a541dd41 Go: refactor (#20054)
Signed-off-by: Jin Hai <haijin.chn@gmail.com>
2026-09-29 14:17:54 +08:00
qinling0210 4d1fa96a8d fix(infinity,nav): restore the navigation tree and document structure graph (#20339) 2026-09-29 12:16:21 +08:00
Jin Hai 670e688726 refactor: remove python source code, part2 (#20289)
Signed-off-by: Jin Hai <haijin.chn@gmail.com>
2026-09-28 16:26:02 +08:00
qinling0210 da98d62671 fix(knowledge_compile): make compiled rows writable to Infinity (#20208) 2026-09-28 13:07:26 +08:00
buua436 5a089b4fb9 fix: support wiki map writes on Infinity (#20203) 2026-09-28 10:30:26 +08:00
buua436 3830b99f78 fix: wait for Elasticsearch chunk updates (#20116) 2026-09-23 19:09:59 +08:00
Wang Qi 85821873a5 Fix unit test (#20081) 2026-09-23 12:15:14 +08:00
qinling0210 fc451df5d9 fix(chunk): scope the chunk list and detail APIs to the route's datas… (#20059) 2026-09-23 10:27:52 +08:00
Jin Hai d83f7540e7 Go: fix log level (#20036)
Signed-off-by: Jin Hai <haijin.chn@gmail.com>
2026-09-22 18:33:39 +08:00
jay77721 8afebbb670 fix(retrieval): align Go parent-child chunk behavior (#19828) 2026-09-21 13:17:25 +08:00
qinling0210 47a4440397 fix(go): align retrieval and chat pipeline with Python (#19934)
### Summary

Align retrieval and chat pipeline with Python
2026-09-20 20:05:03 +08:00
Jin Hai 1e5fc587f0 Go: fix resource leak in ES connector (#19912)
Signed-off-by: Jin Hai <haijin.chn@gmail.com>
2026-09-20 16:23:25 +08:00
Jin Hai a7ec0c789b Go: fix ES connection port exhaustion under high concurrency (#19901)
Signed-off-by: Jin Hai <haijin.chn@gmail.com>
2026-09-20 13:42:49 +08:00
xugangqiang 7aa012fc5c refactor(go): default Go cache/queue backend to Kvrocks and fail fast when down (#19804) 2026-09-18 19:16:07 +08:00
Zhichang Yu 44b8d366ba feat(go,web): port tokenizer counters, embedding limits and multi-provider web search (#19802) 2026-09-18 19:11:28 +08:00
qinling0210 bd58e961d7 fix(document): hide a disabled document's knowledge-compiled chunks from retrieval (#19845) 2026-09-18 17:41:13 +08:00
xugangqiang 4b055c5996 Go: add generic Go integration test CI job (infinity) (#19702) 2026-09-18 15:40:33 +08:00
Wang Qi 1f229c8e37 Feature: go highlight follow python, follow #19488 (#19792) 2026-09-17 19:33:15 +08:00