Code Debugging with LLMs Trained on Code and Language
A Large Language Model that has been trained on datasets containing both natural language and programming code can be effectively applied to the task of code debugging.
0
1
Tags
Ch.2 Generative Models - Foundations of Large Language Models
Foundations of Large Language Models
Foundations of Large Language Models Course
Computing Sciences
Related
Code Debugging with LLMs Trained on Code and Language
Automated Text Correction for Marketing
A user wants a language model to not only correct a grammatical mistake in a sentence but also to understand the nature of the error. The original sentence is: 'The team's findings indicates a significant trend.' Which of the following prompts is best designed to achieve this dual goal of correction and error identification?
A user provides a language model with several incorrect sentences. Match each sentence containing an error with the most likely reasoning the model would use to identify and correct it.
Learn After
Evaluating AI Assistants for Code Debugging
A developer provides a Large Language Model (LLM) with the following Python code and a query:
Code:
def find_item_index(items, target): # Returns the index of the target item in the list. return items.index(target)Query: "My
find_item_indexfunction works, but it crashes my program with aValueErrorif thetargetisn't in theitemslist. How can I make it more robust so it just returns -1 instead of crashing?"Which of the following LLM responses best demonstrates its ability to integrate understanding of both the code's behavior and the developer's natural language request?
Advantages of Dual-Trained Models in Debugging