Files
WeKnora/docreader/models/read_config.py
T
wizardchen 397689d2f3 feat: introduce WeKnora Lite edition with lightweight configuration and deployment
- 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.
2026-03-02 21:21:49 +08:00

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