fix: GH-3690, enhance RedisVectorStore with RedisVectorStoreBuilderCustomizer#3809
fix: GH-3690, enhance RedisVectorStore with RedisVectorStoreBuilderCustomizer#3809lanpf wants to merge 2 commits intospring-projects:mainfrom
Conversation
|
Thank you for keeping the words you shared earlier. I’ll also keep the words I said before. I appreciate your thoughtfulness. |
…rStoreBuilderCustomizer, add generic VectorStore.Builder customizer interface and Redis-specific customizer interface Signed-off-by: lanpf <lanxiaozhu2007@hotmail.com>
6d748cc to
1d8243f
Compare
Thanks for pointing that out! I've corrected the formatting - the issue reference |
|
@ilayaperumalg Could someone approve running CI for this PR? |
Signed-off-by: lanpf <lanxiaozhu2007@hotmail.com>
3afdb87 to
37085c5
Compare
@ilayaperumalg Apologies for the oversight—I didn’t have access to my work computer when submitting the PR and forgot to run the code formatting checks. I’ve now resolved the formatting issues using |
|
@lanpf No problem at all. thank you for the follow up and the contribution! |
|
getting back to this... sorry, catching up. |
Description
This PR introduces a generic extension point for customizing
VectorStore.BuilderviaVectorStoreBuilderCustomizerand fixes retrieval failures inRedisVectorStore.Background
Previously, when using
VectorStoreChatMemoryAdvisorwithRedisVectorStoreandinitialize-schema=true, metadata fields likeconversationId(used infilterExpression) weren't registered in the Redis schema. This occurred becauseRedisVectorStorePropertiesdidn't support settingmetadataFieldsduring auto-configuration, causing retrieval failures during similarity search.Related issue: #3690
Changes
VectorStoreBuilderCustomizer<T extends VectorStore.Builder<T>>interfaceRedisVectorStoreBuilderCustomizerVectorStoreBuilderCustomizer<RedisVectorStore.Builder>RedisVectorStoreAutoConfigurationRedisVectorStore.Builderas dependencyNew Customization Pattern
Developers can now customize metadata fields non-invasively:
Impact
initialize-schema=truefunctionalityRedisVectorStorewiringSpecial Thanks
🙌 To @Acacian for test contributions and valuable feedback.
Closes: #3690
Looking forward to your review!