Closed iampapagray closed 1 year ago
I've been searching through Pinecone docs for a solution and i found out that
Indexes in the [gcp-starter environment](https://docs.pinecone.io/docs/starter-environment) do not support namespaces.
Whiles creating my Index in Pinecone the only option available to me (Free Plan) is the Starter (which uses 'gcp-starter' environment).
This seems to be the reason for the error above.
Anyone know a way around this? since we will need the namespace (File ID) in order to search for indexes. How else can a unique id be passed to Pinecode?
Follow this step on Pinecone:
Delete your Index, Delete Your Organization and, Create new Organization and Index . And, You're all Good! 👋
This will solve your problem: https://gist.github.com/anand-mukul/1a813bd686f7faff2e1793b6580fa539
Follow this step on Pinecone:
Delete your Index, Delete Your Organization and, Create new Organization and Index . And, You're all Good! 👋
This will solve your problem: https://gist.github.com/anand-mukul/1a813bd686f7faff2e1793b6580fa539
ALright. Thanks. Let me try that real quick.
Got a new environment. Thanks
@anand-mukul After getting the new environment, i am unable to test the app anymore. The dashboard page gets stuck on Loading. When i try uploading a file, i get stuck at Redirecting...
Even though the file is uploaded and the record saved in the DB. Pinecode also works correctly as the status of the file is updated to SUCCESS.
I added some logs to the TRPC routes and noticed that they are not been called. I'm not sure what caused this.
Please share more details such as console image or error message also, verify the Pinecone Index and Environment Name.
@anand-mukul The pinecone details are correct and I can verify that the vectors are being stored on pinecone. There are also no console logs in the browser or the terminal.
I'll restart my laptop and retry and let you know if it still persists.
After restarting the computer everything seems to work as expected.
Also, you need to comment out namespace
from these
await PineconeStore.fromDocuments(
pageLevelDocs,
embeddings,
{
pineconeIndex,
// namespace: createdFile.id,
}
)
While testing Pinecone within
api/uploadthing/core.ts
i get the error:core.ts :
I can verify that the content of
lib/pinecone.ts
is correct (apikey and environment). How can i resolve this and continue learning?