الخصوصية وحماية البيانات في prompts الخاصة بـ LLM
غالبًا ما تحتوي prompts على بيانات حساسة. تعلّم مخاطر الخصوصية واللوائح والتقنيات العملية مثل التنقيح وتقليل البيانات للتعامل مع بيانات المستخدمين بمسؤولية.
الخصوصية وحماية البيانات في prompts الخاصة بـ LLM درس مجاني في Prompt Engineering & LLM Optimization for Developers على CoddyKit. هذا هو الدرس 4 من أصل 4. يمكنك قراءة الدرس كاملاً أدناه مجاناً — ثم تمرن عليه مباشرة في المتصفح باستخدام محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7. هذا الدرس جزء من مسار التعلم في Prompt Engineering & LLM Optimization for Developers، وتقدمك يتزامن عبر الويب وتطبيق CoddyKit. تتضمن دورة Prompt Engineering & LLM Optimization for Developers 4 دروس في المجموع.
بعض أجزاء هذا الدرس لم تُترجم بعد وتظهر باللغة الإنجليزية.
Why Privacy Matters in Prompts
Whatever you put in a prompt is sent to a third-party model provider. If it contains names, emails, health, or financial data, you may be exposing — and even logging — personal information.
What Counts as PII
Personally Identifiable Information includes anything that identifies a person: names, emails, phone numbers, addresses, IDs, and combinations that together identify someone.
Regulations to Know
Laws govern how you handle personal data:
- GDPR (EU): consent, purpose limitation, right to deletion
- CCPA (California): disclosure and opt-out
- HIPAA (US health): protected health information
Data Minimization
The golden rule: send the model only what it truly needs. Strip fields irrelevant to the task before they ever reach the prompt.
const safe = { age: user.age, plan: user.plan };
// omit name, email, address from the promptRedaction Before Sending
Detect and mask PII patterns in user input before it goes to the model, then optionally restore it in the final output.
const redacted = text.replace(/[\w.]+@[\w.]+/g, "[EMAIL]");
await llm(redacted);Tokenization & Reversible Masking
Replace each PII value with a placeholder token, keep the mapping locally, and swap real values back only after the model responds — the provider never sees raw data.
Provider Data Policies
Read the provider terms: does your data train their models? Is it logged, and for how long? Enterprise tiers often offer zero-retention and no-training guarantees.
Right to Be Forgotten
Under GDPR users can demand deletion. Design your system so prompts and outputs are not silently retained where you cannot erase them on request.
On-Prem & Local Models
For the most sensitive data, run an open model on your own infrastructure so prompts never leave your network — trading some capability for full data control.
Consent & Transparency
Tell users when AI processes their data and why. Clear consent is both a legal requirement and a trust builder.
Auditing & Logging Safely
You need logs for debugging, but logs of raw prompts can themselves become a breach. Log redacted prompts and restrict access to anyone who can view raw data.
Quick Check
Test your understanding.
Recap
You learned to protect privacy in prompts: identify PII, follow GDPR/CCPA/HIPAA, apply data minimization and redaction, use reversible masking, check provider retention policies, support deletion rights, consider local models, and log safely.
الأسئلة الشائعة
هل درس «الخصوصية وحماية البيانات في prompts الخاصة بـ LLM» مجاني؟
نعم — نص درس «الخصوصية وحماية البيانات في prompts الخاصة بـ LLM» كامل متاح مجاناً هنا على الويب. لتمرينه بشكل تفاعلي (محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7) وفتح باقي دورة Prompt Engineering & LLM Optimization for Developers، انتقل إلى CoddyKit PRO. تتضمن دورة Prompt Engineering & LLM Optimization for Developers 4 دروس في المجموع.
ماذا ستتعلم في «الخصوصية وحماية البيانات في prompts الخاصة بـ LLM»؟
غالبًا ما تحتوي prompts على بيانات حساسة. تعلّم مخاطر الخصوصية واللوائح والتقنيات العملية مثل التنقيح وتقليل البيانات للتعامل مع بيانات المستخدمين بمسؤولية. تتمرن على Prompt Engineering & LLM Optimization for Developers مع أكواد عملية تشغلها مباشرة في المتصفح، ومدرس ذكاء اصطناعي متاح 24/7 يجيب على أسئلتك أثناء عملك.
هل أحتاج إلى خبرة سابقة لأبدأ Prompt Engineering & LLM Optimization for Developers؟
لا تُشترط خبرة سابقة. Prompt Engineering & LLM Optimization for Developers على CoddyKit منظم للمبتدئين حتى المتقدمين، لذا يمكنك البدء من هنا أو من البداية والتقدم بسرعتك الخاصة. هذا هو الدرس 4 من أصل 4.
كم من الوقت يستغرق درس «الخصوصية وحماية البيانات في prompts الخاصة بـ LLM»؟
معظم دروس CoddyKit تستغرق حوالي 5–10 دقائق. كل منها موجز وتفاعلي، لذا تحرز تقدماً مستمراً وتستأنف من حيث توقفت عبر الويب والتطبيق.
هل يمكنني كتابة وتشغيل أكواد في درس Prompt Engineering & LLM Optimization for Developers هذا؟
نعم. كل درس في Prompt Engineering & LLM Optimization for Developers يتضمن محرر أكواد مدمج، لذا تكتب وتشغل أكواداً حقيقية مباشرة في متصفحك وتحصل على تعليقات فورية من الذكاء الاصطناعي — بدون إعداد محلي.
جميع الدروس في هذه الدورة
- التحيز والإنصاف وقابلية التفسير في LLMs
- تصميم المطالبات الأخلاقي
- أحدث الأبحاث والتوجهات المستقبلية
- الخصوصية وحماية البيانات في prompts الخاصة بـ LLM