Skillful Inference Quick Start Guide

Get started with each Skillful Inference capability using these basic implementations.

Question Answering

For getting answers based on specific context:

using SkillfulAI.API;
using UnityEngine;

public class SimpleQuestionAnswering : MonoBehaviour
{
    void Start()
    {
        string context = "The grass is green";
        string question = "What colour is grass?";

        SkillfulAPI.QuestionAnswering(question, context, response => {
            Debug.Log(response.answer);
        });
    }
}

Sentence Similarity

For comparing an input sentence against a set of possibilities:

Speech Recognition

For converting spoken words to text:

Text Classification

For analyzing sentiment in text:

Text Generation

For creating new text based on a prompt:

Text Summarization

For condensing longer text into summaries:

Text-To-Image

For generating images from text descriptions:

Translation

For translating text between languages:

Zero-Shot Classification

For classifying text without pre-training:

Each of these examples can be expanded based on your specific needs. Remember to:

  • Handle errors appropriately in production code

  • Consider performance implications for real-time usage

  • Cache results when appropriate

  • Implement proper cleanup and resource management

For more advanced implementations and best practices, check out the Service Reference documentation.

Last updated