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

Feat: Transfer the query when to call the vector store

Open showpune opened this issue 1 year ago • 3 comments

This PR is to provide the feature https://github.com/spring-projects/spring-ai/issues/880

Change:

  1. New class QueryTransformerQuestionAnswerAdvisor extends QuestionAnswerAdvisor
  2. 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 main branch 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

showpune avatar Jun 18 '24 05:06 showpune