Update ingest.py
Co-authored-by: Bailey Matthews <bailey@hey.com>
This commit is contained in:
		
							parent
							
								
									db341e2a40
								
							
						
					
					
						commit
						e9b31f7dd9
					
				|  | @ -97,7 +97,7 @@ def load_documents(source_dir: str, ignored_files: List[str] = []) -> List[Docum | ||||||
|     all_files = [] |     all_files = [] | ||||||
|     for ext in LOADER_MAPPING: |     for ext in LOADER_MAPPING: | ||||||
|         all_files.extend( |         all_files.extend( | ||||||
|         glob.glob(os.path.join(source_dir, f"**/*{ext}"), recursive=True) |             glob.glob(os.path.join(source_dir, f"**/*{ext}"), recursive=True) | ||||||
|         ) |         ) | ||||||
|     filtered_files = [file_path for file_path in all_files if file_path not in ignored_files] |     filtered_files = [file_path for file_path in all_files if file_path not in ignored_files] | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue