Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardobl committed May 23, 2024
1 parent 43749ee commit d63f445
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rag/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@ async function run() {

let newContext = "";

if (documents.length>0){
if (documentsUrls.length>0){
Job.log("Starting rag pipeline with k="+topK+", max-tokens="+maxTokens+", quantize="+quantize+", overlap="+overlap+", cache-duration-hint="+cacheDurationHint+", no-cache="+noCache);
Job.log("Fetching documents...");
const downloadDocumentsReq = Job.subrequest({
runOn: "openagents/document-retrieval",
outputFormat: "application/hyperdrive+bundle",
inputs: await Promise.all(documentsUrls.map((query) => Job.newInputData(query, "url"))),
inputs: await Promise.all(documentsUrls.map((d) => Job.newInputData(d, "url"))),
params: cacheParams
});

Expand Down

0 comments on commit d63f445

Please sign in to comment.