IntelliNode v1.3.0
v1.3.0
New Changes 🌟
- Introduced the Large Learning Model (LLM) Evaluator: a quick comparison among multiple models' results based on your target answers. This feature simplifies the assessing of LLMs such as LaMMA V2 and GPT4, providing valuable insights into model performance.
- Prompt Engineering Feature: an efficient way to automate the process of creating new prompts.
Code Examples 💻
LLM Evaluator
const { LLMEvaluation } = require('intellinode');
// create the LLMEvaluation with the desired embedding for unified comparison.
const llmEvaluation = new LLMEvaluation(openaiKey, 'openai');
const results = await llmEvaluation.compareModels(inputString, targetAnswers, providerSets)
Check the model evaluation documentation.
Prompt Engineering
Import the Prompt
class:
const Prompt = require('intellinode');
Generate a new prompt using an existing model:
const promptTemp = await Prompt.fromChatGPT("generate a fantasy image with ninja jumping across buildings", openaiApiKey);
Automatically fill and format a prompt with dynamic data:
const promptTemp = await Prompt.fromText("information retrieval about ${reference} text with ${query} user input");
const inputString = promptTemp.format({reference: '<reference_text>', query: '<user_query>'})