Skip to main content

Foundational

The Foundational Analytic Engine harnesses the capabilities of LLMs to perform sophisticated analysis, reasoning, and evaluation of conversational content.

Foundational Analytic Engine

Detailed Description

The Foundational Analytic Engine employs LLMs to perform nuanced analysis of conversational content that requires complex reasoning, contextual understanding, and specialized evaluation criteria. This engine excels at tasks that require deep understanding of language, context, and human communication patterns.

How It Works

The Foundational Analytic Engine input text to perform sophisticated analysis that requires human-like reasoning capabilities. When anevaluatorusing this engine is initialized, it connects to a locally hosted foundational model inside the ThirdLaw VPC and loads specialized prompt templates designed for specific analytical tasks. During analysis, the engine prepares the input by integrating the conversation content with the specialized prompt templates. The engine then submits this enhanced prompt to the model.

The LLM performs the requested analysis based on the guidance in the prompt template, applying its broad knowledge and reasoning capabilities to evaluate the content according to the specified criteria. Once the LLM generates its analysis, the engine parses the response into a structured Finding format, extracting key judgments, confidence scores, and justifications from the LLM's output. This approach makes the Foundational Analytic Engine particularly effective for complex evaluations that require nuanced judgment, contextual understanding, and specialized domain knowledge that would be difficult to implement with more traditional pattern matching or data-driven classification or semantic similarity approaches.

Configuration Options

The Foundational Analytic Engine supports the following configuration parameters:

ParameterDescriptionDefault
api_keyAPI key for the LLM providerRequired
modelLLM model to use for analysisllama3-70b-8192
promptPath to the prompt template fileRequired
temperatureTemperature setting for LLM generation0.0
tokensToken replacements for prompt templates

Finding Structure

A genericevaluatorbased on the Foundational Analytic Engine returns a Finding with the following structure.

Finding Structure
{
"EvaluatorName-Foundational": True/False,
"EvaluatorName-Foundational.confidence": [0-1],
"EvaluatorName-Foundational.other_properties": string,
"EvaluatorName-Foundational.justification": string,
}

Available Evaluators

The following table lists common Evaluators that can be created using the Foundational Analytic Engine:

Evaluator NameDescriptionCommon Use Cases
ToxicLanguage-FoundationalIdentifies harmful or unsafe content across multiple hazard categoriesContent moderation, safety compliance

Dependencies

  • Locally hosted foundational model: Primary LLM provider integrated inside the ThirdLaw VPC

Revision History

  • 2025-03-03: Initial documentation creation