Other LLM Operations¶
Once you've added an LLM to Cognigy.AI, you can perform the following operations with your model:
Clone a Model
To create a copy of the existing model, follow these steps:
The model will contain the same settings as the initial one.
To create a copy of the existing model, use the Cognigy.AI API POST /v2.0/largelanguagemodels/{largeLanguageModelId}/clone request.
Set a Model as Default
Setting a default model ensures a smooth transition when a specific model is removed. It guarantees that there is always a model available to handle compatible use cases, even if the assigned model is removed.
To set a model as the default, follow these steps:
The setting will be applied for the selected model.
To set a model as the default, use the "isDefault": true
parameter in the Cognigy.AI API PATCH /v2.0/largelanguagemodels/{largeLanguageModelId} request.
Export a Model as a Package
To reuse a model in other Projects, package the model.
To package a model, follow these steps:
- Go to Build > LLM.
- Hover over the existing model and click
.
- Select Create a package.
- Once the package has created, a new task, titled Create package, will be run. To view the task, click
in the upper-right corner.
When the task is completed, you can download the Package in the Task Panel. To ensure the model works correctly in a different Project, export its connection as a Package.
Delete a Model
Note that a default model cannot be deleted. Before deletion, you need to remove the default tag.
To delete a model, follow these steps:
- Go to Build > LLM.
- Hover over the existing model and click
.
- Select Delete.
- Confirm the deletion. Features relying on this model will stop working if no default model is configured to support those features.
The model will be deleted from the list.
To delete a model, use the Cognigy.AI API DELETE /v2.0/largelanguagemodels/{largeLanguageModelId}.