release: v1.6.10

Native LightRAG role models: extraction, keyword, query and vision each
resolve their own model, vision indexing pins a vision-capable model
instead of silently degrading, and a knowledge base records which models
and which embedding built it. A published index refuses queries after its
embedding identity changes rather than searching a foreign vector space,
and a rebuild is confirmed against the configuration it will actually
use — a stale confirmation is rejected instead of quietly rebuilding
something else. A failed publication is withdrawn, not left half-written.

PDF attachments follow the parsing engine configured for the workspace,
report the stage they are in, and a truncated answer says it was
truncated with the counters that prove it. Providers are no longer
filtered out of the embedding picker on an unverifiable capability guess:
configure the model and test it. Visualize's temperature and token budget
are settings rather than literals. Notebook evidence no longer depends on
the chat session that produced it.

See assets/releases/ver1-6-10.md for the full notes, and the README
translations for the propagated prose.
This commit is contained in:
Bingxi Zhao (Frank)
2026-09-22 21:36:27 +08:00
parent ee24f44fa7
commit eabc17d79f
59 changed files with 1332 additions and 155 deletions

View File

@@ -75,6 +75,37 @@ def _record_sync_failure(kb_name: str, source: dict, base_dir: str, error: str)
logger.warning("Could not persist GitHub sync failure status for '%s'", kb_name)
def _record_sync_success(
kb_name: str,
source: dict,
base_dir: str,
*,
sha: str,
files_synced: int | None = None,
) -> None:
"""Persist "GitHub was checked and the source is current".
A same-SHA check is a successful sync that had nothing to transfer, so it
owes the same freshness stamp as one that did: without it the hourly
service read the source as stale forever and re-queried GitHub every
cycle, and an error left by an earlier transient failure stayed on the
source after a later check had confirmed it current (#1489). ``files_synced``
is omitted on that path so the last real transfer's count survives.
"""
from deeptutor.knowledge.manager import KnowledgeBaseManager
fields: dict = {} if files_synced is None else {"files_synced": files_synced}
KnowledgeBaseManager(base_dir=base_dir).update_github_source_state(
kb_name=kb_name,
source_id=source["id"],
last_synced_sha=sha,
last_synced_at=_utcnow_iso(),
last_sync_status="success",
last_sync_error=None,
**fields,
)
def _is_markdown(path: str) -> bool:
return path.lower().endswith(MARKDOWN_EXTENSIONS)
@@ -181,6 +212,7 @@ async def sync_source(kb_name, source, *, base_dir=DEFAULT_BASE_DIR, client=None
return SyncResult(ok=False, error=error)
if old_sha and old_sha == latest_sha:
_record_sync_success(kb_name, source, base_dir, sha=latest_sha)
return SyncResult(ok=True, skipped=True)
try:
@@ -224,16 +256,11 @@ async def sync_source(kb_name, source, *, base_dir=DEFAULT_BASE_DIR, client=None
_record_sync_failure(kb_name, source, base_dir, result.error)
return result
from deeptutor.knowledge.manager import KnowledgeBaseManager
manager = KnowledgeBaseManager(base_dir=base_dir)
manager.update_github_source_state(
kb_name=kb_name,
source_id=source["id"],
last_synced_sha=latest_sha,
last_synced_at=_utcnow_iso(),
last_sync_status="success",
last_sync_error=None,
_record_sync_success(
kb_name,
source,
base_dir,
sha=latest_sha,
files_synced=result.files_added + result.files_updated,
)
return result