mirror of
				https://github.com/deepset-ai/haystack.git
				synced 2025-10-30 17:29:29 +00:00 
			
		
		
		
	 af4a44fcbd
			
		
	
	
		af4a44fcbd
		
			
		
	
	
	
	
		
			
			* Add rest api endpoint to delete documents by filter. * Remove parametrization of rest api tests * Make the paths in rest_api/config.py absolute * Fix path to pipelines.yaml * Restructuring test_rest_api.py to be able to test only my endpoint (and to make the suite more structured) * Convert DELETE /documents into POST /documents/delete_by_filters Co-authored by: sarthakj2109 <54064348+sarthakj2109@users.noreply.github.com>
		
			
				
	
	
		
			15 lines
		
	
	
		
			575 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			575 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| import os
 | |
| from pathlib import Path
 | |
| 
 | |
| 
 | |
| PIPELINE_YAML_PATH = os.getenv("PIPELINE_YAML_PATH", str((Path(__file__).parent / "pipeline" / "pipelines.yaml").absolute()))
 | |
| QUERY_PIPELINE_NAME = os.getenv("QUERY_PIPELINE_NAME", "query")
 | |
| INDEXING_PIPELINE_NAME = os.getenv("INDEXING_PIPELINE_NAME", "indexing")
 | |
| 
 | |
| FILE_UPLOAD_PATH = os.getenv("FILE_UPLOAD_PATH", str((Path(__file__).parent / "file-upload").absolute()))
 | |
| 
 | |
| LOG_LEVEL = os.getenv("LOG_LEVEL", "INFO")
 | |
| ROOT_PATH = os.getenv("ROOT_PATH", "/")
 | |
| 
 | |
| CONCURRENT_REQUEST_PER_WORKER = int(os.getenv("CONCURRENT_REQUEST_PER_WORKER", 4))
 |