spring-projects / spring-projects/spring-ai

advisors can't search two vector store

Open
#2,525 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: waiting-for-triage
Dominant language
Java
Stars
9.5k
Forks
2.9k
Avg merge
1d 7h
Merged PRs (30d)
6

Description

In Spring AI1.0.0-M5, when I call the following code
chatClient.prompt().user(message).advisors(new QuestionAnswerAdvisor(v1),new QuestionAnswerAdvisor(v2)).call().content();
Can only retrieve v1's VectorStore, but not v2's VectorStore. How do I solve this problem

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the reported call using Spring AI 1.0.0-M5 with two QuestionAnswerAdvisor instances and separate vector stores. Start by tracing how the advisors are applied during the call; done means the behavior is explained and either both vector stores are queried or the limitation and supported usage are documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
ai, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.