Twilio.Knowledge.V2.KnowledgeBase.Knowledge.ChunkService (twilio_elixir v0.1.3)

Copy Markdown View Source

Service for Chunk API operations.

Operations: list

Summary

Functions

Stream: Retrieve a paginated list of all processed content chunks from a specific knowledge source. Chunks are smaller segments of content that have been extracted and processed from the original knowledge source. Each chunk contains content text and associated metadata that can be used for semantic search and retrieval operations. (lazy auto-pagination).

Functions

list(client, kb_id, knowledge_id, params \\ %{}, opts \\ [])

@spec list(Twilio.Client.t(), String.t(), String.t(), map(), keyword()) ::
  {:ok, Twilio.Page.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}

credo:disable-for-next-line Credo.Check.Readability.MaxLineLength

Retrieve a paginated list of all processed content chunks from a specific knowledge source. Chunks are smaller segments of content that have been extracted and processed from the original knowledge source. Each chunk contains content text and associated metadata that can be used for semantic search and retrieval operations.

Operation: ListKnowledgeChunks | Tags: Knowledge

Query Parameters

ParameterTypeDescription
pageSizeintegerHow many resources to return in each list page. The default is 50, and the maximum is 1000.
pageTokenstringThe page token. This is provided by the API.

stream(client, kb_id, knowledge_id, params \\ %{}, opts \\ [])

@spec stream(Twilio.Client.t(), String.t(), String.t(), map(), keyword()) ::
  Enumerable.t()

Stream: Retrieve a paginated list of all processed content chunks from a specific knowledge source. Chunks are smaller segments of content that have been extracted and processed from the original knowledge source. Each chunk contains content text and associated metadata that can be used for semantic search and retrieval operations. (lazy auto-pagination).