Relative Content

Tag Archive for javaspringspring-ai

How do I use Redis and have multiple Vector stores in Spring AI?

I am trying to do something where I have 2 advisors, one is a typical RAG vector store for my QuestionAnswerAdvisor and one is using redis for an embedding based cache of questions. The original QuestionAnswerAdvisor works great but when I add the redis store I don’t see how to qualify the injected bean to make sure it is using redis instead of pinecone. I tried this

How do I use multiple VectorStore(s) in Spring AI?

I am trying to do something where I have 2 advisors, one is a typical RAG vector store for my QuestionAnswerAdvisor and one is using redis for an embedding based cache of questions. The original QuestionAnswerAdvisor works great but when I add the redis store I don’t see how to qualify the injected bean to make sure it is using redis instead of pinecone. I tried this