# `Twilio.Knowledge.V2.KnowledgeBase.Knowledge.ChunkService`
[🔗](https://github.com/jeffhuen/twilio_elixir/blob/main/lib/twilio/knowledge/v2/knowledge_base/knowledge/chunk_service.ex#L2)

Service for Chunk API operations.

Operations: `list`

# `list`

```elixir
@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

| Parameter | Type | Description |
|-----------|------|-------------|
| `pageSize` | integer | How many resources to return in each list page. The default is 50, and the maximum is 1000. |
| `pageToken` | string | The page token. This is provided by the API. |

# `stream`

```elixir
@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).

---

*Consult [api-reference.md](api-reference.md) for complete listing*
