llm-app-patterns
Construir Aplicações LLM de Produção
Construir aplicações LLM requer navegar por decisões arquiteturais complexas. Esta skill fornece padrões testados em batalha para pipelines RAG, sistemas de agentes e operações de produção.
تنزيل ZIP المهارة
رفع في Claude
اذهب إلى Settings → Capabilities → Skills → Upload skill
فعّل وابدأ الاستخدام
اختبرها
استخدام "llm-app-patterns". User asks: What is the company's refund policy?
النتيجة المتوقعة:
- Retrieves relevant policy documents from vector database
- Generates answer grounded in retrieved context with source citations
- Returns response with confidence score and document references
استخدام "llm-app-patterns". User asks: Plan a research project on climate change impacts
النتيجة المتوقعة:
- Creates plan with steps: gather data, analyze trends, identify sources, draft report
- Executes each step sequentially with tool calls
- Synthesizes findings into comprehensive research outline
التدقيق الأمني
آمنThis skill is a documentation file containing educational content about LLM application patterns. All static analysis findings are false positives caused by markdown formatting. The backticks flagged are code block delimiters and ASCII art borders, not shell command execution. URLs are documentation references, not active network calls. Code examples like hashlib.sha256 are illustrative and use secure algorithms. No executable code or security risks detected.
درجة الجودة
ماذا يمكنك بناءه
Base de Conhecimento RAG
Construa um sistema de perguntas e respostas baseado na sua documentação usando busca híbrida e compressão contextual.
Automação de Tarefas com Agentes
Crie agentes multi-etapa que podem buscar, calcular e sintetizar informações usando os padrões ReAct ou Plan-and-Execute.
Monitoramento de Produção LLM
Implemente observabilidade para aplicações LLM com rastreamento de métricas, tracing distribuído e frameworks de avaliação.
جرّب هذه الموجهات
Answer the user's question based ONLY on the following context. If the context doesn't contain enough information, say you don't have enough information.
Context:
{context}
Question: {question}
Answer:You are an AI assistant that can use tools to answer questions.
Available tools:
{tools_description}
Use this format:
Thought: [your reasoning about what to do next]
Action: [tool_name(arguments)]
Observation: [tool result]
... (repeat as needed)
Thought: I have enough information to answer
Final Answer: [your response]
Question: {question}Input: {example1_input}
Output: {example1_output}
Input: {example2_input}
Output: {example2_output}
Input: {user_input}
Output:Step 1 (Research): Research the topic: {input}
Step 2 (Analyze): Analyze these findings: {research}
Step 3 (Summarize): Summarize this analysis in 3 bullet points: {analysis}أفضل الممارسات
- Use busca híbrida combinando correspondência semântica e por palavras-chave para melhor precisão de recuperação
- Implemente caching para prompts determinísticos para reduzir latência e custos
- Acompanhe métricas chave como latência, uso de tokens e satisfação do usuário para melhoria contínua
تجنب
- Usar chunking de tamanho fixo sem considerar a estrutura do documento, o que quebra o contexto
- Pular avaliação e monitoramento, tornando impossível detectar degradação de qualidade
- Não implementar estratégias de fallback quando provedores LLM primários experienciam interrupções