Skip to content

Comments

fix: Update Context Grounding SDK Contract#1355

Open
JeremyReist2 wants to merge 4 commits intomainfrom
fix/context-SDK-contract
Open

fix: Update Context Grounding SDK Contract#1355
JeremyReist2 wants to merge 4 commits intomainfrom
fix/context-SDK-contract

Conversation

@JeremyReist2
Copy link

@JeremyReist2 JeremyReist2 commented Feb 20, 2026

  • we have removed PreProcessing and Fields
  • we have added extraction_strategy, embeddings_enabled, is_encrypted

v2.9.0

Breaking Changes
Context Grounding API: Simplified Index Configuration
The Context Grounding SDK has been updated to align with the OData v2.0 Index API contract. The PreProcessing OData-typed object and fields array have been removed in favor of simpler top-level fields.

Removed classes:
PreProcessing
ContextGroundingField

Removed ContextGroundingIndex fields:
pre_processing
fields

Removed create_index() / create_index_async() parameters:
advanced_ingestion
preprocessing_request

New create_index() / create_index_async() parameters:
extraction_strategy: Optional[str] — "NativeV1" or "LLMV4" (defaults to NativeV1 server-side)
embeddings_enabled: Optional[bool] — Whether to generate embeddings (defaults to true server-side)
is_encrypted: Optional[bool] — Whether to encrypt the index (defaults to false server-side)

Migration example:

# Before
index = cg.create_index(
    name="my-index",
    source=bucket_source,
    advanced_ingestion=True,
)

# After
index = cg.create_index(
    name="my-index",
    source=bucket_source,
    extraction_strategy="LLMV4",
)

@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 Feb 20, 2026
preprocessing_request: Optional[str] = LLMV4_REQUEST,
extraction_strategy: Optional[str] = None,
embeddings_enabled: Optional[bool] = None,
is_encrypted: Optional[bool] = None,
Copy link
Member

Choose a reason for hiding this comment

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

This is a breaking-change in the public contracts. You need to increment minor and release notes

Copy link
Member

Choose a reason for hiding this comment

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

I think it's best if we wait a bit for the uipath-platform refactor and include this change with that PR @radu-mocanu

default=None, alias="dataSource"
)
pre_processing: Any = Field(default=None, alias="preProcessing")
fields: Optional[List[ContextGroundingField]] = Field(default=None, alias="fields")
Copy link
Collaborator

Choose a reason for hiding this comment

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

are the changes deployed to all rings? pydantic validation will fail otherwise

Copy link
Author

@JeremyReist2 JeremyReist2 Feb 20, 2026

Choose a reason for hiding this comment

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

we have done it in stages - right now we have both new and old, but want to now drop old (preProcessing, and fields)

Copy link
Collaborator

@radu-mocanu radu-mocanu left a comment

Choose a reason for hiding this comment

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

let s wait a bit with this PR
we are preparing a big refactor -> extracting platform module into another library. we will need to cherry pick those changes there, once this PR is merged

@cfauchere
Copy link

let s wait a bit with this PR we are preparing a big refactor -> extracting platform module into another library. we will need to cherry pick those changes there, once this PR is merged

Why not creating a new branch for that? Timeline?

@radu-mocanu
Copy link
Collaborator

radu-mocanu commented Feb 20, 2026

Why not creating a new branch for that? Timeline?

already did #1354. since this PR contains breaking changes we can increase minor only once.

will merge those changes on Monday

Copy link
Collaborator

@radu-mocanu radu-mocanu left a comment

Choose a reason for hiding this comment

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

changes cherry picked 🍒 https://github.com/UiPath/uipath-platform-python/pull/2/changes/88032b69340ea118b05ac103620682e5c5c9042d

@JeremyReist2 we can keep the sdk reference changes and merge them after the above mentioned PR

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.

4 participants