docs: describe server-side extraction provider

This commit is contained in:
Ilgiz Kalmetyev 2026-04-11 08:42:26 +05:00
parent e5c9ee5dea
commit 640123a798
2 changed files with 34 additions and 1 deletions

View File

@ -61,6 +61,25 @@ A subject item captures the equipment context for the document and can include:
The engine denormalizes the main subject fields for search and catalog queries while keeping the full subject payload available for future expansion.
## Server-Side Text Extraction
The built-in extraction provider runs on the server during ingest and materializes a structured `content` section for the document representation.
That `content` payload carries:
- `native_text` for direct text extraction
- `ocr_text` for OCR fallback
- `merged_text` as the canonical searchable text
- `language_hint` for `ru`, `en`, `mixed`, or `unknown`
- `confidence` and `pages[]` for provenance and debugging
The provider uses a strategy chain:
- direct extraction for PDF, DOCX, TXT, and similar formats
- OCR fallback for scanned PDFs and image files when OCR support is available
The core engine persists the provider payload as opaque data and refreshes searchable representation after each successful extraction step.
## Integrations
The project integrates with:

View File

@ -1,4 +1,4 @@
# Usage Guide
# Usage Guide
This guide covers local usage of TechDoc Library MCP Server v1.
@ -57,6 +57,20 @@ Each subject item can describe either a single model or a model family:
- `model_family` identifies the broader family, such as `MES24xx`
- `subject_payload` is opaque extension data reserved for future use
## Server-Side Text Extraction
The built-in extraction provider runs on the server during ingest and materializes a structured `content` section for the document representation.
That `content` payload carries:
- `native_text` for direct extraction from text-based files
- `ocr_text` for OCR fallback output
- `merged_text` as the canonical searchable text
- `language_hint` for `ru`, `en`, `mixed`, or `unknown`
- `confidence` and `pages[]` for provenance
For PDFs, the provider can mix direct extraction and OCR on a page-by-page basis. This keeps searchable text available for scanned documents while preserving the original file as the stored source of truth.
Examples:
- One model: `Eltex / switch / MES2400 / MES24xx`