Skip to content

feat(context-grounding): overhaul CLI with named options and ephemeral support#1530

Merged
pateljay43 merged 3 commits intomainfrom
feat/context-grounding-cli-overhaul
Mar 31, 2026
Merged

feat(context-grounding): overhaul CLI with named options and ephemeral support#1530
pateljay43 merged 3 commits intomainfrom
feat/context-grounding-cli-overhaul

Conversation

@pateljay43
Copy link
Copy Markdown
Contributor

@pateljay43 pateljay43 commented Mar 30, 2026

Summary

  • Rewrites the context-grounding CLI from feat: context grounding CLI #1523 with explicit named options (--index-name, --index-id, --task-name, --task-id, --query, --output-file) — eliminates all ambiguous positional arguments
  • Adds dual index flow: --index-name + --folder-path for regular indexes, --index-id for ephemeral indexes
  • Adds 8 new commands: create, create-ephemeral, source-schema, deep-rag start/retrieve, batch-transform start/retrieve/download
  • Uses unified_search (v1.2) instead of deprecated search, list_indexes instead of list (avoids builtin shadowing)
  • source-schema command generates JSON templates from Pydantic models at runtime — never drifts from types
  • Updated contract tests (11) and integration tests (47), all passing

Test plan

  • All 1741 CLI tests pass (uv run pytest tests/cli/)
  • 11 contract tests verify CLI-SDK alignment for all context-grounding commands
  • 47 integration tests cover happy paths, error paths, and validation for every command
  • Manual smoke test with live UiPath environment

🤖 Generated with Claude Code

@github-actions github-actions Bot added test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-llamaindex Triggers tests in the uipath-llamaindex-python repository labels Mar 30, 2026
@pateljay43 pateljay43 marked this pull request as draft March 30, 2026 16:56
@pateljay43 pateljay43 force-pushed the feat/context-grounding-cli-overhaul branch 6 times, most recently from d6cc05b to 23b9136 Compare March 30, 2026 18:41
@pateljay43 pateljay43 marked this pull request as ready for review March 30, 2026 19:45
@pateljay43 pateljay43 marked this pull request as draft March 30, 2026 19:45
@pateljay43 pateljay43 force-pushed the feat/context-grounding-cli-overhaul branch 5 times, most recently from 3e96255 to bc67f31 Compare March 30, 2026 22:10
…l support

Rewrites the context-grounding CLI with explicit named options,
ephemeral index support, and full command coverage.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@pateljay43 pateljay43 force-pushed the feat/context-grounding-cli-overhaul branch from bc67f31 to bbfb170 Compare March 30, 2026 22:14
@pateljay43 pateljay43 marked this pull request as ready for review March 30, 2026 22:14
Remove duplicate decorators on ingest_by_name, use safe .get("value", [])
in list_indexes/list_indexes_async, and drop redundant folder_key
re-resolution in _list_spec.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@pateljay43 pateljay43 enabled auto-merge (squash) March 31, 2026 16:06
Copy link
Copy Markdown
Member

@DragosBobolea DragosBobolea left a comment

Choose a reason for hiding this comment

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

minor issues

Comment thread packages/uipath/src/uipath/_cli/services/cli_context_grounding.py Outdated
Comment thread packages/uipath/src/uipath/_cli/services/cli_context_grounding.py Outdated
Remove unused BucketSourceConfig import and use model_validate() instead
of direct constructor for robust nested model parsing.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@pateljay43 pateljay43 merged commit 0caff95 into main Mar 31, 2026
126 checks passed
@pateljay43 pateljay43 deleted the feat/context-grounding-cli-overhaul branch March 31, 2026 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-llamaindex Triggers tests in the uipath-llamaindex-python repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants