Github
  • Preparing search index...
  • The search index is not available
Trieve Typescript SDK - v0.0.97
  • Trieve Typescript SDK
  • File Methods
  • scrollFiles

Function scrollFiles

  • scrollFiles(data, signal?): Promise<GetFilesCursorResponseBody>
  • Scroll through the files along with their groups in a dataset. This is useful for paginating through files. The cursor is used to fetch the next page of files. The page size is used to specify how many files to fetch per page. The default page size is 10.

    Example:

     *const data = await trieve.getFilesForDataset({
    cursor: "a1a2a3a4-b1b2-c1c2-d1d2-d3d4d5d6d7d8",
    });

    Parameters

    • data: Omit<Omit<GetFilesCursorHandlerData, "datasetId">, "trDataset">
    • Optionalsignal: AbortSignal

    Returns Promise<GetFilesCursorResponseBody>

    • Defined in clients/ts-sdk/src/functions/file/index.ts:91

Settings

Member Visibility
Github
Trieve Typescript SDK - v0.0.97
  • Loading...

Generated using TypeDoc

Please reach out if you'd like assistance; we are responsive! Contact humans@trieve.ai or see trieve.ai for links to Discord and Matrix.