spring-projects/spring-ai

Add MetadataFields auto configuration in AzureVectorStore

Open

#2,340 opened on 2025年2月27日

GitHub で見る
 (4 comments) (0 reactions) (0 assignees)Java (2,617 forks)auto 404
azurehelp wanted

Repository metrics

Stars
 (8,872 stars)
PR merge metrics
 (平均マージ 2d 1h) (30d で 50 merged PRs)

説明

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.

コントリビューターガイド