mirror of
https://github.com/Tencent/WeKnora.git
synced 2026-09-24 16:29:01 +08:00
- Added a new `.env.lite.example` file for the Lite version, providing a minimal configuration template. - Updated `.env.example` to remove deprecated variables and include new Docreader settings. - Enhanced Docker configurations to support the Lite version, including a new Dockerfile for the Docreader service. - Introduced a Makefile target for building and running the Lite version, along with packaging capabilities. - Created GitHub workflows for building and releasing Lite binaries, including Homebrew formula support. - Implemented a new service file for managing the Lite version as a system service. This update enables a streamlined, single-binary deployment of WeKnora, reducing external dependencies and simplifying setup.
18 lines
493 B
Python
18 lines
493 B
Python
from dataclasses import dataclass
|
|
|
|
|
|
@dataclass
|
|
class ChunkingConfig:
|
|
"""Legacy config kept for backward compatibility.
|
|
|
|
After the lightweight refactoring, chunking is done in Go.
|
|
This class is only kept so existing parser constructors don't break.
|
|
"""
|
|
|
|
chunk_size: int = 512
|
|
chunk_overlap: int = 50
|
|
separators: list[str] | None = None
|
|
enable_multimodal: bool = False
|
|
storage_config: dict[str, str] | None = None
|
|
vlm_config: dict[str, str] | None = None
|