I was testing an AI feature and started thinking about the input side, not the output. Most demos focus on what the model generates. I wanted to look at what happens before the model runs. So I built a small demo project called Prompt Safety Checker 🛡️ It uses LlamaGuard to check user input first, and then decides how to handle it. The idea is straightforward: - user input is checked before reaching the LLM - based on that signal, the system decides what to do next I added three simple modes: - Strict → block the input - Balanced → warn but allow - Log-only → allow and observe The screenshot shows a prompt-injection style input that tries to override retrieved documents in a RAG system. Even though the wording looks calm, the intent is to bypass instruction.. If you’re building with LLMs, how do you usually handle inputs that shouldn’t be answered? 🔗 GitHub: https://lnkd.in/gVR3VKj4
LLM Input Safety: Handling Malicious User Input
More Relevant Posts
-
How do you move 4.3 million daily alert notifications and 250,000 configs to a new cloud-native framework instantly? ⚡ Our engineering team did just that — turning a multi-sprint migration into a three-day delivery using AI tools like Cursor, Windsurf, and Claude. How did they do it while automating migration and validation across 1,000+ services? Learn more: https://sforce.co/4p4HG7r
To view or add a comment, sign in
-
-
🔔 How Do You Move 43 Million Daily Alert Notifications Without Breaking a Sweat? In today’s digital enterprises, generating alerts is easy; managing them effectively is the real challenge. Massive alert volumes aren’t just noise; they’re signals that must be prioritized, actioned, and routed in ways that scale and reduce friction for teams. Whether it’s security, service, operations, or customer engagement, alerts need to drive action, not overwhelm your workforce. Here’s what makes enterprise-grade alerting effective: 📊 Smart Filtering & Prioritization: Only surface what truly matters 🤖 AI-Driven Routing: Get the right alert to the right team at the right time 🔁 Automated Workflows Empower systems to act confidently without manual overload 📈 Real-Time Context Enrich alerts with data so responses are faster and more accurate 📍 Governance & Monitoring: Ensure reliability, auditability, and trust across the pipeline At MagnifyAI, we help organizations rethink alerting not as a flood of notifications but as actionable intelligence that drives productivity and proactive outcomes. Alerts aren’t a burden when they empower decisions. If your team is tackling alert overload and looking to transform it into operational advantage, let’s connect and share strategies that scale. #AI #Automation #Alerting #DigitalTransformation #MagnifyAI #OperationalExcellence #AIinBusiness #WorkflowOptimization #EnterpriseAI #FutureOfWork
How do you move 4.3 million daily alert notifications and 250,000 configs to a new cloud-native framework instantly? ⚡ Our engineering team did just that — turning a multi-sprint migration into a three-day delivery using AI tools like Cursor, Windsurf, and Claude. How did they do it while automating migration and validation across 1,000+ services? Learn more: https://sforce.co/4p4HG7r
To view or add a comment, sign in
-
-
Stop fighting your IDE. Claude Code turns your terminal into an AI pair programmer that actually understands your codebase. Key Points 1. What Makes It Different - Full codebase context (not just the file you're in) - Agentic workflows with background tasks - Self-improving through hooks and skills 2. Power Features - **Slash Commands**: `/daily`, `/research`, `/systematic-debugging` - **Custom Skills**: Build your own workflows - **Hooks**: Pre/post tool execution, session lifecycle 3. Real Results - 10x faster debugging with hypothesis testing - Automatic learning from successful patterns - Context persistence across sessions
To view or add a comment, sign in
-
Introducing MCPlator = MCP + Calculator, world's first AI-powered calculator! https://mcplator.com/ Pressing buttons by yourself is too old, not modern at all. AI is the future! So I have created MCPlator - a calculator in which LLM is pressing buttons for you! It is indeed a very modern software: - Sleek purple interface that's just screaming AI - Made entirely using Claude Code - Powered by Claude Haiku 4.5 - Installable as a PWA - Sharable links allows you to share your calculations with your friends Sources: https://lnkd.in/guk5wuNR
To view or add a comment, sign in
-
just shipped ContextMemory v0.0 spent the last few days building a memory system for AI apps that actually remembers stuff across conversations. here's what it does: - extracts important facts from conversations automatically - uses semantic search to pull relevant memories when needed - handles duplicates and contradictions intelligently - production-ready with persistent storage made it a pip package so anyone can use it. the demo video shows a chatbot i built with it, you can see how it remembers user preferences and context from previous messages. already planning v0.1 with agentic context engineering, basically letting the system intelligently structure and organize context on its own. think smarter context management without manual intervention. it's open source and ready to use: https://lnkd.in/gdcwEegi pip install contextmemory https://lnkd.in/gBwA54cu would love to hear what you think or what you'd build with it. still early days but excited to see where this goes
To view or add a comment, sign in
-
Happy New Year AI folks! 🎉 Still don't have your resolutions? Check the list below: 1. Finally version control your prompts instead of "prompt_v3_final_FINAL.txt" 2. Write an eval suite before that prompt change breaks everything (again) 3. Delete at least 3 demo notebooks you'll never touch again 4. Stop saying "yes" to every "can you just add an agent for this?" request 5. Actually read the error logs before blaming the LLM 6. Ask "do we actually need an LLM here?" before building it 7. Resist the urge to try every new framework released this week 8. Document that RAG pipeline before you forget why it chunks at 512 tokens 9. Stop pretending "the model hallucinated" is a valid excuse for bad prompts 10. Admit when I have no idea why the agent picked that tool Here's hoping we all manage a few of these. And that next December, we look back with cleaner evals and fewer production rollbacks. What's on your list this year? :)
To view or add a comment, sign in
-
-
Every developer knows this struggle 👨💻👩💻 You ask an AI for code. It replies confidently. Then you spend hours debugging why it doesn’t work 😓 The problem isn’t your skills — it’s outdated context. Most AI tools rely on: 📚 Old documentation ⚠️ Deprecated APIs 🔄 Mismatched package versions That’s where Context7 changes everything 🚀 Context7 injects up-to-date, version-specific documentation and real, source-verified examples directly into the AI’s prompt — straight from the official libraries. The result? Code that actually runs Perfect alignment with current packages Hours saved on unnecessary debugging Less friction. More focus. Better development. 💡 👉 Just install the Context7 extension in VS Code and code with confidence. 💻🔥
To view or add a comment, sign in
-
-
𝗘𝘃𝗲𝗿𝘆𝗼𝗻𝗲'𝘀 𝘁𝗮𝗹𝗸𝗶𝗻𝗴 𝗮𝗯𝗼𝘂𝘁 𝘁𝗵𝗲 𝗥𝗮𝗹𝗽𝗵 𝗪𝗶𝗴𝗴𝘂𝗺 𝗹𝗼𝗼𝗽 - 𝗽𝘂𝘁𝘁𝗶𝗻𝗴 𝗖𝗹𝗮𝘂𝗱𝗲 𝗶𝗻 𝗮 𝘄𝗵𝗶𝗹𝗲-𝘁𝗿𝘂𝗲 𝗹𝗼𝗼𝗽 𝘁𝗼 𝗮𝘂𝘁𝗼𝗻𝗼𝗺𝗼𝘂𝘀𝗹𝘆 𝗴𝗿𝗶𝗻𝗱 𝘁𝗵𝗿𝗼𝘂𝗴𝗵 𝗺𝗮𝘀𝘀𝗶𝘃𝗲 𝗰𝗼𝗱𝗶𝗻𝗴 𝘁𝗮𝘀𝗸𝘀 𝗳𝗼𝗿 𝗵𝗼𝘂𝗿𝘀. We use Claude Code daily and to us, it's overhyped. But that doesn't mean it's wrong. We run monthly AI syncs internally - what's new, what's working, what's noise. It's a competitive advantage, but we're disciplined about it. Major step changes (like Opus 4.5) trigger extra sessions. Otherwise? Monthly cadence. Too easy to get lost in shiny object syndrome. Yesterday's sync covered the Ralph Wiggum hype, and our take mirrors what happened with agents. Remember a year ago when "agents" were the buzzword everyone was throwing around? Most implementations were janky, unreliable, frustrating. Fast forward to today - agents are actually delivering value. The Ralph Wiggum loop is in that same early hype phase. Right now it works well for: • Mechanical refactors • Fixing type errors across a codebase • Porting code with clear 1:1 correspondence • Repetitive tasks where you'd otherwise be hitting "continue" dozens of times But for complex, multi-file features? You'll spend more time reviewing AI-generated slop than if you'd just worked collaboratively with the model in the first place. My prediction: In 6-12 months, this capability will be built directly into tools like Claude Code. If autonomous long-running loops actually worked reliably, Anthropic would just... ship it as a feature. The fact that it's a community hack tells you where we are on the maturity curve. The pattern repeats: community hype → frustration → gradual improvement → actual utility. We're in the frustration phase. The utility phase is coming.
To view or add a comment, sign in
-
-
"Four tech-world visions haunt me: The four vibe-coding horsemen of the coming AI software apocalypse," writes Paul Ford. "I’m thinking about the ways that processes could be upended when everyone can produce code." https://lnkd.in/eNcNhDTh
To view or add a comment, sign in
-
Explore related topics
- Detecting Hidden Prompt Injection in LLMs
- How to Use Step-by-Step Prompting in LLMs
- How LLMs Handle Selective Reading Prompts
- Prompts for LLM Text Reconstruction
- Best Practices for LLM Token-Aware Input Testing
- LLM Prompt Testing for Unintended Outcomes
- Preventing Prompt Issues in Large Language Models
- How Prompt Quality Influences LLM Output
- How to Improve AI User Experience with Prompt Engineering
- How to Use AI for Prompt Generation and Selection
Well done Arooba Al Siyabi and glad to hear your research, test and develop. Keep it up