Comments (36)
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.
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:
- Delete your Index,
- Delete Your Organization and,
- Create new Organization and Index .
And, You're all Good! 👋
from quill.
@Jay21105545
Okay, Check this out https://github.com/anand-mukul/PDFNinja
from quill.
@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.
No fix yet? @joschan21 please kindly help us out.
from quill.
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.
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.
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.
@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.
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.
Hello @anand-mukul @akshat-OwO still im getting error here is my both file
core.ts and route.ts
CORE.TS
ROUTE.TS
from quill.
from quill.
Brother This is the error im facing @anand-mukul
from quill.
@Jay21105545 import { pinecone } from '@/lib/pinecone'
const vectorStore = await PineconeStore.fromExistingIndex(embeddings, {
//@ts-ignore
pineconeIndex,
namespace: file.id,
});
from quill.
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 ?
from quill.
@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
from quill.
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.
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:
- Delete your Index,
- Delete Your Organization and,
- Create new Organization and Index .
And, You're all Good! 👋
@Jay21105545 Try this And Follow the video for Stripe setup.
from quill.
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.
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.
@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.
@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.
Proof it's working
from quill.
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.
my messages are populating partially and then getting deleted when on vercel. Any one facing this ?
from quill.
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.
Guys just see this please.... https://github.com/joschan21/quill/issues/38#issue-1979456973
from quill.
![image](https://private-user-images.githubusercontent.com/94667656/283844063-825a6b51-029c-4ebf-b95d-083f435808a8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTMwNzc4NDcsIm5iZiI6MTcxMzA3NzU0NywicGF0aCI6Ii85NDY2NzY1Ni8yODM4NDQwNjMtODI1YTZiNTEtMDI5Yy00ZWJmLWI5NWQtMDgzZjQzNTgwOGE4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA0MTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNDE0VDA2NTIyN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWVkNjc4OGM4ZjQxMmU5ZjE3NTdiMGE4MGU3ZGE0YTU0YjUwOGExNmI3ZTdhMWNkNmZhMjJhMDAwYjUyNzk0MTkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.qikfb5C8O95-NlBoI6QLOc2Eog3WggFNPYRSnaSRhWA)
![image](https://private-user-images.githubusercontent.com/94667656/283844127-06813697-1bfd-4b56-a6e9-c929ccdea7ba.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTMwNzc4NDcsIm5iZiI6MTcxMzA3NzU0NywicGF0aCI6Ii85NDY2NzY1Ni8yODM4NDQxMjctMDY4MTM2OTctMWJmZC00YjU2LWE2ZTktYzkyOWNjZGVhN2JhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA0MTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNDE0VDA2NTIyN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWJjZmMxMDcyZjBjYmZlY2RjNDVjNDg0NjdlOTY5OWQzZGY4NTk4MGNlYmVmM2EzYjdhOWNkZTU0N2M4YzhjNDUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.MOgNrc96hQPm9BiyjHUf-D_jgRv_qnhvnH168zMVNzA)
![image](https://private-user-images.githubusercontent.com/94667656/283844435-e7264c83-cd4b-44f4-b015-04f5b4f7da0e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTMwNzc4NDcsIm5iZiI6MTcxMzA3NzU0NywicGF0aCI6Ii85NDY2NzY1Ni8yODM4NDQ0MzUtZTcyNjRjODMtY2Q0Yi00NGY0LWIwMTUtMDRmNWI0ZjdkYTBlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZ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U2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.uF8_emW6w6OYtQIavRhwyRlCi4OPZ6J2jc24-BejF0o)
from quill.
![]()
![]()
![]()
, 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.
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.
I am getting same error. please help me out like i tried removing namespace too @Sahil-pvt , Help me out
from quill.
![Screenshot 2023-11-22 at 5 09 04 PM](https://private-user-images.githubusercontent.com/36291006/284891236-cdbe3338-e8dc-454d-9f9d-fe2f1f7a2276.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTMwNzc4NDcsIm5iZiI6MTcxMzA3NzU0NywicGF0aCI6Ii8zNjI5MTAwNi8yODQ4OTEyMzYtY2RiZTMzMzgtZThkYy00NTRkLTlmOWQtZmUyZjFmN2EyMjc2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA0MTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNDE0VDA2NTIyN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTZlNmNjNDZkNzFhMGIxMTk0NjcwNDliMjIxMTgwZTNmY2VmZTE0ZDc0ZTg4NjM3MzExZDZlOTYzY2NiZDQyYzMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.PPcw2wVSuqksMkOxRGaJT04qirWxS5no7XuIXGHRlAI)
What location should i enter ?
from quill.
bro I am frustated with this error 😭😭
finally error solved
from quill.
bro I am frustated with this error 😭😭
finally error solved
Bro how
from quill.
where i fine the pinecone environment
deprecation error like
from quill.
where i fine the pinecone environment
deprecation error like
from quill.
Related Issues (20)
- Setting up your account... You will be redirected automatically Loading issue
- File not showing in Prisma studio HOT 1
- Throwing an Error sign even though UserAccount file is created and imported
- Billing info after upgrading returns undefined, and the Upgrade "Diamond" doesn't update on making stripe payment, It is updating in the stripe dashboard though, can anyone help?
- Skeleton not showing HOT 2
- File not showing proper output in Dashboard HOT 7
- .
- when i signin then only loader is working not signin successfully please anyone help me and and another error is Property 'email' does not exist on type 'Promise<KindeUser | null>'.ts(2339) HOT 5
- isLoading is not working it is giving error can anyone help HOT 10
- Issue when uploading PDF in dashboard. HOT 8
- The logged-in user is not showing in Prisma Studio. HOT 2
- ChatWrapper / getFileUploadStatus: Property status does not exist on type HOT 4
- Cannot find module langchain/dist/document_loaders/fs/pdf or its corresponding type declarations HOT 1
- Error [InsufficientQuotaError]: 429 HOT 1
- The logged-in user is not showing in Prisma Studio. im using Neon console HOT 1
- Property 'status' does not exist on type 'Query<{ status: UploadStatus; }, TRPCClientErrorLike<{ input: { fileId: string; }; output: { status: UploadStatus; }; transformer: false; errorShape: DefaultErrorShape; }>, { ...; }, any>'.ts(2339) HOT 3
- Image Source error in image-loader.js HOT 4
- Property 'id' does not exist on type 'KindeUser | null'.ts(2339) on src\app\api\message\route.ts HOT 5
- Object literal may only specify known properties, and 'environment' does not exist in type 'PineconeConfiguration'.ts(2353) HOT 1
- what is the issue why im not able to chat with pdf HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quill.