mirror of
https://github.com/zylon-ai/private-gpt.git
synced 2025-12-22 07:40:12 +01:00
Update ingest.py
Co-authored-by: Bailey Matthews <bailey@hey.com>
This commit is contained in:
parent
db341e2a40
commit
e9b31f7dd9
1 changed files with 1 additions and 1 deletions
|
|
@ -97,7 +97,7 @@ def load_documents(source_dir: str, ignored_files: List[str] = []) -> List[Docum
|
|||
all_files = []
|
||||
for ext in LOADER_MAPPING:
|
||||
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]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue