gpt4-pdf-chatbot-langchain icon indicating copy to clipboard operation
gpt4-pdf-chatbot-langchain copied to clipboard

managed to ingest but there is an error with fetching

Open text2sql opened this issue 1 year ago • 8 comments

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?

text2sql avatar Apr 01 '23 18:04 text2sql

meeeee

naticio avatar Apr 02 '23 02:04 naticio

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.

johnydodger avatar Apr 03 '23 16:04 johnydodger

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

reggieharris avatar Apr 04 '23 07:04 reggieharris

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?

Arham-12336 avatar Apr 05 '23 08:04 Arham-12336

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.

text2sql avatar Apr 05 '23 15:04 text2sql

Thanks for sharing

Arham-12336 avatar Apr 06 '23 11:04 Arham-12336

I'm having the same problem. The vectors are being created as expected, but seem to be empty after fetching.

Hanser256 avatar Apr 09 '23 06:04 Hanser256

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 .

willeswa avatar Apr 13 '23 22:04 willeswa

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?

Sine-Of-Time avatar May 21 '23 18:05 Sine-Of-Time

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.

gadicc avatar Jun 21 '23 12:06 gadicc

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!

dosubot[bot] avatar Sep 24 '23 16:09 dosubot[bot]