docs: describe server-side extraction provider
This commit is contained in:
parent
e5c9ee5dea
commit
640123a798
19
README.md
19
README.md
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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`
|
||||
|
|
|
|||
Loading…
Reference in New Issue