Business AI Assistant banner

Business AI Assistant

3 devlogs
7h 48m 49s

I am building a Business AI Assistant powered by Google Gemini and LangChain. It uses RAG (Retrieval-Augmented Generation) to analyze business PDFs and provide data-driven insights. Currently, the system logic and API integration are fully functional, with a Streamlit interface used for initial testing before moving to a custom web build.

Loading README...

Khaled Wael

Shipped this project!

What did you make? I built a RAG-powered Business AI Assistant. It’s a smart system that doesn’t just “chat,” but actually reads through multiple complex business PDFs and answers questions based on their specific content using a hybrid LLM architecture.

What was challenging? Everything that could go wrong, went wrong! The hardest part was the “Silent War” against 500 Internal Server Errors and the 404 Model Not Found glitches. I had to pivot my entire backend logic, migrate from Gemini to a hybrid Groq+Gemini setup, and manually debug deep-seated API validation issues that kept the system offline for days.

What are you proud of? I’m proud that I didn’t quit when the logs were full of red text. I’m proud of the seamless integration I achieved between different AI providers to get lightning-fast response times. But mostly, I’m proud of that moment when I typed “Hello” and the AI finally answered back—proving that persistence beats any bug!

Khaled Wael

WOOOHOO!!! I WON THE WAR! 🏆

After days of intense “hand-to-hand” combat with the compiler, I can finally say: The bugs are dead, and the code is alive. It wasn’t just a project; it was a full-scale war against dozens of errors that seemed to multiply every time I looked away.

What went down in the final battle?

The Logic Grind: I faced massive hurdles fixing the retrieval logic. There were moments where the AI was more confused than I was, but after restructuring the document flow, everything finally clicked.

The Infamous 500 Error: This was the Final Boss. The server was throwing 500 Internal Errors like confetti. It turned out to be a classic “Environment Secret” standoff—the API keys were playing hide and seek. I tracked them down, hardcoded the peace treaty, and the backend is finally behaving.

API Strategy: I had to pivot and mix the powers of Groq and Gemini. It was a risky move mid-battle, but it paid off with lightning-fast responses and zero 404s.

The Verdict: Even though a small part of the project gave me hell until the very last second, the core is solid. The PDFs are indexed, the RAG chain is flowing, and the assistant is actually assisting.

This journey taught me that programming is 10% writing lines and 90% staring at a log file wondering why your life is like this—until it finally works. And man, does it feel good.

Big thanks to every 500 Error that kept me up until dawn. You made the victory taste much sweeter.

Attachment
0
Khaled Wael

It started as a humble Streamlit app. It was cute, it worked, but honestly? It felt like wearing a suit that didn’t quite fit. I wanted something more “Architectural,” something with real brains. So, I decided to tear it down and rebuild the engine from scratch.

Here’s what went down behind the scenes:

The Brain Transplant (RAG Implementation): I ditched the basic chat logic for a full RAG (Retrieval-Augmented Generation) system. Now, this AI doesn’t just “guess.” It literally studies your PDFs using the Gemini API and FAISS to give you answers backed by data. It’s like having a consultant who actually reads the memo.

The Glow-Up (Modern UI): I threw away the standard templates and hand-crafted a sleek, modern, and minimalist interface. No more “clunky” vibes—just a clean workspace where the design stays out of your way while you get work done.

The “War” with Error 500: If you think coding is just typing, you haven’t met the Hugging Face Error 500. I spent more time than I’d like to admit chasing logs, fighting version conflicts, and convincing the server that gemini-1.5-flash is, in fact, the way to go. It was a classic “man vs. machine” battle, and spoiler alert: the human won.

Note: there is an another war i am facing write now with bugs… so, the next dev will be the last with the working demo.

Attachment
Attachment
0
Khaled Wael

Wooohooo! The beast is officially alive! After a long wrestling match with modules and libraries, I’ve finally built the “brain” for my Business AI Assistant. I’ve successfully implemented a RAG system using LangChain and FAISS, which basically means this bot doesn’t just hallucinate… it actually reads your PDFs and gives you data-backed insights like a caffeinated consultant. I hooked it up to the Gemini API for that extra IQ boost and built a quick, “ugly-but-it-works” UI with Streamlit just to prove the logic is solid. It’s like a Ferrari engine inside a toaster right now, but the backend is 100% functional. Next step? Killing the Streamlit prototype and building a sleek, professional web app with FastAPI and Tailwind CSS. Stay tuned, we’re just getting started!

Attachment
0