spring-projects/spring-ai

Add MetadataFields auto configuration in AzureVectorStore

Open

#2,340 opened on Feb 27, 2025

View on GitHub
 (4 comments) (0 reactions) (0 assignees)Java (2,617 forks)auto 404
azurehelp wanted

Repository metrics

Stars
 (8,872 stars)
PR merge metrics
 (Avg merge 2d 1h) (50 merged PRs in 30d)

Description

Expected Behavior

Be able to create an AzureVectorStore with specified MetadataFields list in the configuration, like:

spring:
  ai:
    vectorstore:
      azure:
        url: endpoint
        api-key: key
        metadata-fileds:
          - name: filterField
            fieldType: string

Current Behavior

Without specifying these MetadataFileds when creating the AzureVectorStore bean, it is not possible to filter a query by these fields, forcing the bean to be created manually (like here) without using the auto-configuration feature.

Contributor guide