@@ -163,7 +163,10 @@ python manage.py makemigrations data
163163python manage.py migrate data
164164
165165# Ingest documents into a topic
166- python manage.py ingest documentation ./docs/* .pdf
166+ python manage.py ingest documentation ./data/documentation/* .pdf
167+
168+ # Ingest documents into a nested topic
169+ python manage.py ingest documentation/tutorials ./data/documentation/tutorials/* .pdf
167170```
168171
169172---
@@ -297,6 +300,14 @@ python manage.py ingest <topic> <files...> [options]
297300- ` topic ` : Topic path (e.g., ` documentation ` or ` parent/child/topic ` )
298301- ` files ` : Files, directories, or glob patterns to ingest
299302
303+ Use slash-separated paths for nested topics. For example, if you created ` tutorials ` under
304+ ` documentation ` with ` starttopic tutorials --path documentation ` , ingest into it with
305+ ` documentation/tutorials ` .
306+
307+ For a topic-aligned workflow, place files under ` data/<topic-path>/ ` and ingest from that
308+ folder (for example, ` ./data/documentation/*.pdf ` or
309+ ` ./data/documentation/tutorials/*.pdf ` ).
310+
300311** Options:**
301312- ` --doc-type ` : Document type (defaults to ` Text Document ` )
302313- ` --ingestion-config ` : Name of an ingestion config from ` data/ingestion.py `
@@ -313,13 +324,16 @@ python manage.py ingest <topic> <files...> [options]
313324** Examples:**
314325``` bash
315326# Ingest PDF files
316- python manage.py ingest documentation ./docs/* .pdf
327+ python manage.py ingest documentation ./data/documentation/* .pdf
328+
329+ # Ingest into a child topic
330+ python manage.py ingest documentation/tutorials ./data/documentation/tutorials/* .pdf
317331
318332# Ingest with custom config
319- python manage.py ingest documentation ./docs / --ingestion-config HighQuality
333+ python manage.py ingest documentation ./data/documentation / --ingestion-config HighQuality
320334
321335# Dry run to preview
322- python manage.py ingest documentation ./data/ --dry-run
336+ python manage.py ingest documentation ./data/documentation/ --dry-run
323337```
324338
325339### ` topics `
@@ -613,7 +627,7 @@ from cogsol.content import BaseIngestionConfig, PDFParsingMode, ChunkingMode
613627Use with the ` ingest ` command:
614628
615629``` bash
616- python manage.py ingest documentation ./docs / --ingestion-config high_quality
630+ python manage.py ingest documentation ./data/documentation / --ingestion-config high_quality
617631```
618632
619633#### Reference Formatters
0 commit comments