AF
Ash Framework•4mo ago
Torkan

ash.codegen --dev & ash_ai / vector attr type

Not sure if this is an ash_ai thing or an ash.codegen --dev with vectors thing, (I'm guessing the latter) but my project is deadlocked now since it wants to add this:
use Ecto.Migration

def up do
alter table(:profile_detail_items) do
modify :content_vector, :vector
end
end

def down do
alter table(:profile_detail_items) do
modify :content_vector, :vector
end
end
use Ecto.Migration

def up do
alter table(:profile_detail_items) do
modify :content_vector, :vector
end
end

def down do
alter table(:profile_detail_items) do
modify :content_vector, :vector
end
end
In the previous (non-dev) migration: add :content_vector, :vector, size: 1536 And running the codegen just creates that migration and some new snapshots, and then it wants to do the same all over again, groundhog day-style 😛
Solution:
fix released
Jump to solution
2 Replies
ZachDaniel
ZachDaniel•4mo ago
Does it not happen if you don't use --dev? got it reproduced fix incoming just making sure I didn't break anything else
Solution
ZachDaniel
ZachDaniel•4mo ago
fix released

Did you find this page helpful?