spring-ai icon indicating copy to clipboard operation
spring-ai copied to clipboard

Health indicators for vector stores (and any other external APIs)

Open habuma opened this issue 2 years ago • 7 comments

Given that vector stores are databases that are external to the application, which could go down or otherwise become unavailable, and as such contribute to the health (or lack thereof) of a Spring AI application...

It would be great if Spring AI provided health indicators for the vector stores that contribute to Actuator's health endpoint.

One question concerning this is whether such health indicators would be needed for vector stores that are also databases for which Spring already has health indicators. For example, Postgres and Mongo probably are already covered by health indicators. But things like Chroma and Milvus probably aren't.

habuma avatar Oct 28 '24 15:10 habuma

I started this some time ago and shared it with @markpollack and @tzolov at Spring IO but never raised the PR. Currently, it is missing some tests. I can start raising a draft PR to start discussing about it.

eddumelendez avatar Oct 28 '24 20:10 eddumelendez

@eddumelendez just checking in after a long time on this - it is a decent suggestion, just low on the priority list now for the team.

markpollack avatar Aug 12 '25 19:08 markpollack

Hi, is anyone currently working on this issue? If not, I’d be happy to help and work on an initial implementation. Please let me know if that would be welcome.

celikfatih avatar Jan 15 '26 19:01 celikfatih

I would like to work on this issue.

If no one is actively implementing it right now, I plan to start with a small design proposal and then submit an initial PR with tests.

Initial scope proposal:

  1. Introduce a common health-indicator pattern for vector stores.
  2. Implement it for one or two stores first.
  3. Extend to additional stores in follow-up PRs.

DDINGJOO avatar Mar 06 '26 11:03 DDINGJOO

Opened a PR with an initial implementation for vector store health indicators (Qdrant + Weaviate), including conditional auto-configuration and unit tests.

PR: https://github.com/spring-projects/spring-ai/pull/5553

I can extend the same pattern to additional vector stores in follow-up PRs.

DDINGJOO avatar Mar 06 '26 12:03 DDINGJOO

I've submitted an implementation for this in PR #6030.

suryateja-g13 avatar May 13 '26 22:05 suryateja-g13

Hi, I'm Prasad — a software engineer working with Java/Spring Boot and Python.

I'd like to contribute a health indicator for the Chroma vector store, following the pattern of the PgVector PR #5764. Chroma is explicitly named in this issue as not covered by existing Spring health indicators, and I don't see an existing Chroma health indicator on main or in an open PR.

Starting on this now — scoped to Chroma only, with conditional auto-configuration and unit tests (no Docker-dependent tests). I'll reference this issue as related rather than closing it, since this is one slice of the broader request.

prasad-anandappa avatar Nov 05 '26 15:11 prasad-anandappa