Seeking assistance with setting up the following Open Source project:
https://github.com/mayooear/gpt4-pdf-chatbot-langchain
Encountering an error when running the npm run ingest
command:
Error [Error: PineconeClient: Error calling upsert: Error: PineconeClient: Error calling upsertRaw: FetchError: The request failed and the interceptors did not return an alternative response]
c:\Users\Projects\chatpdf\gpt4-pdf-chatbot-langchain-main\gpt4-pdf-chatbot-langchain-main\scripts\ingest-data.ts:44
throw new Error('Failed to ingest your data');
^
[Error: Failed to ingest your data]
Node.js v18.15.0
My .env
file configuration includes:
OPENAI_API_KEY='sk-XXXXXXX'
# Update these with your Supabase details from your project settings > API and dashboard settings
PINECONE_API_KEY= '7XXXXXXXXX'
PINECONE_ENVIRONMENT= 'us-east1-gcp'
PINECONE_INDEX_NAME= 'default'
I have adjusted the pinecone.ts
file and specified my namespace as:
const PINECONE_NAME_SPACE = 'pdfread'; //namespace is optional for your vectors
Additionally, in the makechain.ts
file I have indicated that I am using GPT-3.5 while awaiting access to GPT-4:
modelName: 'gpt-3.5-turbo',
The PDF being ingested is named MorseVsFrederick
, included in the repository.
Any insights on troubleshooting this issue?