Git Product home page Git Product logo

Comments (36)

johanguse avatar johanguse commented on July 19, 2024 2

Did you change the Pinecone region? Maybe 'us-east1-gcp' is different to you... take a look at Pinecone account

Pinecone Client Instantiation - src/lib/pinecone.ts

import { PineconeClient } from '@pinecone-database/pinecone'

export const getPineconeClient = async () => {
  const client = new PineconeClient()

  await client.init({
    apiKey: process.env.PINECONE_API_KEY!,
    environment: 'us-east1-gcp',
  })

  return client
}

from quill.

anand-mukul avatar anand-mukul commented on July 19, 2024 2

My error is still not going and pinecone is showing me environment "gcp-starter" and it's still throwing me this error ⚠ ./src/app/api/uploadthing/core.ts Attempted import error: 'getPineconeClient' is not exported from '@/lib/pinecone' (imported as 'getPineconeClient'). @akshat-OwO and also do i need gpt-4 upgrade in my open ai account ?

Follow this step on Pinecone:

  1. Delete your Index,
  2. Delete Your Organization and,
  3. Create new Organization and Index .

And, You're all Good! 👋

from quill.

anand-mukul avatar anand-mukul commented on July 19, 2024 1

@Jay21105545
Okay, Check this out https://github.com/anand-mukul/PDFNinja

from quill.

anand-mukul avatar anand-mukul commented on July 19, 2024 1

@Jay21105545 First, Fix this in src/lib/utils.ts for deployed version
Line : 9

export function absoluteUrl(path: string) {
  return `https://pdfff.vercel.app/${path}`
}

And, Please change Index name in route.ts and core.ts with your own

from quill.

Teegreat avatar Teegreat commented on July 19, 2024 1

No fix yet? @joschan21 please kindly help us out.

from quill.

Kumar-Sahani avatar Kumar-Sahani commented on July 19, 2024

Here's how I fixed this issue:

Go to your pinecone project (https://app.pinecone.io/)
Delete the api key,
Delete the index,
Delete the organisation

And now you have to create a new project then a new index(copy and save the environment value) and finally generate an api key

in your project go to src/lib/pinecone.ts and paste the environment value

also check if your openAI key hasn't expired, if expired generate a new key with another account

Save and run

from quill.

akshat-OwO avatar akshat-OwO commented on July 19, 2024

just add '-free' in the environment string it fixed for me. I am using non deprecated code as well.

import { Pinecone } from '@pinecone-database/pinecone';

export const pinecone = new Pinecone({
    apiKey: process.env.PINECONE_API_KEY!,
    environment: 'asia-southeast1-gcp-free',
});

from quill.

Jay21105545 avatar Jay21105545 commented on July 19, 2024

My error is still not going and pinecone is showing me environment "gcp-starter" and it's still throwing me this error
⚠ ./src/app/api/uploadthing/core.ts Attempted import error: 'getPineconeClient' is not exported from '@/lib/pinecone' (imported as 'getPineconeClient'). @akshat-OwO and also do i need gpt-4 upgrade in my open ai account ?

from quill.

akshat-OwO avatar akshat-OwO commented on July 19, 2024

@Jay21105545 you are using old deprecated syntax which josh used in the video. Don't use it simply use the code which i provided above in pinecone.ts

and in core.ts or anywhere you use

import { getPineconeClient } from '@/lib/pinecone'

replace it with

import { pinecone } from '@/lib/pinecone';

also no need to write

const pinecone = await getPineconeClient()

for model i am using gpt-3.5-turbo-16k

from quill.

anand-mukul avatar anand-mukul commented on July 19, 2024

path: \src\lib\pinecone.ts

import { PineconeClient } from '@pinecone-database/pinecone'

  export const getPineconeClient = async () => {
    const client = new PineconeClient()
  
    await client.init({
      apiKey: process.env.PINECONE_API_KEY!,
      environment: 'asia-southeast1-gcp-free', // Verify your environment from pinecone website 
    })
  
    return client
  }

Check your pinecone website for environment

Verify with path : \src\app\api\message\route.ts AND \src\app\api\uploadthing\core.ts

// 1: vectorize message
  const embeddings = new OpenAIEmbeddings({
    openAIApiKey: process.env.OPENAI_API_KEY,
  })

  const pinecone = await getPineconeClient()  //Check this line in route.ts and core.ts
  const pineconeIndex = pinecone.Index('YourIndexName')

  const vectorStore = await PineconeStore.fromExistingIndex(
    embeddings,
    {
       //@ts-ignore
      pineconeIndex,
      namespace: file.id,
    }
  )

BONUS: Make sure that your Stripe Webhook and API are in test mode and add it to .env

from quill.

Jay21105545 avatar Jay21105545 commented on July 19, 2024

Hello @anand-mukul @akshat-OwO still im getting error here is my both file
core.ts and route.ts
CORE.TS
corets
ROUTE.TS
routets

from quill.

anand-mukul avatar anand-mukul commented on July 19, 2024

from quill.

Jay21105545 avatar Jay21105545 commented on July 19, 2024

Brother This is the error im facing @anand-mukul
Screenshot 2023-10-11 at 1 14 28 AM

from quill.

anand-mukul avatar anand-mukul commented on July 19, 2024

@Jay21105545 import { pinecone } from '@/lib/pinecone'

 const vectorStore = await PineconeStore.fromExistingIndex(embeddings, {
    //@ts-ignore
    pineconeIndex,
    namespace: file.id,
  });

from quill.

Jay21105545 avatar Jay21105545 commented on July 19, 2024

brother @anand-mukul it's now i think stuck on "Processing PDF..." first it's showing me "Processing PDF..." then it's showing me after loading Too many pages in PDF error again do you have your repo ? can you share it with me ?
image

from quill.

Jay21105545 avatar Jay21105545 commented on July 19, 2024

@anand-mukul hello brother I'm still getting same error i have clone'd your repo and this is my repo can you pls check the error "https://github.com/Jay21105545/pdfff.git" and this my dashboard of pinecone
image

from quill.

Jay21105545 avatar Jay21105545 commented on July 19, 2024

i have fixed it brother pls check it now @anand-mukul but still the "Too many pages in PDF" is showing and checkout button is also not working :(
sorry brother i was also changing according to your instruction i forgoted to reply it :(

from quill.

anand-mukul avatar anand-mukul commented on July 19, 2024

My error is still not going and pinecone is showing me environment "gcp-starter" and it's still throwing me this error ⚠ ./src/app/api/uploadthing/core.ts Attempted import error: 'getPineconeClient' is not exported from '@/lib/pinecone' (imported as 'getPineconeClient'). @akshat-OwO and also do i need gpt-4 upgrade in my open ai account ?

Follow this step on Pinecone:

  1. Delete your Index,
  2. Delete Your Organization and,
  3. Create new Organization and Index .

And, You're all Good! 👋

@Jay21105545 Try this And Follow the video for Stripe setup.

from quill.

Jay21105545 avatar Jay21105545 commented on July 19, 2024

thank's brother @anand-mukul the error of page is solved but now when i ask question my message is getting delivered but there is no response from open ai ?

from quill.

atilla-the-hun avatar atilla-the-hun commented on July 19, 2024

I can feel your frustration bud. I'm going to help you out because I had exactly the same issue until I remembered that some projects for some unknown reason only work once deployed to Vercel and not on your localhost. All you have to do is use Josh's original repo. It works fine. Just remember to change the pinecone environment and index name in the files before deployment to your own repo. Follow his deployment instructions from deployment preview bookmarked on his Youtube tutorial to deploy to Vercel. You will keep getting all these errors on localhost. Vercel is more advanced with their production build. The technology Vercel is using is very good. Give it a go and I'm sure everything will work, but remember to follow Josh's deployment instructions to the T.

from quill.

anand-mukul avatar anand-mukul commented on July 19, 2024

@atilla-the-hun I have checked your deployed version and it's not working. Even that doesn't have access to uploaded PDF. Please review your code.

from quill.

atilla-the-hun avatar atilla-the-hun commented on July 19, 2024

@anand-makul Strange it's not working for you. Just logged in and checked from 2 different devices. Everything is working A-okay. Accessed from a laptop (Windows) and a mobile (Android). No problems. Everything is working 100%. I'll test from a friend's device who lives in a different suburb and see if he has any problem with it.

from quill.

atilla-the-hun avatar atilla-the-hun commented on July 19, 2024

quill

Proof it's working

from quill.

atilla-the-hun avatar atilla-the-hun commented on July 19, 2024

Tested from another mobile device. Here's what I found: The uploading section where you drop a file or click to upload a file, duplicates itself and places another upload area overlapping the previous 1. Try selecting the same file twice i.e. that is by selecting a file and uploading it once with the first file upload and then the other. Don't close the other upload dialog or prompt. It seems like there's a duplicate in this part in the codebase and the focus remains on the first upload dialog/prompt that is opened. If you select with the first prompt and close the second, it won't upload. Still works, it's just that the duplication in the code has to be fixed.

from quill.

rishav887 avatar rishav887 commented on July 19, 2024

my messages are populating partially and then getting deleted when on vercel. Any one facing this ?

from quill.

GodwinAdu avatar GodwinAdu commented on July 19, 2024

Hello please help, the fetch in the try block don't, at core.ts, here are the error im getting
Error in the try block: TypeError: fetch failed
at Object.fetch (node:internal/deps/undici/undici:11522:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
cause: ConnectTimeoutError: Connect Timeout Error
at onConnectTimeout (node:internal/deps/undici/undici:8472:28)
at node:internal/deps/undici/undici:8430:50
at Immediate._onImmediate (node:internal/deps/undici/undici:8459:37)
at process.processImmediate (node:internal/timers:478:21)
at process.callbackTrampoline (node:internal/async_hooks:130:17) {
code: 'UND_ERR_CONNECT_TIMEOUT'
}
}
the error is from the @/app/uploadthing/core.ts the fetch in the try block dont work and i dont know what to do again. i hope you can help me that please thank you

from quill.

Sahil-pvt avatar Sahil-pvt commented on July 19, 2024

Guys just see this please.... https://github.com/joschan21/quill/issues/38#issue-1979456973

from quill.

Suksham-sharma avatar Suksham-sharma commented on July 19, 2024
image image image image , I did everything as mentioned , can someone help me out @akshat-OwO @anand-mukul

from quill.

Sahil-pvt avatar Sahil-pvt commented on July 19, 2024

image image image image , I did everything as mentioned , can someone help me out @akshat-OwO @anand-mukul

Remove namespace (Refer: https://github.com/Sahil-pvt/PDFAskMate/blob/master/src/app/api/uploadthing/core.ts)

from quill.

JasonMKY avatar JasonMKY commented on July 19, 2024

Tested from another mobile device. Here's what I found: The uploading section where you drop a file or click to upload a file, duplicates itself and places another upload area overlapping the previous 1. Try selecting the same file twice i.e. that is by selecting a file and uploading it once with the first file upload and then the other. Don't close the other upload dialog or prompt. It seems like there's a duplicate in this part in the codebase and the focus remains on the first upload dialog/prompt that is opened. If you select with the first prompt and close the second, it won't upload. Still works, it's just that the duplication in the code has to be fixed.

Yeah I'm getting this issue also...

from quill.

gunjeetbawa10 avatar gunjeetbawa10 commented on July 19, 2024

I am getting same error. please help me out like i tried removing namespace too @Sahil-pvt , Help me out

from quill.

gunjeetbawa10 avatar gunjeetbawa10 commented on July 19, 2024
Screenshot 2023-11-22 at 5 09 04 PM

What location should i enter ?

from quill.

Omsoni06 avatar Omsoni06 commented on July 19, 2024

bro I am frustated with this error 😭😭

finally error solved

from quill.

Sujan1714 avatar Sujan1714 commented on July 19, 2024

bro I am frustated with this error 😭😭

finally error solved

Bro how

from quill.

baghelkunalpal avatar baghelkunalpal commented on July 19, 2024

where i fine the pinecone environment
image
Uploading image.png…
deprecation error like

from quill.

baghelkunalpal avatar baghelkunalpal commented on July 19, 2024

where i fine the pinecone environment
image
image
deprecation error like

from quill.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.