Problem/Motivation
Fatal error: Declaration of Drupal\ai_vdb_provider_sqlite\Plugin\VdbProvider\SQLiteProvider::vectorSearch(string $collection_name, array $vector_input, array $output_fields, string $filters = '', int $limit = 10, int $offset = 0, ?string $database = null): array must be compatible with Drupal\ai\AiVdbProviderInterface::vectorSearch(string $collection_name, array $vector_input, array $output_fields, Drupal\search_api\Query\QueryInterface $query, string $filters = '', int $limit = 10, int $offset = 0, string $database = 'default'): array in /var/www/html/web/modules/contrib/ai_vdb_provider_sqlite/src/Plugin/VdbProvider/SQLiteProvider.php on line 287
the 1.1.x version introduced a breaking change in this function signature in #3486166: AI Search: Pass metric type to vector search function (which is technically ok because it is still experimental..)
Steps to reproduce
update the ai modules to their 1.1.x branches.
Proposed resolution
I don't know.. maybe branching 1.1.x as well?
Or maybe just drop support for 1.0.x and go for >1.1 of the ai module like ai_vdb_provider_postgres does
I would also appreciate a dev release for the raw branches so that they show up in the version selection on issues :D
Remaining tasks
review patch.
Maybe we can do the same as pgvector now with this?
User interface changes
none
API changes
none?
Data model changes
none
Issue fork ai_vdb_provider_sqlite-3524631
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #6
jimyhuang commentedI have released version 1.0.0, and I've configured the Composer dependency to use the stable version of the AI module.
Next, I merged your pull request into the 1.0.0 branch, create the 1.1.x branch, and then release version 1.1.x-dev which stick 1.1.x version of AI module.
Comment #7
jimyhuang commentedReleased 1.1.x-dev.
https://www.drupal.org/project/ai_vdb_provider_sqlite/releases/1.1.x-dev
Comment #8
jimyhuang commentedSeems fixed.