spring-projects / spring-projects/spring-ai
Add MetadataFields auto configuration in AzureVectorStore
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 9.5k
- Forks
- 2.9k
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 6
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the AzureVectorStore auto-configuration entry point and compare it with the linked Azure sample code. Trace how MetadataFields are supplied to the bean, then verify that the YAML configuration creates the fields needed for metadata filtering.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, java, spring-boot
- Domain
- backend, database
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100