Skip to content

Commit

Permalink
fix bug: exception at BaseCombineDocumentsChain when use BaseRetrieva…
Browse files Browse the repository at this point in the history
…lQA, as missing key [question]
  • Loading branch information
lingjue@ubuntu committed Jul 25, 2023
1 parent c17b614 commit 2bfb096
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ public Map<String, String> innerCall(Map<String, Object> inputs) {

List<Document> docs = getDocs(question);
inputs.put("input_documents", docs);
inputs.put("question", question);
String answer = combineDocumentsChain.run(inputs);

Map<String, String> result = Maps.newHashMap();
Expand Down

0 comments on commit 2bfb096

Please sign in to comment.