Skip to content

Commit

Permalink
Reduce wait time for tools
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardobl committed May 23, 2024
1 parent 5bd3e93 commit 7693e95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rag/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ async function run() {
let toolsResultTemplate ="{{TOOL_RESULT}}";
let expectedResults = 1;
let maxWaitTime = 1000 * 60 * 2;
let toolWaitTime = 1000 * 10;


const documents = []; // plain text documents
Expand Down Expand Up @@ -160,7 +161,7 @@ async function run() {
});

Job.log("Merging tools result...");
let toolResult = await Job.waitForContent(toolReq, expectedResults, maxWaitTime);
let toolResult = await Job.waitForContent(toolReq, expectedResults, toolWaitTime);
toolResult = toolsResultTemplate.replace("{{TOOL_RESULT}}", toolResult);
newContext += toolResult + "\n";
}catch(e){
Expand Down

0 comments on commit 7693e95

Please sign in to comment.