This is a simple web api that uses OpenAI's Embeddings to search woocommerce products in a Postgresql database.
- cd /wordpress
- Run
docker-compose up -d
to install wordpress - Launch
http://localhost:8060
- Install woocommerce plugin / Check flag to import sample data
- Generate ApiKey/ApiSecret through woocommerce->Advanced->Rest API
- Set appsettings.json or secrets.json accordingly
- cd /vectordb
- Run
docker-compose up -d
to install postgresql
- Generate OpenAI ApiKey
https://platform.openai.com/account/api-keys
- Set appsettings.json or secrets.json accordingly
- Run F5 / go to
https://localhost:<port>/swagger/index.html
- Invoke
/api/woocommerce
to check if connection with woocommerce is correct - Invoke
/api/embeddings/sync
to create products posts embeddings
- Invoke
/api/woocommerce/search?term=belt