spring-ai
spring-ai copied to clipboard
Feat: Transfer the query when to call the vector store
This PR is to provide the feature https://github.com/spring-projects/spring-ai/issues/880
Change:
- New class QueryTransformerQuestionAnswerAdvisor extends QuestionAnswerAdvisor
- Call the AI model to transfer the query before call the vector search
Thank you for taking time to contribute this pull request! You might have already read the [contributor guide][1], but as a reminder, please make sure to:
- Sign the contributor license agreement Done
- Rebase your changes on the latest
mainbranch and squash your commits Done - Add/Update unit tests as needed Done
- Run a build and make sure all tests pass prior to submission Done