-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
getCachedEmbeddings broken for sqlite adapter #251
Comments
Similar issue here using ollama local ` ["✓ Registering action: FOLLOW_ROOM"] ["✓ Registering action: UNFOLLOW_ROOM"] ["✓ Registering action: IGNORE"] ["✓ Registering action: NONE"] ["✓ Registering action: MUTE_ROOM"] ["✓ Registering action: UNMUTE_ROOM"] Registering service: browser opts.query_input (just now) [94959] User12dea96f-ec20-0935-a6ab-75692c994959: hi RangeError: Too few parameter values were provided Node.js v23.1.0 |
similar error here:
|
Describe the bug
The
getCachedEmbeddings
for the sqlite adapter is flawed with the recent introduction of vec_distance_L2.query_match_count
should be used forLIMIT
query_input
does not include any comma separated values. The resulting array is[NaN]
query_threshold
, notquery_input
Related function is here:
https://github.com/ai16z/eliza/blob/15f7ba88d04d9d7d1cf0f608762fa84da06cb313/packages/adapter-sqlite/src/index.ts#L332C11-L360
I'm happy to contribute if someone can guide me. I have little clue about
vec_distance
and didn't manage to infer what the intention of the change was exactly.To Reproduce
pnpm start --characters="characters/custom.character.json"
and type somethingExpected behavior
No sqlite errors
The text was updated successfully, but these errors were encountered: