ashai vectorize
There is an issue where the code keeps embedding vectors even though they were already embedded I am on postgres 16,

10 Replies
What does your trigger look like?
this is the trigger
as you can see all the jobs were done in the vectorize queue for the poems
It runs it on a schedule by default which you don't want
is it in our docs like that?
If so plase open an issue or even bettr a PR
yes
actually it does have scheduler_cron nil, but I think the compiler was complaining about something
it should be set to false instead

GitHub
ash_ai/README.md at 808b0835ee715896a724f36b4d3998a0561844ad · ash...
Structured outputs, vectorization and tool calling for your Ash application - ash-project/ash_ai
also there is no mention of the need to add the oban queue to the config.exs
the idea of the scheduler is great but it can be improved by actually batching the get embedding call [this is already been done when there is different attributes in the same] + only touching non embedded rows
this would be a good feature, I am willing to help but I will need links to guides. also I am new to the framework
Yeah, we want to make
ash_oban
support bulk updates
once we support like a batch_size
and have it fetch n records and bulk update them then we can just use that in this action
Can you PR the addition of those options to the docs?as far as I remember open ai has a max token limit on the embedding request so maybe a way to handle that too would be great
will do
GitHub
impr: Switching off the scheduler+Mention of the need to add the qu...
Contributor checklist
Leave anything that you believe does not apply unchecked.
I accept the AI Policy, or AI was not used in the creation of this PR.
Bug fixes include regression tests
Chores
...