{"id":13901297,"url":"https://github.com/rajeshdavidbabu/pdf-chat-ai","last_synced_at":"2025-07-17T21:32:52.024Z","repository":{"id":188255023,"uuid":"678351027","full_name":"rajeshdavidbabu/pdf-chat-ai","owner":"rajeshdavidbabu","description":"An AI powered Next.js app to chat with your PDF files and get a streamed response using Langchain and PineconeDB ✨🤖💻🗃️","archived":false,"fork":false,"pushed_at":"2023-11-30T13:21:14.000Z","size":688,"stargazers_count":175,"open_issues_count":3,"forks_count":39,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-07T21:45:18.374Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rajeshdavidbabu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-08-14T10:56:54.000Z","updated_at":"2024-08-02T16:44:40.000Z","dependencies_parsed_at":"2023-11-30T11:36:00.496Z","dependency_job_id":null,"html_url":"https://github.com/rajeshdavidbabu/pdf-chat-ai","commit_stats":null,"previous_names":["rajeshdavidbabu/pdf-chat-ai"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajeshdavidbabu%2Fpdf-chat-ai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajeshdavidbabu%2Fpdf-chat-ai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajeshdavidbabu%2Fpdf-chat-ai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajeshdavidbabu%2Fpdf-chat-ai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rajeshdavidbabu","download_url":"https://codeload.github.com/rajeshdavidbabu/pdf-chat-ai/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226305306,"owners_count":17603789,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-06T21:01:09.541Z","updated_at":"2024-11-25T09:31:10.825Z","avatar_url":"https://github.com/rajeshdavidbabu.png","language":"TypeScript","funding_links":[],"categories":["TypeScript","AI"],"sub_categories":[],"readme":"# PDF-CHAT AI ✨🤖💻🗃️\n\nAn AI-powered PDF chat built with Next.js 13, Langchain, and PineconeDB\n\n## 👷🏾‍♂️ Want to Learn How to Build It?\nCheck out the tutorial on my YT [channel](https://www.youtube.com/watch?v=oiCFr19NtPo\u0026t)\n\n\n## ✨Update✨\nAdded sources to the stream and displaying it in an accordian\n\n\n\nhttps://github.com/rajeshdavidbabu/pdf-chat-ai/assets/15684795/feb5331d-b43d-4778-a8dd-630d6f361197\n\n\n\n\n\n## Architecture\n\n\u003cimg width=\"1402\" alt=\"Embed LLM\" src=\"https://github.com/rajeshdavidbabu/pdf-chat-ai/assets/15684795/98f54183-b1e0-4dd4-8e8f-b6994e36f814\"\u003e\n\n\n## 👩‍🚀 Description\n\nBuilt with:\n- ✅ Next.js 13\n- ✅ Shadcn-ui\n- ✅ Langchain TypeScript integration\n- ✅ PineconeDB as the knowledge store\n- ✅ Dark Mode with persistent theme-switching\n\n## 🗃️ Pre-requisites\n- Create a free account and get an OPEN_AI key from platform.openai.com\n- Create a free account and get access to PineconeDB\n- And populate your `.env` file with the required information.\n\n## 💬 Good to know\n- The PineconeDB index creation happens when we run `npm run prepare:data`, but its better to create it manually if you dont want the command to fail.\n- If the command fails, then give sometime for pinecone index to get initialized and try to run the command again, it should work eventually.\n\n## 🧞 Commands\n\nAll commands are run from the root of the project, from a terminal:\n\n| Command               | Action                                          |\n| :-------------------- | :-----------------------------------------------|\n| `npm install`         | Installs dependencies                           |\n| `npm run prepare:data`| Splits your PDF file under the /docs folder into chunks, embeds them, uploads them to Pinecone|\n| `npm run dev`         | Starts the local dev server at `localhost:3000` |\n\n## 🚸 Roadmap\n- ✅ Add sources to the streamed chat bubble\n- 🚧 Clean up and show proper error messages\n- 🚧 Sanitize input and output source documents\n\n## 👏🏽 Contributing\n\nPull requests are welcome, before creating a PR talk to me on [discord](https://discord.com/channels/1121796870231040020/1156553471881908275). For major changes, please open an issue first\nto discuss what you would like to change.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frajeshdavidbabu%2Fpdf-chat-ai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frajeshdavidbabu%2Fpdf-chat-ai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frajeshdavidbabu%2Fpdf-chat-ai/lists"}