AF
Ash Framework•2mo ago
theron

Vector issue

[error] Failed to update subtask embedding e28d6ac8-72da-4bd9-ad0e-cab51e25f3b9: %Ash.Error.Unknown{bread_crumbs: ["Returned from bulk query update: ThalamusTasks.Tasks.SubTask.update"], changeset: "#Changeset<>", errors: [%Ash.Error.Unknown.UnknownError{error: "** (FunctionClauseError) no function clause matching in Pgvector.new/1", field: nil, value: nil, splode: Ash.Error, bread_crumbs: ["Returned from bulk query update: ThalamusTasks.Tasks.SubTask.update"], vars: [], path: [], stacktrace: #Splode.Stacktrace<>, class: :unknown}]}
[error] Failed to update subtask embedding 435405d4-317e-4b91-9b73-5fa23ecb88f8: %Ash.Error.Unknown{bread_crumbs: ["Returned from bulk query update: ThalamusTasks.Tasks.SubTask.update"], changeset: "#Changeset<>", errors: [%Ash.Error.Unknown.UnknownError{error: "** (FunctionClauseError) no function clause matching in Pgvector.new/1", field: nil, value: nil, splode: Ash.Error, bread_crumbs: ["Returned from bulk query update: ThalamusTasks.Tasks.SubTask.update"], vars: [], path: [], stacktrace: #Splode.Stacktrace<>, class: :unknown}]}
[error] Failed to update subtask embedding 56a1c909-1d0c-4ad0-8e90-655fbd45cf3e: %Ash.Error.Unknown{bread_crumbs: ["Returned from bulk query update: ThalamusTasks.Tasks.SubTask.update"], changeset: "#Changeset<>", errors: [%Ash.Error.Unknown.UnknownError{error: "** (FunctionClauseError) no function clause matching in Pgvector.new/1", field: nil, value: nil, splode: Ash.Error, bread_crumbs: ["Returned from bulk query update: ThalamusTasks.Tasks.SubTask.update"], vars: [], path: [], stacktrace: #Splode.Stacktrace<>, class: :unknown}]}
[error] Failed to update subtask embedding e28d6ac8-72da-4bd9-ad0e-cab51e25f3b9: %Ash.Error.Unknown{bread_crumbs: ["Returned from bulk query update: ThalamusTasks.Tasks.SubTask.update"], changeset: "#Changeset<>", errors: [%Ash.Error.Unknown.UnknownError{error: "** (FunctionClauseError) no function clause matching in Pgvector.new/1", field: nil, value: nil, splode: Ash.Error, bread_crumbs: ["Returned from bulk query update: ThalamusTasks.Tasks.SubTask.update"], vars: [], path: [], stacktrace: #Splode.Stacktrace<>, class: :unknown}]}
[error] Failed to update subtask embedding 435405d4-317e-4b91-9b73-5fa23ecb88f8: %Ash.Error.Unknown{bread_crumbs: ["Returned from bulk query update: ThalamusTasks.Tasks.SubTask.update"], changeset: "#Changeset<>", errors: [%Ash.Error.Unknown.UnknownError{error: "** (FunctionClauseError) no function clause matching in Pgvector.new/1", field: nil, value: nil, splode: Ash.Error, bread_crumbs: ["Returned from bulk query update: ThalamusTasks.Tasks.SubTask.update"], vars: [], path: [], stacktrace: #Splode.Stacktrace<>, class: :unknown}]}
[error] Failed to update subtask embedding 56a1c909-1d0c-4ad0-8e90-655fbd45cf3e: %Ash.Error.Unknown{bread_crumbs: ["Returned from bulk query update: ThalamusTasks.Tasks.SubTask.update"], changeset: "#Changeset<>", errors: [%Ash.Error.Unknown.UnknownError{error: "** (FunctionClauseError) no function clause matching in Pgvector.new/1", field: nil, value: nil, splode: Ash.Error, bread_crumbs: ["Returned from bulk query update: ThalamusTasks.Tasks.SubTask.update"], vars: [], path: [], stacktrace: #Splode.Stacktrace<>, class: :unknown}]}
Both define the vector as such:
attribute :embedding, :vector do
description "Vector embedding for similarity matching"
constraints dimensions: 768
public? true
end
attribute :embedding, :vector do
description "Vector embedding for similarity matching"
constraints dimensions: 768
public? true
end
I'm not using AshAI
6 Replies
theron
theronOP•2mo ago
Actually subtasks don't work either
theron
theronOP•2mo ago
theron
theronOP•2mo ago
@Zach yes Wait this might be an issue with also having pgvector installed Fixed @Zach can we make a warning show up if you have pgvector installed w/ ash i keep running into this same issue
ZachDaniel
ZachDaniel•2mo ago
🤔 possibly it would be a feature in ash_postgres
theron
theronOP•2mo ago
well anything that keeps me from shooting myself in the foot is appreciated

Did you find this page helpful?