Open
Description
Is this a new bug?
- I believe this is a new bug
- I have searched the existing issues, and I could not find an existing issue for this bug
Current Behavior
I just cloned the repo and set up .env
OPENAI_API_KEY=sk-...
Retrieve the following from the Pinecone Console.
Navigate to API Keys under your Project to retrieve the API key and environment
PINECONE_API_KEY=17...
PINECONE_REGION=us-west-2
PINECONE_CLOUD=aws
Navigate to Indexes under your Project to retrieve the Index name
PINECONE_INDEX=pinecone-vercel-starter
The index is newly created with serverless. Looks like the API endpoint is not the same provided by the index
https://pinecone-vercel-starter...pinecone.io
Can we use serverless indexes now?
Expected Behavior
should work
Steps To Reproduce
-
git clone https://github.com/pinecone-io/pinecone-rag-demo.git
-
cd pinecone-rag-demo
-
npm install
-
set up .env file with a serverless index name
OPENAI_API_KEY=sk-...
Retrieve the following from the Pinecone Console.
Navigate to API Keys under your Project to retrieve the API key and environment
PINECONE_API_KEY=17...
PINECONE_REGION=us-west-2
PINECONE_CLOUD=aws
-
npm run dev
-
browser to http://localhost:3000
Relevant log output
> [email protected] dev
> next dev
▲ Next.js 14.0.4
- Local: http://localhost:3000
- Environments: .env
✓ Ready in 989ms
✓ Compiled /src/middleware in 145ms (64 modules)
○ Compiling / ...
✓ Compiled / in 6s (2847 modules)
⚠ Fast Refresh had to perform a full reload due to a runtime error.
✓ Compiled /api/checkIndex in 118ms (1462 modules)
✓ Compiled (1651 modules)
⨯ PineconeNotFoundError: A call to https://api.pinecone.io/indexes/pinecone-vercel-starter returned HTTP status 404.
at mapHttpStatusError (webpack-internal:///(rsc)/./node_modules/@pinecone-database/pinecone/dist/errors/http.js:183:20)
at eval (webpack-internal:///(rsc)/./node_modules/@pinecone-database/pinecone/dist/errors/handling.js:170:55)
at step (webpack-internal:///(rsc)/./node_modules/@pinecone-database/pinecone/dist/errors/handling.js:107:23)
at Object.eval [as next] (webpack-internal:///(rsc)/./node_modules/@pinecone-database/pinecone/dist/errors/handling.js:48:20)
at fulfilled (webpack-internal:///(rsc)/./node_modules/@pinecone-database/pinecone/dist/errors/handling.js:11:32)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
cause: undefined
}
Environment
- **OS**: ubuntn 20.04
- **Language version**: node v20.11
- **Pinecone client version**:
"@pinecone-database/doc-splitter": "^0.0.1",
"@pinecone-database/pinecone": "2.0.0",
Additional Context
No response