Completion
Ollama model interactions
prompt := "What number is this?";
file := System.IO.Filesystem.File->New("../gemini/thirteen.png");
Completion->Generate("llava", prompt, file)->PrintLine();Operations
Generate
Generates a response from the model given an input
function : Generate(model:String, prompt:String) ~ StringParameters
| Name | Type | Description |
|---|---|---|
| model | String | model name (i.e. llama3, llava) |
| prompt | String | prompt |
Return
| Type | Description |
|---|---|
| String | query response |
Generate
Generates a response from the model given an input
function : Generate(model:String, prompt:String, format:String) ~ StringParameters
| Name | Type | Description |
|---|---|---|
| model | String | model name (i.e. llama3, llava) |
| prompt | String | prompt |
| format | String | output format |
Return
| Type | Description |
|---|---|
| String | query response |