Milvus provider doesn't respect selected database name

Created on 12 September 2024, 9 days ago
Updated 13 September 2024, 7 days ago

Problem/Motivation

Milvus provider always uses the 'default' database in the request no matter what database name was specified in search api server configuration.

Steps to reproduce

  1. Install ai_search module
  2. Install vdb_provider_milvus module.
  3. Configure Milvus connection here /admin/config/ai/vdb_providers/milvus
  4. Create Search API server here /admin/config/search/search-api/add-server using "AI Search" backend.
  5. Select for "Database Name" any other value than default (Make sure selected database exists on Milvus server)
  6. Save the Search API Server.
  7. Observe that the new collection was created in default database and selected database is empty

Proposed resolution

Use the database name parameter, so that the queries from the client are executed against correct database. At the moment the parameter has default value 'default', so no method has this parameter set and uses default value.

Remaining tasks

Create MR with the fixes.

User interface changes

No changes

API changes

Method getVdbIds in modules/vdb_providers/vdb_provider_milvus/src/Plugin/VdbProvider/MilvusProvider.php will have one new optional parameter 'database'

Data model changes

No changes

🐛 Bug report
Status

Fixed

Version

1.0

Component

AI Search

Created by

🇩🇪Germany a.dmitriiev

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