Skip to content

Commit

Permalink
Overload QuestionAnswerAdvisor to use SearchRequest.defaults()
Browse files Browse the repository at this point in the history
  • Loading branch information
habuma authored and tzolov committed May 30, 2024
1 parent 9286dfb commit 76e7e0b
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ public class QuestionAnswerAdvisor implements RequestResponseAdvisor {

public static String RETRIEVED_DOCUMENTS = "qa_retrieved_documents";

public QuestionAnswerAdvisor(VectorStore vectorStore) {
this(vectorStore, SearchRequest.defaults(), DEFAULT_USER_TEXT_ADVISE);
}

public QuestionAnswerAdvisor(VectorStore vectorStore, SearchRequest searchRequest) {
this(vectorStore, searchRequest, DEFAULT_USER_TEXT_ADVISE);
}
Expand Down

0 comments on commit 76e7e0b

Please sign in to comment.