Skip to content

Commit

Permalink
Update for new nlp service api
Browse files Browse the repository at this point in the history
  • Loading branch information
tiberiuichim committed Sep 21, 2021
1 parent 0f5de11 commit 1f3a605
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/middleware/elasticsearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,12 @@ const handleSearch = (req, res, next, { appName, urlQA, urlES }) => {
delete body.question;
const qaBody = {
query: question,
custom_query: JSON.stringify(body),
top_k_retriever: 100,
top_k_reader: 4,
params: {
use_dp: true,
// custom_query: JSON.stringify(body),
// top_retriever: 100,
// top_reader: 4,
},
};
//console.log('qa req', qa, question, qaBody);
superagent
Expand Down

0 comments on commit 1f3a605

Please sign in to comment.