MCPcopy Create free account
hub / github.com/Azure-Samples/llama-index-python / FileLoaderConfig

Class FileLoaderConfig

backend/app/engine/loaders/file.py:9–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7
8
9class FileLoaderConfig(BaseModel):
10 data_dir: str = "data"
11 use_llama_parse: bool = False
12
13 @validator("data_dir")
14 def data_dir_must_exist(cls, v):
15 if not os.path.isdir(v):
16 raise ValueError(f"Directory '{v}' does not exist")
17 return v
18
19
20def llama_parse_parser():

Callers 1

get_documentsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected