Clarifai 10.8: Supercharge AI Models with Advanced Concept Mapping | Clarifai Blog

This blog post focuses on new features and improvements. For a comprehensive list, including bug fixes, please see the release notes.

Advanced Concept Management

A concept represents an entity, similar to a "tag" or "keyword," and is also referred to as a "class" in machine learning. Concepts can be used to annotate inputs that contain the associated entity or added to a model for entity recognition. The data tied to these concepts helps the model learn and understand the entity.

On the Clarifai Platform, you can upload your inputs, create concepts, and manage various tasks within your app. We’ve now introduced a new way to define concept relations in Clarifai, allowing you to define hierarchical and semantic links between concepts. This helps build robust knowledge graphs and enabling more advanced computer vision and natural language processing capabilities.

By mapping concepts as synonyms, hyponyms, or hypernyms, you can create context-aware models that deliver more accurate results. This is especially useful for managing data, building search engines, and organizing large datasets, ultimately improving the effectiveness of AI applications.

Hyponym (Subtype Relation): Represents a "kind of" relationship, like "Dog" being a kind of "Animal". This hierarchy helps models generalize or specialize in identifying concepts. Usage: Hyponyms refine search results; a search for "Animal" might return "Dog", "Cat", and other animals.

Hypernym (Supertype Relation): The opposite of a hyponym, it indicates a broader category or parent concept such as "Animal" being a hypernym for "Dog" or "Animal" is a parent of "Dog". Usage: Hypernyms group specific entities under broader categories, helping in data organization.

Synonym (Equivalent Relation): Links concepts with the same or similar meanings, like "Puppy" and "Pup". Usage: Synonyms ensure that different terms for the same concept are treated as equivalent, improving search accuracy.

Below is an example of how to add and manage concept relations in the Clarifai app using the Python SDK.

Explore this guide and included notebook to learn how to add concept relations to your data, and follow along step by step.

Published new model: Prompt-Guard-86M

LLM-powered applications can be vulnerable to prompt attacks, where malicious prompts are designed to manipulate the model's behavior against the developer's intentions.

There are two different prompt attacks:

Prompt-Guard-86M is a multilingual classifier model designed to detect and prevent these prompt injections and jailbreak attacks in LLM-powered applications. The model is trained on a comprehensive corpus of attack data to detect both explicitly malicious prompts and those containing subtle injected inputs.

As a multi-label model, it categorizes inputs into three distinct classes: benign, injection, and jailbreak, thereby providing a robust mechanism to mitigate risks in LLM-powered applications.

The model is now available on the Clarifai Platform, We have some pre built examples to get you started. Try out Prompt-Guard-86M!

Input-Viewer

Added option to download original asset from Input-Viewer

Enhanced annotation identification in Input-Viewer

Deprecated some agent system operators

Agent system operators are fixed-function operators that act as "non-trainable models". They help you connect, direct, and network your models in a workflow.

We have deprecated the following agent system operators: Custom Code Operator, AWS Lambda, Isolation Operator, Tesseract Operator, Neural Tracker and Neural Lite Tracker.

Read more about Agent System Operators and how you can use them with workflows for various use cases here.

Additional changes

Ready to start building?

On the Community Platform, you can upload your inputs, create concepts, and manage various tasks within your app. Check out our quick-start guide on the Community Platform. Sign up here to get started!

If you have any questions, send us a message in our Community Discord channel. Thanks for reading!