Case #1856 · IT & Internet · Cross-industry

Nexthink fine-tunes a 7B Llama model on Amazon SageMaker to translate natural language into NQL queries for…

Nexthink fine-tuned a 7B Llama model with LoRA for natural language to NQL query translation, improving accuracy by 30% and reducing token consumption by 80%.

Evidence score
96
Third-party verified · High
AI capability
Generative AI
Capability as labeled by source
Industry scope
IT & Internet
Cross-industry
Maturity
Live
Verified case
01 — Background

What was the challenge

Challenge as recorded by the sourceNexthink's NQL query language is powerful but creates a barrier for non-technical users, while demand for DEX insights was growing among other IT teams, HR and employees. Prompt engineering and RAG left performance inconsistent for complex queries, and prompting a general-purpose LLM brought high token costs and slow responses over the fu…
02 — How it works

What they actually did

1

Fine-tuned a 7-billion-parameter Llama model with LoRA on Amazon SageMaker, specifically for natural language to NQL translation.

2

Built a golden dataset: first annotated by employees via SageMaker Ground Truth, then labeled by Claude 3.5 Sonnet acting as a judge, with manual spot checks.

3

After fine-tuning, query accuracy improved by 30%, token usage decreased by 80%, covering the entire data model.

Practice as recorded by the sourceNexthink fine-tuned a 7 billion parameter Llama model with LoRA on Amazon SageMaker to power NL2NQL, the tool behind the Nexthink Assist agent that translates natural language into NQL queries. It built a golden dataset of questions and queries, first annotated by employees through SageMaker Ground Truth and then labelled by Anthropic Claude 3.5 Sonnet on Amazon Bedrock, with the LLM also acting as a judge and humans validating samples.
TAKEAWAY
What you can reuse
SMEs can reuse its data preparation method of 'building a golden dataset + LLM-assisted labeling + manual spot checks', as well as the idea of using fine-tuning instead of pure prompting to reduce costs and improve efficiency.
03 — Risks & pitfalls

Know this before you try

Analyst judgment · risks and limitsThe numbers come from the AWS blog; fine-tuning requires substantial compute, high-quality datasets, and dedicated engineering effort, so small teams need to weigh the complexity.
Evidence & sourcing reminderThis entry is third-party verified (evidence grade High, evidence score 96). All figures are quoted from third-party verification sources; trace them back to primary sources before citing externally. Rollout time and gains vary by company.
04 — Results & evidence

What the results were

Organization: Nexthink · Third-party verified

Reported resultsAfter fine-tuning, the source reports a 30% improvement in query accuracy, an 80% reduction in token usage and support across Nexthink's entire data model. The source also notes the trade-off of increased complexity: fine-tuning needs substantial compute, high-quality datasets and dedicated engineering effort. Figures are as reported in the AWS blog post.

Figures are third-party verified, not measured by this site.

Source: https://aws.amazon.com/blogs/alps/how-nexthink-builds-enterprise-ai-agents-using-fine-tuned-llms-with-amazon-sagemaker