Code
pptx_reader.py
Usage
1
Create a virtual environment
Open the
Terminal and create a python virtual environment.2
Install libraries
3
Run PgVector
4
Run Agent
Params
| Parameter | Type | Default | Description |
|---|---|---|---|
file | Union[Path, IO[Any]] | Required | Path to PPTX file or file-like object containing a PowerPoint presentation |
name | Optional[str] | None | Optional name for the document |
chunk | bool | True | Whether to chunk the document |
chunk_size | int | 5000 | Size of chunks when chunking is enabled |
chunking_strategy | Optional[ChunkingStrategy] | DocumentChunking() | Strategy for chunking the document |
encoding | Optional[str] | None | Text encoding to use for reading |