# AI

> Classify, extract, summarize, translate and read documents.

Source: https://docs.sommatic.ai/en/nodes/family/ai/

- [Archive Decompression](https://docs.sommatic.ai/en/nodes/ai.archive.decompress.md) `ai.archive.decompress`: Unpacks compressed archives into a structured array of files suitable for iteration with `flow.split` and downstream extraction nodes.
- [Classify Text](https://docs.sommatic.ai/en/nodes/ai.classify.md) `ai.classify` [Partial]: Categorizes input text into one of a predefined set of labels.
- [Registry-based Classifier](https://docs.sommatic.ai/en/nodes/ai.classify.registry.md) `ai.classify.registry`: Rule-based classifier that resolves the best-matching entry from a registry KnowledgeResource given a set of input signals, using a deterministic weighted-score algorithm.
- [Triage Classifier](https://docs.sommatic.ai/en/nodes/ai.classify.triage.md) `ai.classify.triage`: Performs hierarchical intake triage with policy-driven decision rules.
- [Compare Texts](https://docs.sommatic.ai/en/nodes/ai.compare.md) `ai.compare`: Semantic text comparison powered by LLM.
- [Check Compliance](https://docs.sommatic.ai/en/nodes/ai.compliance.check.md) `ai.compliance.check`: Evaluate content against compliance policies, regulatory rules, or business guidelines.
- [Compose Content](https://docs.sommatic.ai/en/nodes/ai.compose.md) `ai.compose`: AI-powered content composition for structured business communications.
- [AI Decision](https://docs.sommatic.ai/en/nodes/ai.decision.md) `ai.decision`: Intelligent routing node that replaces complex flow.switch chains with a single AI-powered decision point.
- [Deep Entity Extraction](https://docs.sommatic.ai/en/nodes/ai.deep.extract.md) `ai.deep.extract`: Extract entities from large documents (100+ pages) using Hierarchical Map-Reduce with context propagation.
- [DOCX Text Extraction](https://docs.sommatic.ai/en/nodes/ai.docx.extract.text.md) `ai.docx.extract.text`: Extracts text from Microsoft Word (.docx) documents by traversing the Office Open XML Wordprocessing structure with python-docx.
- [Email Parsing](https://docs.sommatic.ai/en/nodes/ai.email.parse.md) `ai.email.parse`: Parses raw email files into a normalized structured object with headers, body, and attachments, ready for classification or extraction pipelines.
- [Generate Embeddings](https://docs.sommatic.ai/en/nodes/ai.embed.md) `ai.embed` [Partial]: Converts text into high-dimensional vector embeddings.
- [Enrich Data](https://docs.sommatic.ai/en/nodes/ai.enrich.md) `ai.enrich`: Enrich records by adding computed, inferred, or standardized fields using an LLM.
- [Extract Entities](https://docs.sommatic.ai/en/nodes/ai.entity.extract.md) `ai.entity.extract`: Extract named entities from text using LLM-powered recognition.
- [Extract Data](https://docs.sommatic.ai/en/nodes/ai.extract.md) `ai.extract` [Partial]: Extracts structured data (JSON) from unstructured text using an LLM.
- [Generate Text](https://docs.sommatic.ai/en/nodes/ai.generate.md) `ai.generate`: Leverages Large Language Models (LLMs) to generate natural language content.
- [HTML Text Extraction](https://docs.sommatic.ai/en/nodes/ai.html.extract.text.md) `ai.html.extract.text`: Extracts the main readable content from HTML or XHTML documents using trafilatura with content-boundary detection.
- [Detect Intent](https://docs.sommatic.ai/en/nodes/ai.intent.md) `ai.intent`: Detects user intent from text input and extracts relevant parameters for downstream routing.
- [Extract Key Phrases](https://docs.sommatic.ai/en/nodes/ai.keyphrases.md) `ai.keyphrases`: Extracts the most important phrases, terms, and concepts from text with relevance scoring.
- [Detect Language](https://docs.sommatic.ai/en/nodes/ai.language.md) `ai.language`: Detects the language or languages present in a text with confidence scores.
- [Structured Multi-Pass Extraction](https://docs.sommatic.ai/en/nodes/ai.legal.extract.structured-multi-pass.md) `ai.legal.extract.structured-multi-pass`: Extract a declared set of fields from a document and, for EVERY field, return value + self-assessed confidence + textual provenance, with schema validation and retry.
- [Multimodal Text Extraction](https://docs.sommatic.ai/en/nodes/ai.multimodal.extract.text.md) `ai.multimodal.extract.text`: Format-agnostic dispatcher that accepts a single file, detects its MIME type, and routes it to the appropriate extractor, returning a unified text output.
- [Multimodal Cascade Text Extraction](https://docs.sommatic.ai/en/nodes/ai.multimodal.extract.text.cascade-pipeline.md) `ai.multimodal.extract.text.cascade-pipeline`: Multi-stage text extraction pipeline with quality-driven fallback, adaptive preprocessing, and per-segment error recovery.
- [OCR - PDF to Text](https://docs.sommatic.ai/en/nodes/ai.ocr.md) `ai.ocr`: Extract text from PDF documents using OCR (Optical Character Recognition).
- [OCR - Adaptive](https://docs.sommatic.ai/en/nodes/ai.ocr.adaptive.md) `ai.ocr.adaptive`: Adaptive multi-engine OCR with intelligent preprocessing, table detection, and confidence scoring.
- [Parse Document](https://docs.sommatic.ai/en/nodes/ai.parse.document.md) `ai.parse.document`: Parse and extract structured data from documents using an LLM.
- [PDF Text Extraction](https://docs.sommatic.ai/en/nodes/ai.pdf.extract.text.md) `ai.pdf.extract.text`: Extracts the embedded text layer from PDF documents using PyMuPDF.
- [PPTX Text Extraction](https://docs.sommatic.ai/en/nodes/ai.pptx.extract.text.md) `ai.pptx.extract.text`: Extracts text from Microsoft PowerPoint (.pptx) presentations by traversing the Office Open XML Presentation structure with python-pptx.
- [Get Prompt Template](https://docs.sommatic.ai/en/nodes/ai.prompt.md) `ai.prompt` [Partial]: Hydrates a managed prompt template with dynamic variables.
- [Answer Question](https://docs.sommatic.ai/en/nodes/ai.qa.md) `ai.qa`: Grounded question answering from provided context.
- [RAG Compose Prompt](https://docs.sommatic.ai/en/nodes/ai.rag.compose.md) `ai.rag.compose` [Experimental]: Constructs a RAG (Retrieval-Augmented Generation) prompt by combining a query with retrieved context.
- [Retrieve Context (RAG)](https://docs.sommatic.ai/en/nodes/ai.rag.retrieve.md) `ai.rag.retrieve` [Experimental]: Orchestrates the retrieval of context for RAG (Retrieval-Augmented Generation).
- [Extract Relations](https://docs.sommatic.ai/en/nodes/ai.relation.extract.md) `ai.relation.extract`: Extracts semantic relationships between entities from text as subject-predicate-object triples.
- [Rewrite Text](https://docs.sommatic.ai/en/nodes/ai.rewrite.md) `ai.rewrite`: Rewrite text with a specific tone, style, or transformation goal.
- [Safety Filter](https://docs.sommatic.ai/en/nodes/ai.safety.filter.md) `ai.safety.filter` [Experimental]: Evaluates text against safety guidelines to block harmful content.
- [Content Safety Scan](https://docs.sommatic.ai/en/nodes/ai.safety.scan.md) `ai.safety.scan`: Comprehensive multi-modal safety scanner (Text/Image).
- [Score & Rate](https://docs.sommatic.ai/en/nodes/ai.score.md) `ai.score`: Score and rate text content using LLM-powered evaluation across multiple dimensions.
- [Analyze Sentiment](https://docs.sommatic.ai/en/nodes/ai.sentiment.md) `ai.sentiment`: Analyze the sentiment and emotional tone of text.
- [Summarize Text](https://docs.sommatic.ai/en/nodes/ai.summarize.md) `ai.summarize`: Multi-format text summarization powered by LLM.
- [Extract Topics](https://docs.sommatic.ai/en/nodes/ai.topics.md) `ai.topics`: Extract and identify the main topics from text content.
- [Audio and Video Transcription](https://docs.sommatic.ai/en/nodes/ai.transcribe.md) `ai.transcribe`: Automatic Speech Recognition over audio and video streams using faster-whisper (CTranslate2-backed Whisper).
- [Translate Text](https://docs.sommatic.ai/en/nodes/ai.translate.md) `ai.translate`: Translate text between languages using LLM-powered translation with domain awareness and glossary support.
- [Vector Search](https://docs.sommatic.ai/en/nodes/ai.vector.search.md) `ai.vector.search` [Experimental]: Performs a semantic search against a Vector Database.
- [Upsert Vector](https://docs.sommatic.ai/en/nodes/ai.vector.upsert.md) `ai.vector.upsert` [Experimental]: Inserts or Updates records in a Vector Database.
- [XLSX Text Extraction](https://docs.sommatic.ai/en/nodes/ai.xlsx.extract.text.md) `ai.xlsx.extract.text`: Extracts tabular data from Microsoft Excel (.xlsx) workbooks using openpyxl.
