Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnauthorizedException issue when Pinecone.from_documents() #2

Open
yanliu1111 opened this issue Mar 24, 2024 · 0 comments
Open

UnauthorizedException issue when Pinecone.from_documents() #2

yanliu1111 opened this issue Mar 24, 2024 · 0 comments

Comments

@yanliu1111
Copy link

Hi I found the pinecode connection has unauthorized issue, took some time and got solutions, hope it can help other learners.

  1. If you use free tier in Pinecone, the ENV set like this:
    PINECONE_API_ENV="us-central1-gcp"
  2. from langchain_pinecone import PineconeVectorStore caused UnauthorizedException issue, when I changed the following, it works well.
from langchain_pinecone import Pinecone

import os 
os.environ['PINECONE_API_KEY'] = "PINECONE_API_KEY"
index_name = "youtube-index"

pinecone = Pinecone.from_documents(         index_name = index_name, 
                                            documents = documents, 
                                            embedding = embeddings)

Thank you for this tutorial.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant