Skip to main content
CSVReader parses the records, then RowChunking creates one chunk for each non-empty normalized row and records its logical row number in metadata.
1

Create a Python file

csv_row_chunking.py
2

Set up your virtual environment

3

Install dependencies

4

Export your OpenAI API key

Set OpenAI Key

Set your OPENAI_API_KEY as an environment variable. You can get one from OpenAI.
5

Run PgVector

6

Run the script

CSV Row Chunking Params

Developer Resources