gpt4-pdf-chatbot-langchain
gpt4-pdf-chatbot-langchain copied to clipboard
Failed to ingest your data
How can I solve this problem?
Where should I modify the code to make network requests in proxy ?
Thank you.
I encountered the same problem when I attempted to take in .json
data. It seemed that it was using two backslashes to avoid double quotes instead of one, which was causing the payload to be corrupted.
put a JSON.stringify(error.response.data)
in your catch block to see what is the actual error.
In my case I ended up bypassing langchain and use openais embedding api directly.
Hi, @suomeimei! 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 this issue as stale.
From what I understand, you were facing an issue titled "Failed to ingest your data" regarding data ingestion. You were seeking guidance on how to solve the issue and where to modify the code to make network requests in a proxy. One user, bahram-ghahari, encountered a similar problem with corrupted payload and suggested using JSON.stringify(error.response.data)
in the catch block to see the actual error. They also mentioned bypassing langchain and using openais embedding API directly as a solution.
I wanted to check with you if this issue is still relevant to the latest version of the gpt4-pdf-chatbot-langchain repository. If it is, please let the gpt4-pdf-chatbot-langchain team know by commenting on the issue. Otherwise, feel free to close the issue yourself, or the issue will be automatically closed in 7 days.
Thank you for your understanding and contribution to the project! Let me know if you have any further questions or concerns.