spring-projects / spring-ai

An Application Framework for AI Engineering
https://docs.spring.io/spring-ai/reference/index.html
Apache License 2.0
3.32k stars 850 forks source link

GH-1240: Add builder pattern to ChromaVectorStore for better initiali… #1723

Closed sobychacko closed 1 week ago

sobychacko commented 1 week ago

…zation control

Fixes: #1240

Issue: https://github.com/spring-projects/spring-ai/issues/1240

The change addresses initialization issues when ChromaVectorStore is used outside Spring context, particularly in scenarios where collections are created manually before store instantiation. Previously, collection ID wasn't properly populated when afterPropertiesSet() wasn't called by Spring container.

Collection ID is now properly set regardless of whether the store is managed by Spring or created manually, solving the 404 Not Found errors during document insertion.

markpollack commented 1 week ago

merged in c8a9b1640a66d022c02323dfe600b0fabb3c5cb5