Coverage for intelligence_toolkit/helpers/constants.py: 90%

10 statements  

« prev     ^ index     » next       coverage.py v7.10.7, created at 2025-10-16 13:41 -0300

1# Copyright (c) 2024 Microsoft Corporation. All rights reserved. 

2# Licensed under the MIT license. See LICENSE file in the project. 

3# 

4 

5# PDF Generation 

6import os 

7 

8PDF_ENCODING = "UTF-8" 

9PDF_WKHTMLTOPDF_PATH = "C:\\Program Files\\wkhtmltopdf\\bin\\wkhtmltopdf.exe" 

10PDF_MARGIN_INCHES = 0.75 

11ATTRIBUTE_VALUE_SEPARATOR = "==" 

12 

13CACHE_PATH = os.path.join( 

14 os.environ.get("LOCALAPPDATA", os.getcwd()), "intelligence-toolkit-data", "cache" 

15) 

16# create a new directory if it does not exist 

17if not os.path.exists(CACHE_PATH): 

18 os.makedirs(CACHE_PATH) 

19 

20VECTOR_STORE_MAX_RETRIES = 5 

21VECTOR_STORE_MAX_RETRIES_WAIT_TIME = 1