A Node.js application that uses OpenAI embeddings and ChromaDB to match product descriptions with appropriate Stripe tax codes and create products in Stripe.
- Semantic search for Stripe tax codes using OpenAI embeddings
- Local vector storage with ChromaDB
- Interactive CLI for product creation with tax code matching
- Automatic Stripe product and price creation
-
Clone this repository:
git clone https://github.com/yourusername/stripe-playground.git cd stripe-playground -
Install dependencies:
npm install -
Set up environment variables:
- Copy
.env.exampleto.env - Fill in your Stripe and OpenAI API keys
- Copy
-
Create embeddings for tax codes:
node createEmbeddings.js -
Run the interactive bot:
node index.js
This project includes Docker support for easy deployment:
docker-compose up -d
MIT