1
Create a Python file
2
Add the following code to your Python file
agentic_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
Agentic Chunking Params
| Parameter | Type | Default | Description |
|---|---|---|---|
model | Model | OpenAIChat | The model to use for chunking. |
max_chunk_size | int | 5000 | The maximum size of each chunk. |