165 Downloads Updated 1 year ago
Updated 1 year ago
1 year ago
8a576dba418a · 7.7GB ·
Polaris is a family of large language models, developed by StarfleetAI with the aim of being used for autonomous AI agent scenarios. Its target characteristics include the ability to call functions, a low hallucination rate, multimodality, and exceptional coding abilities.
Model on HuggingFace • Code on GitHub
We wanted our prompt to:
system prompt part, which is meant to be changed by the end user.In order to fullfill these needs, we designed the prompt format, which seems to tick all the boxes.
## Configuration
Functions: enabled
## Available Functions
{ ... }
{ ... }
---
You are a helpful assistant.
## Configuration
Functions: disabled
---
You are a helpful assistant.
In order for the model to call a function, we have introduced two new tokens: <|fn_start|> and <|fn_end|>. It’s safe to assume that if the model decides to call a function, there will be no other response from it except for the function call between these special tokens. If this is not true for some of your cases, please feel free to contact us with examples.
For now, the model is only capable of calling one function at a time.
<|fn_start|>{"name": "generate_password", "arguments": {"length": 42}}<|fn_end|>
The model expects the function call response to be provided from a role tool right after the function call request:
<|im_start|>tool
{"result": "87cc47fbc865a290d7c7de4be3c893175c51a566b3"}<|im_end|>
There are no specific requirements on the response format. Feel free to respond with anything you want.
[!NOTE]
Newlines after the<|im_end|>are included here only for ease of reading. In the actual chat template, we don’t use newlines in this position.
<|im_start|>system
## Configuration
Functions: enabled
## Available Functions
{"name": "generate_password", "description": "Generate a random password", "parameters": {"type": "object", "properties": {"length": {"type": "integer", "description": "The length of the password"}}, "required": ["length"]}}
---
You are a helpful assistant.<|im_end|>
<|im_start|>user
Generate a password, 42 characters long<|im_end|>
<|im_start|>assistant
<|fn_start|>{"name": "generate_password", "arguments": {"length": 42}}<|fn_end|><|im_end|>
<|im_start|>tool
{"result": "87cc47fbc865a290d7c7de4be3c893175c51a566b3"}<|im_end|>
<|im_start|>assistant
Here is your random password: 87cc47fbc865a290d7c7de4be3c893175c51a566b3. Please make sure to save it in a secure place.<|im_end|>