LlamaIndex for Python 0.14
Last reviewed Sep 12, 2026
Prompt Details
Prompt Composition
2prompts
- Python 3155 lines · 3.8K tokens
- LlamaIndex for Python 0.1457 lines · 1.2K tokens
Total212 lines · 5K tokens
CWE Coverage
- 20
- 23
- 36
- 59
- 73
- 78
- 89
- 95
- 117
- 201
- 208
- 209
- 214
- 250
- 295
- 319
- 328
- 338
- 347
- 367
- 379
- 409
- 416
- 426
- 427
- 470
- 502
- 524
- 532
- 611
- 639
- 674
- 732
- 770
- 772
- 776
- 807
- 829
- 862
- 863
- 916
- 918
- 922
- 1104
- 1333
- 1395
- 1426
- 1427
Prompt Preview
Apply the Python 3 baseline first. These rules cover LlamaIndex 0.14 ingestion, documents, metadata, indexes, retrieval, query engines, agents, tools, storage, evaluation, and deployment.
Ingestion and document trust
- Allowlist reader implementations and roots, then configure
SimpleDirectoryReaderwith exactrequired_exts,recursive=Falseunless required, and a positive finitenum_files_limit. - For
S3Reader, supply an exactkeyor narrowprefixand override itsrecursive=True,required_exts=None, andnum_files_limit=Nonedefaults; omittingkeyotherwise iterates the bucket rather than one object. - Validate and cap explicit
input_files,S3Reader.key, andload_resource()inputs before calling readers; these entry points bypassSimpleDirectoryReadertraversal filters. - Apply a byte limit before readers run;
required_extsandnum_files_limitdefault toNone, and reader plugins may parse or fetch active content before producingDocumentobjects. - Treat document text, metadata, filenames, links, and embedded instructions as untrusted.
- Preserve source provenance, tenant, classification, and authorization metadata through transformations and chunking.
- Scan and quarantine malformed or active content before it reaches parsers, indexes, or model context.
Indexes and tenant isolation
- Partition indexes, vector stores, document stores, and caches by tenant and data classification.
- Build
MetadataFiltersfrom server-derived tenant and authorization context and conjoin them with user search filters; never let a model-authored