mirror of
https://github.com/ParisNeo/lollms.git
synced 2025-02-01 08:48:19 +00:00
Update lollms_file_system.py
This commit is contained in:
parent
fa66706061
commit
9a47685a8c
@ -134,7 +134,7 @@ def select_rag_database() -> Optional[Dict[str, Path]]:
|
||||
vdb = VectorDatabase(Path(folder_path)/"db_name.sqlite", v)
|
||||
# Get all files in the folder
|
||||
folder = Path(folder_path)
|
||||
file_types = ['*.txt', '*.pdf', '*.docx', '*.pptx', '*.msg']
|
||||
file_types = [f"*{f}" for f in TextDocumentsLoader.get_supported_file_types]
|
||||
files = []
|
||||
for file_type in file_types:
|
||||
files.extend(folder.glob(file_type))
|
||||
|
Loading…
x
Reference in New Issue
Block a user