Skip to content

feat: Folder Iterative Bulk Ingestion; Settings & Envs; Chunks Modification; API_KEY Integration#2

Merged
frankgu968 merged 6 commits intomainfrom
saeid/folder-bulk-ingestion
Mar 9, 2026
Merged

feat: Folder Iterative Bulk Ingestion; Settings & Envs; Chunks Modification; API_KEY Integration#2
frankgu968 merged 6 commits intomainfrom
saeid/folder-bulk-ingestion

Conversation

@saeidalz13
Copy link
Copy Markdown
Contributor

@saeidalz13 saeidalz13 commented Feb 24, 2026

What changed

  • bulk ingestion of folders
  • improvements to folder list
  • test modifications

Example

Dry Run

❯ kscli folders bulk-ingest --dry-run --folder-id 0699003f-ede0-7d8c-8000-b1ee60cf4d96 --extensions .md "/Users/saeid/Documents/cs/projects/ks-cli/docs"
Would ingest: authentication.md
Would ingest: e2e-testing.md
Would ingest: design_patterns.md
Would ingest: configuration.md
Would ingest: ci.md

Summary: 0 folder(s) created
 * 5 file(s) ingested
 * 0 skipped

API Call

❯ kscli folders bulk-ingest  --folder-id 0699003f-ede0-7d8c-8000-b1ee60cf4d96 --extensions .md "/Users/saeid/Documents/cs/projects/ks-cli/docs"
Ingesting: authentication.md ... ok (document_id=?)
Ingesting: e2e-testing.md ... ok (document_id=?)
Ingesting: design_patterns.md ... ok (document_id=?)
Ingesting: configuration.md ... ok (document_id=?)
Ingesting: ci.md ... ok (document_id=?)

Summary: 0 folder(s) created
 * 5 file(s) ingested
 * 0 skipped

Checking the folder content

kscli --format tree folders list --folder-id 0699003f-ede0-7d8c-8000-b1ee60cf4d96 --show-content
├── threads/ [folder] [id:0699003f-ee51-7357-8000-e533f3af3724 path:019c5a8f-9bbc-7b62-9e6f-a1d9c28f0910]
├── Reference Ingestion Document [document, documenttype.docx] [id:06999cb9-754e-7b51-8000-32d98fceebc6 path:06999cb9-8be7-7039-8000-31823be17c43]
├── saeidfeb23/ [folder] [id:0699d226-313d-7fca-8000-766027b416aa path:0699d226-3153-761a-8000-226f472862f8]
├── authentication.md [document, documenttype.md] [id:0699d2bf-df51-769c-8000-bfa1c03758eb path:0699d2bf-ee8d-7ed1-8000-2265432016f3]
├── e2e-testing.md [document, documenttype.md] [id:0699d2bf-f3f9-7524-8000-d8086d66377d path:0699d2bf-f910-7304-8000-e05b4f9c41d5]
├── design_patterns.md [document, documenttype.md] [id:0699d2bf-fdc7-7eae-8000-01e5d159d859 path:0699d2c0-02f3-73d2-8000-4523b04d1b6f]
├── configuration.md [document, documenttype.md] [id:0699d2c0-0789-74dc-8000-aa43ce267dcc path:0699d2c0-0c84-7858-8000-c8193d686233]
└── ci.md [document, documenttype.md] [id:0699d2c0-1018-7e3e-8000-8b11f237111a path:0699d2c0-151a-7631-8000-fd984c780111]

@saeidalz13 saeidalz13 self-assigned this Feb 24, 2026
Comment thread src/kscli/commands/folders.py Outdated
@click.option("--offset", type=int, default=0)
@click.pass_context
def list_folders(ctx, parent_path_part_id, show_content, folder_id, max_depth, sort_order, limit, offset):
def list_folders(ctx, parent_path_part_id, show_content, folder_id, max_depth, sort_order, with_tags, limit, offset):
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Used to be

❯ kscli --format tree folders list --folder-id 0699003f-ede0-7d8c-8000-b1ee60cf4d96
├── threads/ [folder] [path:019c5a8f-9bbc-7b62-9e6f-a1d9c28f0910]
└── saeidfeb23/ [folder] [path:0699d226-3153-761a-8000-226f472862f8]

Now is:

❯ kscli --format tree folders list --folder-id 0699003f-ede0-7d8c-8000-b1ee60cf4d96
├── threads/ [folder] [id:0699003f-ee51-7357-8000-e533f3af3724 path:019c5a8f-9bbc-7b62-9e6f-a1d9c28f0910]
└── saeidfeb23/ [folder] [id:0699d226-313d-7fca-8000-766027b416aa path:0699d226-3153-761a-8000-226f472862f8]

Copy link
Copy Markdown
Contributor Author

@saeidalz13 saeidalz13 Feb 24, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also it didn't show the contents of the folder by default. When we're passing the folder ID/path part ID, it should be implied that we wanna see what's in there, similar to ls

@saeidalz13 saeidalz13 marked this pull request as ready for review February 24, 2026 05:17
@frankgu968 frankgu968 changed the title feat; Folder Iterative Bulk Ingestion feat: Folder Iterative Bulk Ingestion Mar 4, 2026
@saeidalz13 saeidalz13 changed the title feat: Folder Iterative Bulk Ingestion feat: Folder Iterative Bulk Ingestion; Settings & Envs; Chunks Modification; API_KEY Integration Mar 7, 2026
@frankgu968 frankgu968 merged commit dbb7ecc into main Mar 9, 2026
3 checks passed
@frankgu968 frankgu968 deleted the saeid/folder-bulk-ingestion branch March 9, 2026 02:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants