The culprit was single .unwrap() call.
The system correctly detected the file size error, but because of .unwrap(), it forced a crash instead of rejecting the file.
Lesson: Treat internal configs with the same validation rigor as external user input.
#rustlang#error#cloudflare
π¨ The root cause of the Nov 18 Cloudflare outage? A panic! in the Rust proxy. π¦
A database change accidentally doubled config file size, exceeding hard-coded memory limit. Instead of failing gracefully, the system panicked and crashed, causing global 5xx errors.
#Cloudflare
RAG (Retrieval-Augmented Generation) isnβt just prompt engineering - itβs real system design.
You need search, storage, retrieval, ranking, and LLM generation working together, fast and scalable.
Building RAG = Building the future of AI infrastructure
#AI#RAG#SystemDesign
#GenAI_se_dosti
Built a Terminal Agent today powered by Gemini AI. It writes code, builds projects, manages files... basically does everything except make chai. βπ·
Built with Generative AI SDK & pure terminal power.
#AI#DevTools#Python#GenAI
Instruction: Be specific with format or rules.
Direct answer: Ask for it short and sweet.
Persona: Give it a personality.
Role-play: Let it act a role.
Contextual: Add background info.
Multimodal: Mix text + images.
(2/2)
#AI#PromptEngineering#ChaiCode@ChaiCodeHQ
#GenAI_se_dosti
Ever feel like AI doesnβt βgetβ you?
Itβs not the AI. Itβs the prompt.
Main prompt types:
Zero-shot: Just ask.
Few-shot: Show a few examples.
Chain-of-thought: Think step-by-step.
Self-consistency: Ask multiple times, compare answers.
(1/2)
#AI@piyushgarg_dev
Let's start a new series #GenAI_se_dosti
Ever wonder how AI like ChatGPT got so smart?
It all started in 2017 with a paper called βAttention Is All You Need.β
Thatβs how Transformers were born, just pay attention to every word.
#AI#Transformers#NLP#GenAI