Searched hist:"31 a78876bf00d78793d236b8ff1b8f40775bf54f" (Results 1 – 1 of 1) sorted by relevance
| /plugin/aichat/Storage/ |
| H A D | SQLiteStorage.php | 31a78876bf00d78793d236b8ff1b8f40775bf54f Wed Mar 12 11:09:06 UTC 2025 Andreas Gohr <andi@splitbrain.org> sqlite: avoid warnings on too short vectors
This should not happen in the real world. But when embeddings were created with a shorter vector model than the model that is used to embed the query, the cosineSimilarity method threw a whole bunch of warnings. We now stop the comparison at the vector length.
In the real world the same model for embeddings and the query should be used, results are unpredictable otherwise. So this is mostly a cosmetic change for messed up states during development.
|