Use Cloudflare KV with OpenAI Text Embedding and Pinecone Vector Database.
npm install kvecUse Cloudflare KV with OpenAI Text Embedding and Pinecone Vector Database.
!icon
You should set up the following environment variables:
- PINECONE_API_KEY: API access key for Pinecone
- PINECONE_ENDPOINT: The endpoint of your Pinecone index
- OPENAI_API_KEY: API access key for OpenAI
- APP_SECRET: Secret for signing JWT tokens
And bind a KV namespace:
- KV: KV namespace to use