We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LanceDB is ok
Libsql ragApplication.search score always is 1
The text was updated successfully, but these errors were encountered:
async similaritySearch(query, k) { const statement = `SELECT id, pageContent, uniqueLoaderId, source, metadata, vector_distance_cos(vector, vector32('[${query.join(',')}]')) as distance FROM ${this.tableName} ORDER BY distance DESC LIMIT ${k};`; this.debug(`Executing statement - ${truncateCenterString(statement, 700)}`); const results = await this.client.execute(statement); return results.rows.map((result) => { const metadata = JSON.parse(result.metadata.toString()); return { metadata, pageContent: result.pageContent.toString(), score: 1 - result.distance, }; }); }
vector_distance_cos as distance
Sorry, something went wrong.
adhityan
No branches or pull requests
🐛 Describe the bug
LanceDB is ok
Libsql ragApplication.search score always is 1
The text was updated successfully, but these errors were encountered: