Welcome to the Predaking PDF Bot! This is an AI-powered chat application styled like the Batcomputer 🖥️. You can load it with your own PDF documents (like a resume), and the AI will answer questions based only on the information in those files.
Right now, the app is pre-loaded with intelligence, just like Batman's terminal:
- 🗂️ Reads PDFs: It automatically reads any PDF files placed in the
wwwroot/Datafolder. - 🔍 Fast Search: It creates a smart database (vector search) to find answers in your PDFs instantly.
- 📱 The Bat-Computer UI: A cool, mobile-friendly dark theme with:
- 🟡 Neon gold text and tactical dark panels.
- ⚡ A blinking "WELCOME BATMAN!" startup screen.
- � Audio buttons so the AI can read its answers out loud.
Batman is always upgrading his gear. Future updates will include:
- 📤 Upload from browser: Upload your PDFs directly from the website without touching the backend folders!
- ⚡ Instant processing: The AI will read and learn from new files the second you upload them.
Here is what powers the Batcomputer:
- 💻 .NET 9.0 Razor Pages (The main framework)
- 🤖 Microsoft.Extensions.AI (To connect the smart AI features)
- 🧠 Azure OpenAI / GitHub Models (
gpt-4o-minifor chatting,text-embedding-3-smallto understand the PDFs) - 🗄️ SQLite Database (To store the fast search info locally)
- 🎨 Custom Vanilla CSS (For that glowing, glass-like hacker feel)
This project uses GitHub Models for its AI. You need a free GitHub personal access token (it doesn't need any special permissions).
Add your token to the project safely using .NET User Secrets:
- Open your terminal in the project folder.
- Run this command (replace
YOUR-TOKENwith your real token):dotnet user-secrets set GitHubModels:Token YOUR-TOKEN
Put any PDF files you want the AI to learn from into the wwwroot/Data folder. The app will read them when it starts.
Run the app using the .NET CLI:
dotnet runOpen the localhost link it gives you in your browser, and start chatting!
"It’s not who I am underneath, but what I do that defines me." - The Batcomputer 🦇