AskIt: Unified Programming Interface for Programming with Large Language Models
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) exhibit a unique phenomenon known as emergent abilities, demonstrating adeptness across numerous tasks, from text summarization to code generation. While these abilities open up novel avenues in software design and crafting, their incorporation presents substantial challenges. Developers face decisions regarding the use of LLMs for directly performing tasks within applications as well as for generating and executing code to accomplish these tasks. Moreover, effective prompt design becomes a critical concern, given the necessity of extracting data from natural language outputs. To address these complexities, this paper introduces AskIt, a domain-specific language (DSL) specifically designed for LLMs. AskIt simplifies LLM integration by providing a unified interface that not only allows for direct task execution using LLMs but also supports the entire cycle of code generation and execution. This dual capability is achieved through (1) type-guided output control, (2) template-based function definitions, and (3) prompt generation for both usage modes. Our evaluations underscore AskIt's effectiveness. Across 50 tasks, AskIt generated concise prompts, achieving a 16.14 % reduction in prompt length compared to benchmarks. Additionally, by enabling a seamless transition between using LLMs directly in applications and for generating code, AskIt achieved significant efficiency improvements, as observed in our GSM8K benchmark experiments. The implementations of AskIt in TypeScript and Python are available at https://github.com/katsumiok/ts-askit and https://github.com/katsumiok/pyaskit, respectively.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 21 of its 38 references that are in the map. First posted on arXiv 29 Aug 2023.
Builds on
21 of 38 references.
References · 21
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023GPT-4 Technical Reportcited by 18,396
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,374
- 2022Emergent Abilities of Large Language Modelscited by 2,512
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
- 2023MetaGPT: Meta Programming for A Multi-Agent Collaborative Frameworkcited by 1,808
- 2022Competition-Level Code Generation with AlphaCodecited by 1,462
- 2023Gorilla: Large Language Model Connected with Massive APIscited by 1,332
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 906
9 more
- 2023StarCoder: may the source be with you!cited by 799
- 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 498
- 2019Analysing Mathematical Reasoning Abilities of Neural Modelscited by 335
- 2023OctoPack: Instruction Tuning Code Large Language Modelscited by 189
- 2022Prompting Is Programming: A Query Language for Large Language Modelscited by 110
- 2021Jigsaw: Large Language Models meet Program Synthesiscited by 103
- 2022Parsel: Algorithmic Reasoning with Language Models by Composing Decompositionscited by 64
- 2019Unsupervised Question Answering by Cloze Translationcited by 59
- 2016Neural Paraphrase Generation with Stacked Residual LSTM Networkscited by 52
Built on by
Citing papers per year: 2024: 2; 2025: 1; 2026: 2.
5 papers.
- 2024APPL: A Prompt Programming Language for Harmonious Integration of Programs and Large Language Model Promptscited by 8
- 2024Survey of User Interface Design and Interaction Techniques in Generative AI Applicationscited by 4
- 2026NVIDIA-labs OO Agents: Native Python Object-Oriented Agentscited by 3
- 2025Lumos: Let there be Language Model System Certificationcited by 1
- 2026CogniConsole: Externalizing Inference-Time Control as a Formal Abstraction for Reliable LLM Interactionscited by 0
- 2026NVIDIA-labs OO Agents: Native Python Object-Oriented Agents22 Jul 2026
- 2026CogniConsole: Externalizing Inference-Time Control as a Formal Abstraction for Reliable LLM Interactions21 Apr 2026
- 2025Lumos: Let there be Language Model System Certification2 Dec 2025
- 2024Survey of User Interface Design and Interaction Techniques in Generative AI Applications28 Oct 2024
- 2024APPL: A Prompt Programming Language for Harmonious Integration of Programs and Large Language Model Prompts19 Jun 2024