Showcase how to implement a vectorized search using PostgreSQL and Python.
- Docker-compose setup for PostgreSQL with pgvector extension
- Python code to insert data into the database
- Python code to create a vectorized search using pgvector
- Clone this repository to your local machine.
- Install the required dependencies using the following command:
pip install -r requirements.txt
- Run the following command to set up the database (you have Docker installed, right?)
docker-compose up -d
- Run the script
add_test_data.py
to insert some data into the database: - Run the script
test_search.py
to test a vectorized search.