Semantic Chunker

Splits text into chunks based on semantic similarity, ensuring that related content stays together in the same chunk.

post/v1/chunk/semantic

Response

Successful Response: A list of SemanticChunk objects.

textstring

The actual text content of the chunk.

start_indexinteger

The starting character index of the chunk within the original input text.

end_indexinteger

The ending character index (exclusive) of the chunk within the original input text.

token_countinteger

The number of tokens in this specific chunk, according to the tokenizer used.

Changes

Changed in 10 of the 20 revisions of this API.141426

    • endpoint added

      endpoint-added

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • api removed without deprecation

      api-removed-without-deprecation

    This revision also has 19 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • the delim request property default value changed from . ! ? to . ! ?

      request-property-default-value-changed

    • the min_characters_per_sentence request property default value changed from 1 to 12

      request-property-default-value-changed

    • the min_chunk_size request property default value 2 was removed

      request-property-default-value-removed

    • removed the request property text

      request-property-removed

  • b5fe83cf70c611See the full diff
    • removed the media type application/json from the request body

      request-body-media-type-removed

    • added the media type multipart/form-data to the request body

      request-body-media-type-added

    • request property return_type was restricted to a list of enum values

      request-property-became-enum

    • added the new chunks enum value to the request property return_type

      request-property-enum-value-added

    • added the new texts enum value to the request property return_type

      request-property-enum-value-added

    • the request property chunk_size became optional

      request-property-became-optional

  • a9d5b6b906759111See the full diff
    • the response property items/end_index became optional for the status 200

      response-property-became-optional

    • the response property items/sentences became optional for the status 200

      response-property-became-optional

    • the response property items/sentences/items/end_index became optional for the status 200

      response-property-became-optional

    • the response property items/sentences/items/start_index became optional for the status 200

      response-property-became-optional

    • the response property items/sentences/items/text became optional for the status 200

      response-property-became-optional

    • the response property items/sentences/items/token_count became optional for the status 200

      response-property-became-optional

    • the response property items/start_index became optional for the status 200

      response-property-became-optional

    • the response property items/text became optional for the status 200

      response-property-became-optional

    • the response property items/token_count became optional for the status 200

      response-property-became-optional

    • removed the request property args

      request-property-removed

    • added the new optional request property delim

      new-optional-request-property

    • added the new optional request property embedding_model

      new-optional-request-property

    • added the new optional request property include_delim

      new-optional-request-property

    • added the new optional request property min_characters_per_sentence

      new-optional-request-property

    • added the new optional request property min_chunk_size

      new-optional-request-property

    • added the new optional request property min_sentences

      new-optional-request-property

    • added the new optional request property return_type

      new-optional-request-property

    • added the new optional request property similarity_window

      new-optional-request-property

    • added the new optional request property threshold

      new-optional-request-property

    • added the new optional request property threshold_step

      new-optional-request-property

    • added the new required request property chunk_size with a default value

      new-required-request-property-with-default

    • removed the non-success response with the status 401

      response-non-success-status-removed

    • removed the non-success response with the status 422

      response-non-success-status-removed

    • removed the non-success response with the status 500

      response-non-success-status-removed

    • added the required property items/sentences to the response with the 200 status

      response-required-property-added

  • c791be50601b2123See the full diff
    • added the new required request property args

      new-required-request-property

    • the response's body type/format changed from / to array/ for status 200

      response-body-type-changed

    • deleted the header request parameter authorization

      request-parameter-removed

    • removed the request property chunk_size

      request-property-removed

    • removed the request property delim

      request-property-removed

    • removed the request property embedding_model

      request-property-removed

    • removed the request property include_delim

      request-property-removed

    • removed the request property min_characters_per_sentence

      request-property-removed

    • removed the request property min_chunk_size

      request-property-removed

    • removed the request property min_sentences

      request-property-removed

    • removed the request property return_type

      request-property-removed

    • removed the request property similarity_window

      request-property-removed

    • removed the request property threshold

      request-property-removed

    • removed the request property threshold_step

      request-property-removed

    • removed ErrorRES subschema #1 subschema #2 subschema #3 subschema #4 from the response body anyOf list for the response status 200

      response-body-any-of-removed

    • added the non-success response with the status 401

      response-non-success-status-added

    • added the non-success response with the status 500

      response-non-success-status-added