...
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 |
---|
|
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 |
---|
|
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 |
---|
|
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 |
---|
|
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 |
---|
|
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 |
---|
|
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] |
...