Commit Graph

2262 Commits

Author SHA1 Message Date
euvre
11db6851fc fix: respect REST API page_size limit in useFetchAllKnowledgeList (#17336) 2026-07-24 11:42:59 +08:00
euvre
91d9bf7fc4 fix: strip YAML frontmatter and defer API reference markdown rendering (#17272) 2026-07-24 11:37:10 +08:00
euvre
297890b437 fix: include full conversation details in agent log CSV export (#17291) 2026-07-24 10:57:34 +08:00
chanx
3dc298dbf5 fix(web): prevent multi-select popover from closing on first selection (#17310) 2026-07-24 09:29:40 +08:00
buua436
0c5732108a fix: support Infinity knowledge compilation (#17288)
### What problem does this PR solve?

Fix Infinity compatibility issues in knowledge compilation.

This change:

- Stores compilation source ID lists as JSON arrays in Infinity.
- Parses JSON array fields when reading compiled documents.
- Uses `json_contains` for filtering JSON array fields.
- Adds the missing `name` column to the Infinity mapping.
- Updates dataset navigation KNN search to use the unified
`MatchDenseExpr` interface.
- Handles unavailable embeddings without querying an invalid `q_0_vec`
field.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
2026-07-23 20:48:39 +08:00
Jack
d12fd3b79d feat: parser pages range and parse type validation for dataset/document (#17293)
## Summary

Adds page-range parsing support to the Go-native pipeline path and
introduces strict `parse_type` validation for both dataset and document
update endpoints.

## What changed

### Pages range parsing
- **`internal/utility/pdf_pages.go`** — `NormalizePDFPages`: normalizes
raw page ranges (list of `[from,to]` 1-indexed inclusive ranges) into
sorted, merged, deduplicated `[][]int`. Invalid ranges are dropped.
- **`internal/ingestion/pipeline/pdf_pages.go`** —
`NormalizeParserConfigPages`: walks any parser_config map and normalizes
`"pages"` values under every component → filetype setup, so the
persisted config always carries clean, merged ranges.
- **`internal/deepdoc/parser/pdf/parser.go`** — integrates
`resolvePagesToProcess` to filter parsed PDF pages by the configured
ranges.
- Pipeline integration (parser pages):
`internal/parser/parser/pdf_parser_common.go`, `chunk_process.go`, plus
associated e2e and unit tests.

### Parse type validation (shared logic)
- **`internal/service/parser_mode.go`** (new) — `ValidateParseTypeMode`:
shared function that validates `parse_type` (1=BuiltIn/parser_id,
2=Pipeline/pipeline_id) and ensures the corresponding field is present.
Used by both dataset and document update endpoints.
- **`internal/service/dataset/crud.go`** / `update.go` — replaces inline
`isPipelineMode`/`isBuiltinMode` computation with the shared
`service.ValidateParseTypeMode`.
- **`internal/service/document/document_dataset_update.go`** — adds
strict `parse_type` validation in `validateDatasetDocumentUpdate`,
simplifies the reparse logic to a two-way switch (isBuiltin/isPipeline)
now that parse_type is always valid.
- **`internal/service/document/document.go`** — adds `ParseType` field
to `UpdateDatasetDocumentRequest`.
- **`internal/service/document/document_dataset_update.go`** —
`updateDocumentParserConfig` fallback path when DSL loading fails.
- **`internal/service/parser_mode_test.go`** (new) — test coverage for
nil, invalid, and missing-field scenarios.

### Frontend
- **`web/src/interfaces/request/document.ts`** — adds `parseType` to
`IChangeParserRequestBody`.
- **`web/src/hooks/use-document-request.ts`** —
`useSetDocumentPipelineParser` sends `parse_type` in the PATCH payload.
- **`web/src/pages/dataset/dataset/use-change-document-parser.ts`** —
Go/Python branching for the document parser config dialog.
-
**`web/src/components/document-pipeline-dialog/use-document-pipeline-form.ts`**
— `buildSubmitData` returns `parseType` (bugfix: was dropped from the
return value).

### Test changes
- **Removed**: 2 tests that verified the old "mutually exclusive" error
(replaced by `ValidateParseTypeMode` coverage).
- **Modified**: 6 tests across document and dataset packages to include
`ParseType` in request structs.
- **Added**: new e2e tests for pages parsing (`pages_e2e_test.go`,
`pdf_parser_pages_e2e_test.go`) and unit tests for `NormalizePDFPages`,
`NormalizeParserConfigPages`, `resolvePagesToProcess`.

## Backward compatibility
- The `parse_type` field is **required** when `parser_id` or
`pipeline_id` is sent. This changes the contract for both dataset and
document PATCH endpoints, but aligns the Go backend with the existing
frontend behavior (the frontend already sends `parse_type`). Callers
that omit `parse_type` when updating parser/pipeline selections will
receive a clear error message.
- Existing callers that only update fields like `name`, `enabled`, or
`meta_fields` are unaffected.
- Test updates ensure all known call sites are compliant.
2026-07-23 19:57:27 +08:00
euvre
387279b317 fix: prevent summary countdown text from flickering in data source log table (#17258) 2026-07-23 19:23:53 +08:00
buua436
d4a8c91f3c refa: improve tree clustering (#17285) 2026-07-23 17:49:13 +08:00
euvre
7b64e4dc5d fix: correct auto-parse switch thumb alignment in data source settings (#17252) 2026-07-23 17:05:50 +08:00
euvre
418d3c8cef fix: fetch all knowledge bases via pagination in link-to-dataset dialog (#17170) 2026-07-23 16:48:05 +08:00
balibabu
c48a59db96 Feat: Add page rank to ParserForm (#17267) 2026-07-23 14:23:07 +08:00
euvre
b095a5511a fix: make qwen3-vl-plus usable as chat/vision model in Go mode (#17254) 2026-07-23 11:14:08 +08:00
balibabu
1e445fbd68 Feat: Alter "Compilation" to "Operator" (#17273)
### Summary

[Feat: Alter "Compilation" to
"Operator"](f52684dc23)
2026-07-23 11:09:12 +08:00
chanx
e3975b58eb fix: improve model merging logic in useModelsDerived for better instance-specific values (#17250) 2026-07-23 09:58:41 +08:00
balibabu
b3d394954d Feat: Support pipeline-related configuration at the document level. (#17212)
### Summary

Feat: Support pipeline-related configuration at the document level.
2026-07-22 22:24:50 +08:00
euvre
28b6926831 Fix: search input cannot expand to show long queries (#17166) 2026-07-22 19:39:39 +08:00
euvre
d757303fa4 fix(web): show completed label for think block after streaming ends (#17149) 2026-07-22 19:30:09 +08:00
euvre
5bc28d4d15 fix: exclude TTS models from agent component model selector (#17231) 2026-07-22 19:27:12 +08:00
euvre
cfaef879fe fix: MinerU.Net and PaddleOCR.Net missing icons (#17229) 2026-07-22 19:24:23 +08:00
euvre
2f7dc60337 fix: restore download button when file type is selected in agent message (#17184) 2026-07-22 19:21:17 +08:00
euvre
1aaa200471 fix: use FormLabel required prop for consistent asterisk color in search settings (#17223) 2026-07-22 19:20:59 +08:00
euvre
c1aff8c710 fix: prevent empty-state flash on knowledge-base and chat list loading (#17221) 2026-07-22 19:20:48 +08:00
euvre
769bd50363 fix: restore empty model warning in dataset creating dialog (#17220) 2026-07-22 19:20:33 +08:00
euvre
a40d5f841b fix: eliminate one-frame flash of title without form content in data source pages (#17214) 2026-07-22 19:06:38 +08:00
Wang Qi
4d772a9365 Fix update 'Child chunk are used for retrieval' does not take effect (#900) (#17251) 2026-07-22 19:05:32 +08:00
euvre
ffccf0b0fa fix(web): preserve MCP authorization token across edits (#17177) 2026-07-22 17:25:18 +08:00
euvre
53d0613bb2 fix: Make MCP bulk-manage select-all checkbox reflect selection state (#17174) 2026-07-22 17:06:36 +08:00
euvre
58127f594c fix: MCP import now processes all files instead of only the first (#17179) 2026-07-22 17:04:37 +08:00
euvre
21e5f00a53 fix: i18n for data source internal configuration fields (#17217) 2026-07-22 16:13:20 +08:00
euvre
dabe426c36 fix: render documentation URLs as hyperlinks in model tooltips (#17224) 2026-07-22 16:03:03 +08:00
euvre
86113fb7d4 fix(web): fix team member status badge hover text readability (#17178) 2026-07-22 15:35:47 +08:00
euvre
35595c9183 Feat: add open-in-new-tab button to search share embed dialog (#17159) 2026-07-22 15:29:43 +08:00
euvre
a81b5057bb fix(web): show builtin chunk methods in file pipeline dialog under Go backend (#17169) 2026-07-22 15:14:02 +08:00
euvre
ade2f3a5ab fix(web): use outline-none instead of outline-0 on focusable controls (#17165) 2026-07-22 14:57:23 +08:00
euvre
f2a48df56b Fix flickering document count and total when toggling file filter on search page (#17161) 2026-07-22 14:57:04 +08:00
euvre
ff1274895f fix: prevent collapse button from overlapping expanded content in next-search (#17157) 2026-07-22 14:56:20 +08:00
euvre
e8f4584fec Fix punctuation in useKnowledgeGraphTip tooltip (#17226) 2026-07-22 13:56:04 +08:00
chanx
744ae77290 feat(model): forward instance_id on per-model verify and auto-populate models (#17055) 2026-07-22 10:22:18 +08:00
balibabu
20b760f266 Feat: Highlight wiki force graph. (#17160) 2026-07-21 16:48:52 +08:00
euvre
456e2be161 fix(web): hide folder upload tab for Gmail and Google Drive OAuth JSON upload (#17162) 2026-07-21 16:41:38 +08:00
euvre
5f2b3fc6c5 fix(web): use title case 'API Key' in UI labels across all locales (#17164) 2026-07-21 16:37:27 +08:00
Wang Qi
a6c3dd10ab Update from api_base to base_url (#17158) 2026-07-21 16:36:46 +08:00
euvre
859006c79a fix(web): prevent search popover from flashing at top-left on checkbox toggle (#17148) 2026-07-21 16:13:07 +08:00
euvre
f7a5629487 Fix stale references shown while streaming and empty final reply in Go mode (#17146) 2026-07-21 14:53:40 +08:00
chanx
bc07b18b88 Refactor: unify navbar icons through HomeIcon wrapper (#17143) 2026-07-21 13:20:44 +08:00
balibabu
b288888050 Feat: Add a "None" option for reasoning intensity in the chat message box. (#17006)
### Summary

Feat: Add a "None" option for reasoning intensity in the chat message
box.
2026-07-21 11:50:34 +08:00
euvre
21a4eab43d fix: unify 'BASE URL' to 'Base URL' in locale files (#17138) 2026-07-21 11:31:40 +08:00
euvre
ee8aa03fa0 fix(web): regenerate in multi-model chat uses the card's own state and model (#17126) 2026-07-21 10:40:59 +08:00
balibabu
c098c4c296 Fix: The form related to switching the dataset pipeline configuration was not rendered. (#17124) 2026-07-21 10:12:41 +08:00
euvre
f45f03a016 Add Go service/handler tests for API contract parity (#16905) 2026-07-20 20:02:41 +08:00