Skip to content

Commit 382fbac

Browse files
zhaojy01sobychacko
authored andcommitted
Set embedding field as retrievable in Azure Vector Store
Resolves #1628 In Azure Vector Store, the embedding field needs to be retrievable for proper functionality. While SearchField class doesn't have a 'retrievable' property, the 'hidden' field serves the same purpose. The fix sets hidden=false on the embedding field to make it retrievable. Link: #1628
1 parent a2e2696 commit 382fbac

File tree

1 file changed

+1
-0
lines changed
  • vector-stores/spring-ai-azure-store/src/main/java/org/springframework/ai/vectorstore/azure

1 file changed

+1
-0
lines changed

vector-stores/spring-ai-azure-store/src/main/java/org/springframework/ai/vectorstore/azure/AzureVectorStore.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@ public void afterPropertiesSet() throws Exception {
349349
.setSortable(true));
350350
fields.add(new SearchField(EMBEDDING_FIELD_NAME, SearchFieldDataType.collection(SearchFieldDataType.SINGLE))
351351
.setSearchable(true)
352+
.setHidden(false)
352353
.setVectorSearchDimensions(dimensions)
353354
// This must match a vector search configuration name.
354355
.setVectorSearchProfileName(SPRING_AI_VECTOR_PROFILE));

0 commit comments

Comments
 (0)