Fig 2. A forward pass through an LLM to produce an output from the user
input
Creation of Replicate API
Token
An Application Programming Interface (API) serves as an intermediary
between different software systems, allowing them to communicate and
interact with each other. An API defines the methods and protocols that
developers can use to access the functionality and data of some other
application or an online platform. An API token, also called an API key
or authentication token, is a unique and secure piece of data used to
authenticate and authorize access to an API. It acts as a credential
that allows a developer or an application to interact with an API in a
secure manner. An API token was generated for accessing Large Language
models like Llama from a platform called Replicate which hosts open
source machine learning models as shown in Fig 3. This API token was
further used to employ Llama 2 LLM with 70 billion parameters for
generating the python code from the textual content extracted from the
uploaded flowchart image.