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

Error: Failed to ingest your data #108

Closed
josh-may opened this issue Apr 2, 2023 · 5 comments
Closed

Error: Failed to ingest your data #108

josh-may opened this issue Apr 2, 2023 · 5 comments

Comments

@josh-may
Copy link

josh-may commented Apr 2, 2023

Anyone else experience this? I tried with the PDFs included in the repo as well as others. Below is the error - "request failed and the interceptors did not return an alternative response".

Screen.Recording.2023-04-02.at.6.45.46.AM.mov
creating vector store...
error [Error: PineconeClient: Error calling upsert: Error: PineconeClient: Error calling upsertRaw: FetchError: The request failed and the interceptors did not return an alternative response]
/Users/joshmay/Desktop/untitled folder/gpt4-pdf-chatbot-langchain/scripts/ingest-data.ts:45
    throw new Error('Failed to ingest your data');
          ^
[Error: Failed to ingest your data]

I added a console log inside ingest-data.ts. Which shows my api key and environment. And everything looks good.

  PineconeClient {
  apiKey: 'xxxxxxxxxxxxx',
  projectName: '683d1ab',
  environment: 'us-west4-gcp',
  configureIndexRaw: [Function (anonymous)],
  configureIndex: [Function (anonymous)],
  createCollectionRaw: [Function (anonymous)],
  createCollection: [Function (anonymous)],
  createIndexRaw: [Function (anonymous)],
  createIndex: [Function (anonymous)],
  deleteCollectionRaw: [Function (anonymous)],
  deleteCollection: [Function (anonymous)],
  deleteIndexRaw: [Function (anonymous)],
  deleteIndex: [Function (anonymous)],
  describeCollectionRaw: [Function (anonymous)],
  describeCollection: [Function (anonymous)],
  describeIndexRaw: [Function (anonymous)],
  describeIndex: [Function (anonymous)],
  listCollectionsRaw: [Function (anonymous)],
  listCollections: [Function (anonymous)],
  listIndexesRaw: [Function (anonymous)],
  listIndexes: [Function (anonymous)]
}
@obaeyaert
Copy link

Had the same problem earlier, it was related with my PINECONE_INDEX_NAME
Just add the "short"name ("dic" in the screenshot)

image

@jmesplana
Copy link

I had exactly the same problem last night. It was related to OpenAI api. My api expired and I ended up adding a CC to my account then it worked again.

@smiley717
Copy link

it will help to solve this issue from this link

@dosubot
Copy link

dosubot bot commented Sep 23, 2023

Hi, @josh-may! I'm Dosu, and I'm helping the gpt4-pdf-chatbot-langchain team manage their backlog. I wanted to let you know that we are marking the issue titled "Error: Failed to ingest your data" as stale.

Based on my understanding, you were experiencing an error while trying to ingest data. You mentioned that you checked your API key and environment, and everything seems to be correct. Another user suggested checking the PINECONE_INDEX_NAME and adding the "short" name. Additionally, another user mentioned that their issue was resolved by adding a credit card to their OpenAI API account. A link was also shared to help solve the issue.

Before we close this issue, we wanted to check with you if it is still relevant to the latest version of the gpt4-pdf-chatbot-langchain repository. If it is, please let us know by commenting on the issue. Otherwise, feel free to close the issue yourself, or it will be automatically closed in 7 days.

Thank you for your understanding and contribution to the gpt4-pdf-chatbot-langchain repository!

@dosubot dosubot bot added the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Sep 23, 2023
@dosubot dosubot bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 30, 2023
@dosubot dosubot bot removed the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Sep 30, 2023
@MuhammadIshaq-AI
Copy link

I am having the same issue, what shall I do ?

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

5 participants