Skip to content

Commit

Permalink
Increase find passage concurrency to 8 and expose env variable (#124)
Browse files Browse the repository at this point in the history
- FIND_PASSAGE_CONCURRENCY environment variable to override default value of 8

Signed-off-by: Sean Sundberg <[email protected]>
  • Loading branch information
seansund authored Oct 27, 2023
1 parent f482328 commit e8dfaf8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/services/data-extraction/data-extraction.impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ import {DataExtractionResultModel} from "../../models";
import {first, GenAiModel, GenerativeResponse} from "../../utils";
import PQueue from "../../utils/p-queue";

const queue = new PQueue({concurrency: 2});
const concurrency = parseInt(process.env.FIND_PASSAGE_CONCURRENCY || '8')
const queue = new PQueue({concurrency});

export interface DataExtractionBackendConfig {
identityUrl: string;
Expand Down

0 comments on commit e8dfaf8

Please sign in to comment.