1
Create a Python file
2
Add the following code to your Python file
fixed_size_chunking.py
3
Create a virtual environment
Open the
Terminal and create a python virtual environment.4
Install libraries
5
Run PgVector
6
Run the script
Fixed Size Chunking Params
| Parameter | Type | Default | Description |
|---|---|---|---|
chunk_size | int | 5000 | The maximum size of each chunk. |
overlap | int | 0 | The number of characters to overlap between chunks. |