✨ Update ✨
Looks like Pinecone has removed namespaces from free-tier, so I pushed recent changes to [ Ссылка ] and removed the name-spaces and tested the code its still working ! 🥹 🚀
Troubleshooting:
For " Error [InsufficientQuotaError]: 429 You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: [ Ссылка ]."
I had to delete all my old API keys and created a new one + charged my credits for about 10 dollars.
If you have questions jump on the discord link [ Ссылка ]
------------------
A beginner friendly and full-tutorial on how to build a “Chat with PDF” using Langchain, AI SDK, Pinecone DB, Open AI and Next.js 13.
Github: [ Ссылка ]
(without AI SDK - Github: [ Ссылка ])
Timecode:
0:00 - Intro
01:08 - How to make your LLMs smarter ?
02:29 - Tech-stack walkthrough
04:20 - App Architecture
05:53 - Breakdown of app into steps
07:16 - Step 1: Setup Next.js 13 and shadcn app
08:54 - Step 2: Building chat UI components
14:44 - Step 3: Setting up API keys and ENV config
16:55 - Step 4: Setup Pinecone DB client
18:40 - Step 5: Embed PDF and store on Pinecone DB
24:18 - Step 6: LLM Templates and models
25:55 - Step 7: Building chains using Langchain
31:14 - Step 8: Prepare chat-endpoint
32:53 - Step 9: Build a streaming chat UI
36:09 - Step 10: Streaming the sources information
![](https://i.ytimg.com/vi/oiCFr19NtPo/maxresdefault.jpg)