Skip to content

Search Index Chunking contract #94

Merged
ritaagarwala-sf merged 19 commits intomainfrom
chunking_contract
May 4, 2026
Merged

Search Index Chunking contract #94
ritaagarwala-sf merged 19 commits intomainfrom
chunking_contract

Conversation

@ritaagarwala-sf
Copy link
Copy Markdown
Collaborator

@ritaagarwala-sf ritaagarwala-sf commented May 1, 2026

datacustomcode init --code-type function ( SearchIndexChunking is default use-in-feature )
Creates a function with below signature:

def function(request: SearchIndexChunkingV1Request, runtime: Runtime) -> SearchIndexChunkingV1Response:

And generates a test.json reading the signature of function. Sample test.json will look like below:

{
"input": [
{
"text": "sample_text",
"metadata": {}
}
],
"max_characters": 100,
"additional_params": {}
}

Customer can test function with below command:
datacustomcode run ./payload/entrypoint.py --test-with payload/tests/test.json

Comment thread src/datacustomcode/template.py
Comment thread src/datacustomcode/run.py
@ritaagarwala-sf ritaagarwala-sf merged commit da5062c into main May 4, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants