Skip to content

Conversation

@lyrixx
Copy link
Member

@lyrixx lyrixx commented Nov 20, 2025

Q A
Bug fix? no
New feature? yes
Docs? no
Issues
License MIT

Usage:

$matchesInB = $this->store->query($vectorA, [
    'maxScore' => 0.66,
    'limit' => 3,
    'where' => 'crawl_id = :crawl_id',
    'params' => ['crawl_id' => $crawlBId],
]);

@carsonbot carsonbot added Feature New feature Store Issues & PRs about the AI Store component Status: Needs Review labels Nov 20, 2025
@lyrixx lyrixx force-pushed the store-mariadb-where branch from 1cc53d0 to e4e4e28 Compare November 20, 2025 16:41
@lyrixx lyrixx force-pushed the store-mariadb-where branch from 4a1c1d1 to 82e4110 Compare November 21, 2025 10:08
$store = new Store($pdo, 'embeddings_table', 'embedding');

$expectedSql = 'INSERT INTO embeddings_table (id, metadata, embedding)
$expectedQuery = 'INSERT INTO embeddings_table (id, metadata, embedding)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use the same variable names a in MariaDB/Store

Comment on lines +40 to +42
$this->assertSame($this->normalizeQuery($expectedQuery), $this->normalizeQuery($sql));

return true;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Debugging is much more easier !

@chr-hertel
Copy link
Member

Thank you @lyrixx.

@chr-hertel chr-hertel merged commit b3e2d89 into symfony:main Nov 21, 2025
15 checks passed
@lyrixx lyrixx deleted the store-mariadb-where branch November 21, 2025 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature New feature Status: Reviewed Store Issues & PRs about the AI Store component

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants