PHP Fatal error: Declaration of Drupal\ai_vdb_provider_postgres\Plugin\VdbProvider\PostgresProvider::vectorSearch

Created on 9 January 2025, 4 months ago

Problem/Motivation

php8.2
Drupal 10.4

"PHP message: PHP Fatal error: Declaration of Drupal\ai_vdb_provider_postgres\Plugin\VdbProvider\PostgresProvider::vectorSearch(string $collection_name, array $vector_input, array $output_fields, string $filters = '', int $limit = 10, int $offset = 0, Drupal\ai\Enum\VdbSimilarityMetrics $metric_type = Drupal\ai\Enum\VdbSimilarityMetrics::CosineSimilarity, ?string $database = null): array must be compatible with Drupal\ai\AiVdbProviderInterface::vectorSearch(string $collection_name, array $vector_input, array $output_fields, string $filters = '', int $limit = 10, int $offset = 0, string $database = 'default'): array in drupal-10.4.x/html/modules/contrib/ai_vdb_provider_postgres/src/Plugin/VdbProvider/PostgresProvider.php on line 326

Steps to reproduce

I enabled the module
cleared cache
went to my site
got a WSOD and the above error

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States SocialNicheGuru

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024