Create a sample batch configuration file.
()
| 312 | |
| 313 | |
| 314 | def create_sample_batch_config(): |
| 315 | """Create a sample batch configuration file.""" |
| 316 | sample_config = { |
| 317 | "index_name": "Sample Batch Index", |
| 318 | "index_description": "Example batch index configuration", |
| 319 | "documents": [ |
| 320 | "./rag_system/documents/invoice_1039.pdf", |
| 321 | "./rag_system/documents/invoice_1041.pdf" |
| 322 | ], |
| 323 | "processing": { |
| 324 | "chunk_size": 512, |
| 325 | "chunk_overlap": 64, |
| 326 | "enable_enrich": True, |
| 327 | "enable_latechunk": True, |
| 328 | "enable_docling": True, |
| 329 | "embedding_model": "Qwen/Qwen3-Embedding-0.6B", |
| 330 | "generation_model": "qwen3:0.6b", |
| 331 | "retrieval_mode": "hybrid", |
| 332 | "window_size": 2 |
| 333 | } |
| 334 | } |
| 335 | |
| 336 | with open("batch_indexing_config.json", "w") as f: |
| 337 | json.dump(sample_config, f, indent=2) |
| 338 | |
| 339 | print("📄 Sample batch configuration created: batch_indexing_config.json") |
| 340 | |
| 341 | |
| 342 | def main(): |