LLM Selection Framework for Domain-Specific AI Stack Ranking

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Selecting a suitable Large Language Model (LLM) for a specific natural language processing task is challenging due to the variety of commercially available LLMs and the lack of understanding of their capabilities and limitations.

Innovation Solution

A framework is provided to recommend an LLM for a custom AI stack by generating questions based on a source document summary, evaluating different LLMs using these questions, and ranking them based on metrics such as coherence, relevance, and accuracy, ultimately recommending the best-performing LLM for a user interface.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If multiple commercially available LLMs are evaluated to find the best model for a specific NLP task, then the accuracy and suitability of the selected model improves, but the time and computational resources required for selection increase

Engineering Contradiction:
Improvemodel selection accuracyVSAvoidmodel evaluation time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The system performs preliminary actions by pre-generating a dataset of questions and references before the actual model selection process. This pre-prepared evaluation dataset allows for efficient comparison of multiple LLMs without requiring time-consuming ad-hoc question generation during the selection phase, thus improving measurement precision while reducing time loss.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system creates copies of evaluation questions and reference materials that can be reused across multiple model assessments. By generating a comprehensive question set once and copying it for evaluating different LLMs, the system avoids redundant work and reduces the time required for model selection while maintaining accurate comparison capabilities.

Inventive Principle:
Principle #26Copying

2Reliability

If a comprehensive evaluation framework with multiple metrics is used to assess LLM performance, then the reliability of model selection improves, but the complexity of the evaluation system increases

Engineering Contradiction:
Improvemodel selection reliabilityVSAvoidevaluation framework complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The evaluation framework is segmented into distinct, modular components: question generation, model inference, answer evaluation, and ranking. Each component handles a specific aspect of the evaluation process independently, making the overall system more manageable and less complex while maintaining comprehensive assessment capabilities through multiple metrics including answer quality, reference alignment, and model performance consistency.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The system introduces an intermediary evaluation layer that mediates between the LLM outputs and the final selection decision. This intermediary component systematically applies multiple evaluation metrics and aggregates results, providing a reliable and transparent decision-making process that reduces the perceived complexity by structuring the evaluation flow through clear intermediate steps.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Adaptability or versatility

If custom AI stacks are built with domain-specific LLM selection, then the adaptability to particular domains improves, but the device complexity for implementing custom stacks increases

Engineering Contradiction:
Improvedomain adaptabilityVSAvoidAI stack implementation complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The system enables domain adaptability by allowing parameter changes in the evaluation process, such as adjusting evaluation metrics, question types, and reference materials based on the specific domain requirements. This flexibility lets users tailor the AI stack to particular domains without fundamentally redesigning the entire system, thus improving adaptability while managing implementation complexity through configurable parameters rather than structural changes.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS12481826B2Systems and methods for selecting neural network models for building a custom artificial intelligence stack
Publication Date: 2025.11.25 SALESFORCE INC
  • US12481826B2 patent drawing
  • US12481826B2 patent drawing
  • US12481826B2 patent drawing

AI summary

Embodiments described herein provide a system for selecting a neural network based natural language processing (NLP) model for building a custom artificial intelligence (AI) stack for a user. The system includes a communication interface that established connections to one or more external servers hosting one or more neural network based NLP models, a memory; and a processor executing operations including: selecting a source document based on a custom NLP application; generating, by a first language model, a summary of the source document; generating, by a second language model, one or more questions based on at least one of the summary or the source document; transmitting, via the communication interface, the one or more questions to the one or more neural network based NLP models; receiving, via the communication interface, one or more answers generated by the one or more neural network based NLP models.