Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note that some of these functions make use of proprietary software, which could incur additional runtime charges.

inference

Run LLM inference on a string

Code Block
languagejs
charityengine.inference(model, prompt, assets, context, system, template, options)
PARAMETERS
  model // Name of the model to use [string] [required]
  prompt // Text to pass to the model as input [string] [required]
  assets // Images or files [array of string]
  context // Additional context for the model [string]
  system // System parameters for the model [string]
  template // Template to guide response format [string]
  options // Additional options for the request [object]

embeddings

Generate a vector embedding for a string

Code Block
languagejs
charityengine.embeddings(model, prompt)
PARAMETERS
  model // Name of the model to use [string] [required]
  prompt // Text to pass to the model as input [string] [required]

wolframengine

Run Wolfram Language Code

Code Block
languagejs
charityengine.wolframengine(commandline, inputfile)
PARAMETERS
  commandline // Command to execute within the application [string] [required]
  inputfile // Names of local files to use as input [array of string]

To For example, to generate a chi-squared distribution with with v degrees of freedom using Wolfram Engine:

Code Block
languagetext
charityengine.wolframengine('ChiSquareDistribution[v]')
  .then(response => console.log('Response:', response))
  .catch(error => console.error('Error:', error));

vina

Run a protein-ligand binding simulation

Code Block
languagejs
charityengine.vina(commandline, inputfile)
PARAMETERS
  commandline // Command line for the application [string] [required]
  inputfile // Names of local files to use as input [array of string]

blastp

Compare an amino acid sequence (protein sequence) against a protein sequence database

Code Block
languagejs
charityengine.blastp(commandline, inputfile)
PARAMETERS
  commandline // Command line for the application [string] [required]
  inputfile // Names of local files to use as input [array of string]

...