Skip to content

Search Index Chunking contract #94

Open
ritaagarwala-sf wants to merge 18 commits intomainfrom
chunking_contract
Open

Search Index Chunking contract #94
ritaagarwala-sf wants to merge 18 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

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.

1 participant