---
title: "How Apps Script Became the Ultimate LLM Fine-Tuning Tool"
author: "Dmitry Kostyuk"
date: 2025-02-25T22:14:12+00:00
modified: 2025-02-25T22:16:59+00:00
canonical_url: https://pulse.appsscript.info/p/2025/02/how-apps-script-became-the-ultimate-llm-fine-tuning-tool/
markdown_url: https://pulse.appsscript.info/p/2025/02/how-apps-script-became-the-ultimate-llm-fine-tuning-tool.md
categories:
  - "Advanced"
  - "AI"
  - "Intermediate"
  - "Sheets"
tags:
  - "@wildhogsm"
  - "dmitry-kostyuk"
  - "ITNEXT"
  - "Medium"
  - "wurkspaces.dev"
featured_image: https://pulse.appsscript.info/files/2025/02/0_Nixm6fOH71hVnq3C.png
description: "In this article, Dmitry Kostyuk demonstrates how Google Apps Script can be a powerful tool as part of the process of fine-tuning a large language models (LLMs). To illustrate this, he shares a detailed example of how he used Apps Script to help tune a text-to-SQL chatbot. Dmitry guides you through the key stages from passing your data to launching the fine-tuning job in Vertex AI. Finally, Kostyuk discusses methods for testing the fine-tuned model and provides tips for maintaining a high-performing, domain-specific LLM."
---

# How Apps Script Became the Ultimate LLM Fine-Tuning Tool

![How Apps Script Became the Ultimate LLM Fine-Tuning Tool](https://pulse.appsscript.info/files/2025/02/0_Nixm6fOH71hVnq3C.png)

> If you have domain-specific knowledge that you want an LLM to leverage, you probably have a use case for fine-tuning. Fine-tuning can significantly improve how well the model understands and responds to your queries, whether it’s legal documents, medical texts, financial reports, or niche industry data.
> The most crucial step in this process is structuring your data correctly. If your dataset is well-organized and formatted properly, the rest of the workflow becomes much more manageable. From there, it’s just a matter of setting up a few configurations and automating parts of the process with Apps Script. That’s where things get interesting and surprisingly efficient.

*Source: [How Apps Script Became the Ultimate LLM Fine-Tuning Tool*](https://medium.com/itnext/how-apps-script-became-the-ultimate-llm-fine-tuning-tool-a8e91de9f2f5?sk=ed5a7b4dab97346629632d9f506af877)

---

*Published by [Dmitry Kostyuk](https://pulse.appsscript.info/p/author/dmitrykostyuk/) on [Pulse](https://pulse.appsscript.info/). Original article: [https://pulse.appsscript.info/p/2025/02/how-apps-script-became-the-ultimate-llm-fine-tuning-tool/](https://pulse.appsscript.info/p/2025/02/how-apps-script-became-the-ultimate-llm-fine-tuning-tool/)*
