• Function that create new chunk(s). If the chunk has the same tracking_id as an existing chunk, the request will fail. Once a chunk is created, it can be searched for using the search endpoint. If uploading in bulk, the maximum amount of chunks that can be uploaded at once is 120 chunks. Auth’ed user or api key must have an admin or owner role for the specified dataset’s organization.

    Example:

    const data = await trieve.createChunk({
    chunk_html: "<p>Some HTML content</p>",
    metadata: {
    key1: "value1",
    key2: "value2",
    },
    });

    Parameters

    Returns Promise<ReturnQueuedChunk>