spring-projects / spring-projects/spring-ai

Suggestions for the Improvement of QuestionAnswerAdvisor

Open
#3,261 1 comment 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

When using the QuestionAnswerAdvisor, I found that the results retrieved from the vector database are directly concatenated. I hope to be able to decide on the structure of the concatenated text myself. For example, I might need to add dividing lines before and after each piece of text, or add other data descriptions, etc. This will enable me to have more control over the text information sent to the AI.

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

Start at the QuestionAnswerAdvisor entry point and inspect how retrieved vector results are assembled into the prompt. Clarify the formatting API and expected separator or metadata behavior, then add coverage showing callers can control the assembled text.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
ai, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.