AshAi.Info (ash_ai v0.4.0)
View SourceIntrospection functions for the AshAi extension.
Summary
Functions
mcp_resources DSL entities
tools DSL entities
vectorize DSL entities
The name of the AshOban-trigger that will be run in order to update the record's embeddings. Defaults to :ash_ai_update_embeddings.
The name of the AshOban-trigger that will be run in order to update the record's embeddings. Defaults to :ash_ai_update_embeddings.
A keyword list of attributes to vectorize, and the name of the attribute to store the vector in
A keyword list of attributes to vectorize, and the name of the attribute to store the vector in
If true, an ash_ai_update_embeddings update action will be defined, which will automatically update the embeddings when run.
vectorize DSL options
How to compute the vector. Currently supported strategies are :after_action, :manual, and :ash_oban.
How to compute the vector. Currently supported strategies are :after_action, :manual, and :ash_oban.
Functions
mcp_resources DSL entities
tools DSL entities
vectorize DSL entities
@spec vectorize_ash_oban_trigger_name(dsl_or_extended :: module() | map()) :: {:ok, atom()} | :error
The name of the AshOban-trigger that will be run in order to update the record's embeddings. Defaults to :ash_ai_update_embeddings.
The name of the AshOban-trigger that will be run in order to update the record's embeddings. Defaults to :ash_ai_update_embeddings.
A keyword list of attributes to vectorize, and the name of the attribute to store the vector in
A keyword list of attributes to vectorize, and the name of the attribute to store the vector in
@spec vectorize_define_update_action_for_manual_strategy?( dsl_or_extended :: module() | map() ) :: boolean()
If true, an ash_ai_update_embeddings update action will be defined, which will automatically update the embeddings when run.
vectorize DSL options
Returns a map containing the and any configured or default values.
@spec vectorize_strategy(dsl_or_extended :: module() | map()) :: {:ok, :ash_oban_manual | :ash_oban | :manual | :after_action} | :error
How to compute the vector. Currently supported strategies are :after_action, :manual, and :ash_oban.
@spec vectorize_strategy!(dsl_or_extended :: module() | map()) :: (:ash_oban_manual | :ash_oban | :manual | :after_action) | no_return()
How to compute the vector. Currently supported strategies are :after_action, :manual, and :ash_oban.