Ask Questions About Honda Manuals (Cost-Optimized)
Defines a cost-optimized workflow that answers questions about Honda motorcycle manuals using selective Function Calling to reduce token usage and API costs.
What this file does
Defines a cost-optimized workflow that answers questions about Honda motorcycle manuals using selective Function Calling to reduce token usage and API costs.
When to use it
- Building a customer support bot for vehicle manuals
- Implementing a cost-sensitive AI assistant with tool activation rules
- Creating a multilingual FAQ system for product documentation
- Designing a query router that activates tools only for relevant questions
Assumes this stack
description: Ask questions about Honda motorcycle manuals using Vector Search with cost-optimized Function Calling
Ask Questions About Honda Manuals (Cost-Optimized)
This workflow provides cost-efficient answers about Honda motorcycle manuals using Function Calling with strict tool activation rules.
Cost Optimization Features
🎯 Function Calling Strategy
- Selective Tool Activation: Tools only activate for relevant queries
- Minimal Token Usage: Returns only essential information snippets
- Concise System Prompt: Reduces input token overhead
- Smart Context Management: Avoids full document retrieval
🔧 Tool Activation Rules
- Manual Search Tool: Activates ONLY for technical specifications questions
- Catalog Tool: Activates ONLY for sales/pricing/inventory questions
- Analytics Tool: Activates ONLY for metrics/usage questions
- Default Response: General conversation without tool activation
Usage Examples
Technical Manual Questions (Activates Manual Tool)
Qual a pressão dos pneus da Honda PCX 125?
What is the tire pressure for Honda Forza 350?
Como ajustar a folga do acelerador da Honda SH 125?
Sales Catalog Questions (Activates Catalog Tool)
Qual o preço da Honda PCX 125?
Tem Honda Forza 350 em stock?
Quais as cores disponíveis para a Honda SH 125?
Analytics Questions (Activates Analytics Tool)
Quantos utilizadores ativos agora?
Qual a página mais visitada?
Mostrar estatísticas da última semana
General Conversation (No Tool Activation)
Olá, tudo bem?
Que motos vendem?
Onde ficam localizados?
Supported Models
- Honda PCX 125
- Honda Forza 125/350
- Honda SH 125
- Honda Vision 110
- Honda CBR 650R
Cost-Saving Implementation
System Prompt Optimization
- Concise role definition (under 50 tokens)
- Clear tool activation criteria
- Minimal context requirements
Tool Response Optimization
- Snippet-Only Returns: Only relevant text fragments
- Character Limits: Max 200 characters per snippet
- Structured Formatting: Efficient JSON responses
- No Full Documents: Prevents token waste
Function Calling Logic
// Tool activation decision tree
if (query.contains(["pressão", "pneus", "ajuste", "especificações"])) {
activateManualTool();
} else if (query.contains(["preço", "stock", "cor", "venda"])) {
activateCatalogTool();
} else if (query.contains(["estatísticas", "utilizadores", "métricas"])) {
activateAnalyticsTool();
} else {
respondDirectly(); // No tool activation
}
Performance Metrics
- Token Reduction: ~70% fewer input tokens
- Cost Efficiency: ~60% reduction in API costs
- Response Accuracy: Maintained at 90-95%
- Latency: <2 seconds for tool-assisted responses
Technical Architecture
Function Calling Flow
- Query Analysis: Determine tool relevance
- Tool Selection: Activate only necessary tools
- Snippet Extraction: Return minimal relevant data
- Response Generation: Combine tool output with AI response
Cost Control Measures
- Input Token Limits: Strict character limits
- Tool Timeout: 5-second maximum execution
- Fallback Handling: Direct response if tools fail
- Cache Strategy: Reuse common query results
What's inside
7 sections including cost optimization features, tool activation rules, usage examples, supported models, implementation details, performance metrics, and technical architecture
Change this for your project
- Replace
Honda PCX 125,Honda Forza 350, etc. with your own product models - Replace Portuguese keywords like
"pressão","pneus","ajuste"with your domain terms - Replace
activateManualTool(),activateCatalogTool(),activateAnalyticsTool()with your actual tool names
Where it goes
Keep it in your repository where the agent or team that needs it will read it.
Worth borrowing
- Tool activation decision tree based on query keywords to avoid unnecessary API calls
- Snippet-only returns with character limits to minimize token consumption
- Fallback to direct response when no tool matches, reducing latency and cost
Related Documents
SVI 2.0
Documents the SVI LoRA family for WanVideo I2V, covering version history, usage patterns, known limitations, and community workflows.
第一章 模型预处理
> 译者:[muxuezi](https://muxuezi.github.io/posts/1-premodel-workflow.html)
TVM: An Automated End-to-End Optimizing Compiler for Deep Learning
Describes TVM, a compiler that optimizes deep learning models for diverse hardware back-ends using graph-level and operator-level transformations.
Content Workflow
Defines a 6-stage content production pipeline with automated quality scoring and self-healing gates that enforce an 8.0 minimum score across four dimensions.