-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
GPTSimpleVectorIndex throwing #617
Comments
could you try generating a new openai api key, running the above cell, and seeing if the issue still persists? |
@jerryjliu That's the first thing that I did. |
hmm. could you try setting export OPENAI_API_KEY= in the terminal, and then running those commands in a python interpreter? |
@mrsmirf bump on this |
@mrsmirf going to close for now, feel free to reopen if you have an update on the issue |
I'm also experience this issue while trying to use a custom LLM (instead of the OpenAI API) Below is a minimum working example using the Paul Graham essay as the document.
|
Hi @jerryjliu . I have the same error while following your tutorial on Medium: https://app.pinecone.io/organizations/-NRbDE2qTz4DKjcRqFRF/projects/us-west4-gcp:119edac/indexes/pdfextracts I have installed packages with same version as the Colab file but when running this part, I get endless API error, though on the side the API key does work index_set = {} |
Update: I created my own person API key not the corporate one and it worked. Could this be something to do with it? I don't know how the API keys work. My personal one looks completely different to the one we use at the corporate. |
How to update simplevector index if some new files are added on google drive folder import os os.environ['OPENAI_API_KEY'] = 'my key' def authorize_gdocs(): authorize_gdocs() GoogleDriveReader = download_loader('GoogleDriveReader') Define LLMllm_predictor = LLMPredictor(llm=ChatOpenAI(temperature=0.7, model_name="gpt-3.5-turbo")) Define prompt helpermax_input_size = 4096 Create index from documents only one time then comment itindex = GPTSimpleVectorIndex.from_documents(documents, service_context=service_context) Save your index to a index.json fileindex.save_to_disk('index1.json') index = GPTSimpleVectorIndex.load_from_disk('index1.json') |
Same error with Corporate Key, don't have a personal one. Error solved by adding: |
still getting error with both keys |
Getting some sort of Authentication error during embedding.
Running in local Jupyter notebook and tried in google colabs.
Testing with only "paul_graham_essay.txt"
Did pip install llama-index and gpt-index, both same result.
To answer the first question yes, my API key is correct and I ran the following where "my actual key" is replaced with key from openai:
Line of code that threw error:
Thanks in advanced!
The text was updated successfully, but these errors were encountered: