* feat(embedding): add Volcengine Ark multimodal embedding provider
Add a volcengine binding to the embedding provider registry backed by a new
VolcengineEmbeddingAdapter. The adapter talks to the Ark multimodal endpoint
(/api/v3/embeddings/multimodal), which serves doubao-embedding-vision-*
models for both plain text and image/video content. Each input item is
embedded in its own request because the service fuses all items into one
vector; the optional dimensions knob is passed through, and 429/5xx
responses are retried with backoff.
- embedding_endpoint: add volcengine endpoint constants and per-model
routing helpers (multimodal vs OpenAI-compatible text surface)
- provider_runtime: register the volcengine spec (default model
doubao-embedding-vision-251215, 2048 dims, multimodal) and resolve the
per-model endpoint in the runtime config
* feat(search): add Doubao Search Custom provider
Add a DoubaoSearchCustom provider speaking the feedcoopapi SERP protocol
(open.feedcoopapi.com/search_api/web_search) used by the Doubao Search
Custom API-key console product. This is a standalone SERP surface, distinct
from the existing Ark Responses-API doubao provider, so consolidation
supplies the answer (supports_answer=False).
Maps WebResults rows (Title/Snippet/Summary/Url/Content/PublishTime) onto
the standard SearchResult/Citation shapes, with SearchType web/web_summary
and NeedSummary/NeedContent filters.
* feat(parsing): add PaddleOCR cloud document parsing engine
Add a PaddleOCR (飞桨) engine to the document-parsing registry. It parses
PDFs and images through the PaddleOCR AI Studio cloud API
(paddleocr.aistudio-app.com/api/v2/ocr/jobs, PaddleOCR-VL-1.6), the same
backend the official paddleocr-mcp server uses — no local models or GPU.
- New engines/paddle package: PaddleParser (Parser protocol) + cloud
backend implementing submit -> poll -> JSONL -> markdown (+ image
download), with a Settings test-button credential check
- runtime_settings: register the paddle engine slice (constants, defaults,
normalize, loader) and add a _coerce_float helper
- factory: register the paddle loader + UI metadata
- tests: extend engine-set assertions for the new engine
* fix(rag): disable NLTK CWD-import security hook for venv-in-root installs
NLTK 3.10+ installs a CWE-427 meta-path finder (nltk.inisec) that blocks
`import regex` whenever the module resolves inside the process CWD.
DeepTutor keeps its virtualenv inside the project root, so site-packages
always sits under the CWD and every NLTK-initiated `import regex` is
blocked, breaking LlamaIndex sentence tokenization during KB indexing
("Blocked import of regex from current working directory for security
reasons").
The project root is the user's own code, not an untrusted directory, so
the hook's protection is unnecessary; disable it via the official
NLTK_DISABLE_IMPORT_SECURITY switch:
- deeptutor/__init__.py sets the env default before any NLTK import
- launcher.py forwards it to spawned backend processes
* fix(ima): list cloud documents in the Knowledge Center file browser
Connected IMA KBs are cloud pointers with no local raw/ directory, so the
GET /{kb}/files endpoint returned an empty listing and the Knowledge
Center showed no files even though retrieval worked. Serve the listing
from IMA's get_knowledge_list instead: walk the library breadth-first
(mirroring the inventory reader's budget) and flatten folders into POSIX
paths for the existing file tree.
Also teach the IMA payload parser to recognize folders listed as
media_type 99 / media_id "folder_*" inside knowledge_list — previously
they were misrouted as content-less documents, polluting inventory and
retrieval results.
* fix(ima): serve cloud document content for preview and download
The Knowledge Center file list now carries each IMA document's media_id,
and the raw-file endpoints accept it: preview/download stream the content
from IMA (note text directly, file media from the short-lived COS link)
instead of 404ing on the missing local raw/ directory. The office-text
preview endpoint follows the same path.
Refactor the listing's inline client construction into _ima_client_for_kb
so listing, preview, and text preview share one resolution path. Add
router tests covering the listing media ids, binary/text content serving,
text preview, and the 404 degradation for unavailable media.
* fix(server): use the telemetry logging API supported by FastAPI
* feat(search): register the dedicated Doubao Custom search provider
* feat(parsing): add the hosted PaddleOCR document engine and settings
* fix(settings): localize the PaddleOCR panel title
* Keep parsing translations with existing document engine settings
* fix(settings): register the Doubao Custom provider branding
* fix(i18n): cover the new settings and figure labels in supported locales
* fix(setup): offer Doubao Custom search in the CLI wizard
---------
Co-authored-by: SteeleHu <SteeleHu@users.noreply.github.com>
Co-authored-by: Bingxi Zhao (Frank) <13051345080@163.com>
The Zhipu web-search provider hardcoded search_std, leaving search_pro
( higher recall, 3x price ) unreachable from any configuration surface.
- providers/zhipu.py resolves the engine from the call-time value, then
the provider config's search_engine/engine field, then search_std;
only search_std/search_pro are allowed and unknown values warn and
fall back to the default instead of raising.
- The engine rides the resolved search config the same way max_results
and proxy do: active search profile field first, then
tools.web_search.search_engine in main.yaml, then None (provider
default), injected into the provider kwargs by web_search().
- get_current_config() surfaces the resolved engine.
Tests cover the default payload, config-driven search_pro, the engine
alias, invalid values warning and falling back, and the end-to-end
settings -> resolved config -> real ZhipuProvider -> payload flow.
Add SearchApi (searchapi.io) as a web-search provider, following the Serply
shape: one key, three modes (search -> google, news -> google_news,
scholar -> google_scholar) behind a single GET endpoint selected by the
`engine` parameter. Rows are plain SERP results, so consolidation still
writes the answer and Scholar rows render through the shared academic
template via the `searchapi_scholar` -> `serper_scholar` mapping.
- Key travels only as `Authorization: Bearer`, never in the URL; requests
carry `Accept: application/json` and `User-Agent: DeepTutor`.
- Google retired `num` for web and news results, so those are cut
client-side with `max_results`; Scholar still honors `num` (capped at 20).
- News sends `link=resolved` so links point at the publisher instead of a
Google redirect, and prefers `iso_date` over the relative `date`.
- Scholar maps `publication`, `inline_links.cited_by.total`, `resource.link`
and `data_cid` onto the Serper attribute keys; a dead `javascript:` PDF
badge is dropped.
- Non-200 raises with the API's `error` message; a non-JSON body raises too.
- Spec table entry (`requires_api_key=True, soft_fallback=False`), registry
import, consolidation mapping and `deeptutor init` wizard entry reading
`SEARCHAPI_API_KEY` / `SEARCH_API_KEY`.
- Nine tests mirroring the Serply block, with fixtures shaped after live
responses from each engine.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Engine-level search provider backed by DeepSeek's /v1/tools/search endpoint,
distinct from the model-side web_search tool mapping: works with any
configured LLM. Rows carry no model-written answer, so consolidation still
supplies it.
- providers/deepseek.py: Bearer auth, count capped 1-50, need_content
default False (page Markdown kept in SearchResult.content only when
requested), summary preferred over snippet as the model-facing blurb,
authority/rerank_score in attributes, proxy honored, base_url used
verbatim with the documented endpoint as fallback. No new dependency.
- SEARCH_PROVIDERS: label DeepSeek, requires_api_key=True,
soft_fallback=False (billed per request; a missing key raises instead
of landing on DuckDuckGo).
- Init wizard entry with DEEPSEEK_API_KEY/SEARCH_API_KEY env keys, keeping
the wizard set equal to the backend table.
- TracePresentation PROVIDER_LABELS: deepseek -> DeepSeek (titleCase would
render "Deepseek").
- Tests: row mapping, 401/402/429 paths, missing key fails before network,
and the base_url/proxy/max_results contract via _NEW_PROVIDERS.
GET /v1/web-search with Bearer auth, answer-first: the confirmed answer
maps onto WebSearchResponse.answer (supports_answer), ranked sources onto
citations/search_results, and list rows ride along in metadata. No count
parameter exists on the endpoint, so max_results caps client-side like
Aliyun IQS. Registered in the SEARCH_PROVIDERS spec table as a paid
provider (soft_fallback=False); tests mock requests offline.
Closes#2516
- The Add model panel now asks for a model ID (prefilled from provider
defaults and discovered models) and keeps Continue disabled until it is
filled, so an unusable row can no longer reach the draft.
- The model editor marks a blank ID as required, explains it inline, and
blocks "Set as default" until it is fixed.
- Apply now names the first incomplete model and opens the page and row
that can repair it, instead of failing with a message pointing nowhere.
- Add/selection state lives in the URL, so refreshing no longer swaps the
add panel for the list (or vice versa).
- Backend guidance points at the current page names (Language models /
Embedding models / Search) instead of the removed Catalog page.
- Regression tests cover the add flow, URL state, editor validation, and
the Apply preflight; new i18n keys for en/zh/de/pl/fr/uk.
Co-Authored-By: Claude <noreply@anthropic.com>
Ship the reading, listening, question-bank, parsing, and provider updates
summarized in assets/releases/ver1-6-13.md.
Make speech timeouts configurable, report actionable synthesis failures,
and keep chat attachments discoverable in their selected workspace while
preserving earlier uploads and URLs. Keep reply playback cancellation and
single-audio ownership intact.
Sync README prose and all eleven translations, update the stable install
note, and archive release notes older than one week. Repair stale reading
test fixtures and spawned test imports, and clear the Partner type error.
Validation: 9252 Python tests and 8 subtests passed (28 skipped); 518 web
unit tests, 1253 Node tests, and 62 browser audits passed. Pre-commit, ruff,
typecheck, contracts, architecture, i18n, production build, route budgets,
and the docs build passed.
Ship folder-based workspaces and data migration, daily practice, redesigned
provider and model settings, and streaming conversation improvements.
Synchronize README translations and document the archive/permanent-delete
upgrade behavior in assets/releases/ver1-6-9.md.
Reduce initial JavaScript by deduplicating English resources and loading
animation features after hydration. Keep the existing route size budgets.
Update regression fixtures and browser audits for scoped URLs and the new
settings and learning interfaces.
Two pieces of work land together because the second is built on the
first: the provider layer was consolidated onto one spec table, then six
new providers were registered against it.
Layer overhaul
- Converge seven separate provider lists (backend registry, runtime
config, settings router, CLI wizard, frontend catalog, i18n, tests)
onto a single SEARCH_PROVIDERS spec table; every consumer derives from
it instead of keeping its own copy.
- Fix three silent defects: serper's `num` never reached the API (it was
swallowed by **kwargs, so max_results did nothing), serper dropped its
proxies, and jina had no result-count limit at all.
- A runtime failure (rate limit, timeout, unreachable network) no longer
fails the whole turn. The request walks the user's other credentialed
search profiles and finally DuckDuckGo, recording the downgrade under
a top-level `search_fallback` key so the trace shows what happened.
- Drop three provider modules that were never registered (exa, baidu,
openrouter). They stay in the deprecated list, so a stale config reads
as outdated rather than as a misspelled name.
Six new providers
doubao, bocha, zhipu, firecrawl, qianfan, aliyun_iqs — selectable under
Settings > Catalog > Search with their credential fields derived from the
spec table, and offered by `deeptutor init`. All six set
`soft_fallback=False`: five are China-hosted and the DuckDuckGo fallback
is unreachable on those networks, so a missing API key has to fail
loudly instead of silently timing out somewhere else.
Baidu returns as `qianfan` on the official Qianfan API; the old `baidu`
key stays deprecated.