Code Generator
Utilise a LLM to generate code.
The following demonstration uses Google Cloud's PaLM 2 language model, OpenAI's GPT-3.5 and MistralAI's 7B to create code snippets.
Instructions
- Select from one of the example functions or select a model from the drop-down and enter an prompt.
- Click the Analyse button.
- View the generated code created by the different LLM Providers.
More information about this demo
This demo utilises four Large Language Models (LLMs); OpenAI's ChatGPT, Google's PaLM 2 and Mistral's 7B. A LLM is a form of Artificial Intelligence (AI), built on a expansive dataset, predominantly scraped from the internet. The main uses for these models are to generate, complete and summarise text; with a multitude of other potential use cases. They work by, based on the initial text input, continually predicting the most likely next token or word to create meaningful responses, in most cases. When working with such models, providing the best prompt to the model is important and this is known as prompt-engineering.
Things to consider
These tools will generate different responses to prompts each time they are run, so if you don't like a response, rerun the same parameters and get a differently constructed function. These models offer Multilinguality, Reasoning and Coding abilities, also coming in a variety of different sizes which allows it to be run on a variety of different machines; resulting in a highly versatile model.