Asset listing
This guide will walk you through the process of searching for various aiXplain assets, including agents, models, pipelines, metrics, data, benchmark, corpora and files.
To explore all available assets, visit Discover in aiXplain Studio. There, you can browse, filter, sort, and compare assets side by side to find the best models, and agent tools for your needs.
- Models
- Pipelines
- Agents
- Metrics
- Data
Models
aiXplain's collection of models are searchable using queries, filters and directly accessible using thier IDs (unique identifiers).
Models are searchable on the SDK using the following search parameters:
- Python
- Swift
function
: Defines the AI function the model performs (e.g., translation, summarization). Can be an enum or None.source_languages
(Input language): Specifies the default input language(s) supported by the model. Accepts a list or None.target_languages
(Output language): Specifies the default output language(s) produced by the model. Accepts a list or None.ownership (Owner)
: Indicates the Team/User that owns the model asset. Accepts a tuple containing ownership types.is_finetunable
(FineTune compatible): Boolean indicating whether the model supports fine-tuning.suppliers
: Identifies the provider hosting the model. Accepts a list or None.model_ids
: A list of specific model IDs to filter results. Can be None.
query
(Search bar in UI): The name of the model.functions
: The AI function performed by the model.
- Python
- Swift
Let's use query
, function
, source_languages
, target_languages
and suppliers
to search for translation models from English to Canadian French.
from aixplain.factories import ModelFactory
from aixplain.enums import Function, Language, Supplier
model_list = ModelFactory.list(
function=Function.TRANSLATION,
source_languages=Language.English,
target_languages=Language.French,
suppliers=[Supplier.AWS, Supplier.GOOGLE, Supplier.MICROSOFT],
)["results"]
for model in model_list:
print(model.__dict__)
Use the _member_names_
attribute to see the list of available function types, languages and suppliers.
Function._member_names_
Language._member_names_
Supplier._member_names_
Let's use query
and function
to search for translation models from English to Canadian French.
let provider = ModelProvider()
Task {
let query = ModelQuery(query: "English to French Canada", functions: ["translation"])
let result = try? await provider.list(query)
result?.forEach { model in
dump(model)
}
}
The best way to view a list of all available functions is to check Discover. We will add a programmatic way to get this information to Swift in future. We will also soon display all models (and functions) in the Docs. 👍