gpt4-pdf-chatbot-langchain
gpt4-pdf-chatbot-langchain copied to clipboard
managed to ingest but there is an error with fetching
error [Error: PineconeClient: Error calling query: Error: PineconeClient: Error calling queryRaw: FetchError: The request failed and the interceptors did not return an alternative response] the index and namespace with vectors show on the Pinecone side ok. anyone experienced the same?
meeeee
I think I'm having a similar issue? on my pinecone dashboard, I see the correct namespace and number of vectors, but the "fetch" function just fetches an empty set.
I think I'm having a similar issue? on my pinecone dashboard, I see the correct namespace and number of vectors, but the "fetch" function just fetches an empty set.
Same
error [Error: PineconeClient: Error calling query: Error: PineconeClient: Error calling queryRaw: FetchError: The request failed and the interceptors did not return an alternative response] the index and namespace with vectors show on the Pinecone side ok. anyone experienced the same?
same.. Any luck with that?
for anyone struggling to get Mayo's code working, what worked for me is a combination of Mayo's code + this code https://github.com/misbahsy/chat-with-twitter-algorithm-ml . I would use Mayo's code for creating and storing vectors on Pinecone (pnpm run ingest), and the Misbahsy code for fetching and getting the chat up and running (without the ingestion part). I hope Mayo can fix some of the issues soon.
Thanks for sharing
I'm having the same problem. The vectors are being created as expected, but seem to be empty after fetching.
This is most likely an issue to do with initializing pinecone. In my case, I wasn't passing the right index name here
const pineconeIndex = client.Index(process.env.INDEX_NAME!);
Just double-check to make sure that you getting everything right .
This is most likely an issue to do with initializing pinecone. In my case, I wasn't passing the right index name here
const pineconeIndex = client.Index(process.env.INDEX_NAME!);
Just double-check to make sure that you getting everything right .
How did you fix your issue?
In my case I had quotes around value in my .env
file. Not sure why that's an issue, it worked fine for all the other fields in the file. But removing them fixed the issue, i.e.
// PINECONE_INDEX_NAME="index"
{ PINECONE_INDEX_NAME: '"index"' }
// PINECONE_INDEX_NAME=index
{ PINECONE_INDEX_NAME: 'index' }
I checked by adding console.log({ PINECONE_INDEX_NAME });
in chat.ts
.
Hi, @text2sql! 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.
Based on my understanding, you were experiencing an error when fetching data after ingesting it using the text2sql library. There have been some developments in the comments, with other users reporting similar issues. One user suggested that the issue may be related to initializing Pinecone correctly, while another user found that removing quotes from a value in the .env
file resolved the issue. Additionally, a user shared a workaround using a combination of code from Mayo and Misbahsy.
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!