gpt4-pdf-chatbot-langchain
gpt4-pdf-chatbot-langchain copied to clipboard
ingest with ERR_NETWORK..
i am trying to ingest pdfs, while running scripts , got network error like this...
here is my config ,
PINECONE_ENVIRONMENT=eu-west1-gcp
PINECONE_INDEX_NAME=pdf-test
i have checked openai - appkey and http_proxy , both it works with curl www.google.com and connect with openai .
I also have the same error ,do you solve the problem?
Did you change the modelName
from gpt-4
to gpt-3.5-turbo
?
I assume you don't yet have access to gpt-4
Did you change the
modelName
fromgpt-4
togpt-3.5-turbo
?I assume you don't yet have access to
gpt-4
Dear Mayooear,
Thanks for your awesome project! I also met this err, even through i changed the model name from 4 to gpt-3.5-turbo, but the err still came out.
all the things i do are like this :
0, git clone
1,pnpm install
2,set the .env correctly
3,and change the pdf-test
''' const PINECONE_NAME_SPACE = 'pdf-test1'; //namespace is optional for your vectors '''
to pdf-test1
4, change gpt-4 to gpt-3.5-turbo
5, change pdfs in docs to a simple pdf, just contains two lines: good luck to all, this is an orange cat.
6, npm run ingest
7, pnpm run dev
but there came out err, and in pinecone dashboard, there is no namespace and no vectors created
the dimension is set as 1536
would you like to figure out my mistake steps? Thanks so much!
by the way, in terminal, the log is like this:
after creating vector:
''' creating vector store... error [Error: Network Error] { config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: [AsyncFunction: fetchAdapter], transformRequest: [ [Function: transformRequest] ], transformResponse: [ [Function: transformResponse] ], timeout: 0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, validateStatus: [Function: validateStatus], headers: { Accept: 'application/json, text/plain, /', 'Content-Type': 'application/json', 'User-Agent': 'OpenAI/NodeJS/3.2.1', Authorization: 'Bearer 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' }, method: 'post', data: '{"model":"text-embedding-ada-002","input":["gggggggooood luck to all people see this doc. this is an orange cat"]}', url: 'https://api.openai.com/v1/embeddings' }, code: 'ERR_NETWORK', request: Request { [Symbol(realm)]: { settingsObject: [Object] }, [Symbol(state)]: { method: 'POST', localURLsOnly: false, unsafeRequest: false, body: [Object], client: [Object], reservedClient: null, replacesClientId: '', window: 'client', keepalive: false, serviceWorkers: 'all', initiator: '', destination: '', priority: null, origin: 'client', policyContainer: 'client', referrer: 'client', referrerPolicy: '', mode: 'cors', useCORSPreflightFlag: false, credentials: 'same-origin', useCredentials: false, cache: 'default', redirect: 'follow', integrity: '', cryptoGraphicsNonceMetadata: '', parserMetadata: '', reloadNavigation: false, historyNavigation: false, userActivation: false, taintedOrigin: false, redirectCount: 0, responseTainting: 'basic', preventNoCacheCacheControlHeaderModification: false, done: false, timingAllowFailed: false, headersList: [HeadersList], urlList: [Array], url: [URL] }, [Symbol(signal)]: AbortSignal { aborted: false }, [Symbol(headers)]: HeadersList { [Symbol(headers map)]: [Map], [Symbol(headers map sorted)]: null } }, response: undefined, isAxiosError: true, toJSON: [Function: toJSON] } /Users/apple/codework/gpt4-pdf-chatbot-langchain/scripts/ingest-data.ts:44 throw new Error('Failed to ingest your data'); ^
[Error: Failed to ingest your data]
Node.js v18.14.0
'''
Also getting this error. Let me know if anyone finds anything!
Also getting this error. Let me know if anyone finds anything!
Hello josh-may ,I solve the error. I just put the codes on the serve in America.I do not have anything change.it works !
any update on that, having the same error
same here, anyone solved yet?
same error:(
我已经解决了这个问题,在我开vpn的情况下,可能是由于vpn软件的协议问题,导致这个现象,我把vpn软件直接换成clash 就解决了这个问题。大家可以试试去
Hi, @linwentao-hexin! I'm Dosu, and I'm here to help the gpt4-pdf-chatbot-langchain team manage their backlog. I wanted to let you know that we are marking this issue as stale.
Based on my understanding, you are experiencing a network error while trying to ingest PDFs. You have provided your configuration and screenshots of the error. Other users, such as 15392778677 and mayooear, have also encountered the same error and offered suggestions. Some users have reported that changing the server location or using a VPN resolved the issue.
Before we proceed, we would like to confirm if this issue is still relevant to the latest version of the gpt4-pdf-chatbot-langchain repository. If it is, please let us know by commenting on this issue. Otherwise, feel free to close the issue yourself or it will be automatically closed in 7 days.
Thank you for your understanding and cooperation. We look forward to hearing from you soon.