spring-projects/spring-ai

Add MetadataFields auto configuration in AzureVectorStore

Open

#2.340 geöffnet am 27. Feb. 2025

Auf GitHub ansehen
 (4 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Java (2.617 Forks)auto 404
azurehelp wanted

Repository-Metriken

Stars
 (8.872 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 2T 1h) (50 gemergte PRs in 30 T)

Beschreibung

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