Skillful Inference Quick Start Guide
Skillful Inference Quick Start GuideGet started with each Skillful Inference capability using these basic implementations.
Question Answering
Question AnsweringFor 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
Sentence SimilarityFor comparing an input sentence against a set of possibilities:
Speech Recognition
Speech RecognitionFor converting spoken words to text:
Text Classification
Text ClassificationFor analyzing sentiment in text:
Text Generation
Text GenerationFor creating new text based on a prompt:
Text Summarization
Text SummarizationFor condensing longer text into summaries:
Text-To-Image
Text-To-ImageFor generating images from text descriptions:
Translation
TranslationFor translating text between languages:
Zero-Shot Classification
Zero-Shot ClassificationFor 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