spring-projects/spring-ai

Add MetadataFields auto configuration in AzureVectorStore

Open

#2,340 创建于 2025年2月27日

在 GitHub 查看
 (4 评论) (0 反应) (0 负责人)Java (2,617 fork)auto 404
azurehelp wanted

仓库指标

Star
 (8,872 star)
PR 合并指标
 (平均合并 2天 1小时) (30 天内合并 50 个 PR)

描述

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.

贡献者指南