Skip to content

Commit

Permalink
address last bandit issue to not have temp dir hardcoded
Browse files Browse the repository at this point in the history
  • Loading branch information
krokoko committed Nov 16, 2023
1 parent a27dd6c commit a2cffd8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import json
import boto3, json
import numpy as np
import tempfile
from helpers.credentials_helper import get_credentials
from helpers.opensearch_helper import check_if_index_exists, process_shard
from helpers.update_ingestion_status import updateIngestionJobStatus
Expand Down Expand Up @@ -75,7 +76,7 @@ def get_bedrock_client(service_name="bedrock-runtime"):
opensearch_index = os.environ['OPENSEARCH_INDEX']
opensearch_domain = os.environ['OPENSEARCH_DOMAIN_ENDPOINT']

DATA_DIR = "/tmp"
DATA_DIR = tempfile.gettempdir()
CHUNCK_SIZE_DOC_SPLIT=500
OVERLAP_FOR_DOC_SPLIT=20
MAX_OS_DOCS_PER_PUT = 500
Expand Down

0 comments on commit a2cffd8

Please sign in to comment.