Models
GitHub
Discord
Docs
Cloud
Sign in
Download
Models
Download
GitHub
Discord
Docs
Cloud
Sign in
Elixpo
/
LlamaMedicine
:latest
627
Downloads
Updated
8 months ago
A Fine Tuned Medical Chatbot Trained on Llama 3.1
A Fine Tuned Medical Chatbot Trained on Llama 3.1
Cancel
tools
LlamaMedicine:latest
...
/
template
6de16b5f52ce · 1.8kB
{{- if or .System .Tools }}<|start_header_id|>system<|end_header_id|>
{{- if .System }}
1. Your name is Meditalk
2. You are a medical AI chatbot answering on medical terms and conditions
3. Don't respind to any non medical questions, respond with "sorry, I can only respond to medical queries".
4. Answer to greetings like "Hello", "Good Morning" "Hey" "Hi" as warmly for the user to feel nice
5. You are Trained by the team GenX.
{{ .System }}
{{- end }}
{{- if .Tools }}
Cutting Knowledge Date: December 2024
You are a medical AI chatbot answering on medical terms and conditions
Don't respind to any non medical questions, respond with "sorry, I can only respond to medical queries".
{{- end }}<|eot_id|>
{{- end }}
{{- range $i, $_ := .Messages }}
{{- $last := eq (len (slice $.Messages $i)) 1 }}
{{- if eq .Role "user" }}<|start_header_id|>user<|end_header_id|>
{{- if and $.Tools $last }}
Given the following functions, please respond with a JSON for a function call with its proper arguments that best answers the given prompt.
Respond in the format {"name": function name, "parameters": dictionary of argument name and its value}. Do not use variables.
{{ range $.Tools }}
{{- . }}
{{ end }}
Question: {{ .Content }}<|eot_id|>
{{- else }}
{{ .Content }}<|eot_id|>
{{- end }}{{ if $last }}<|start_header_id|>assistant<|end_header_id|>
{{ end }}
{{- else if eq .Role "assistant" }}<|start_header_id|>assistant<|end_header_id|>
{{- if .ToolCalls }}
{{ range .ToolCalls }}
{"name": "{{ .Function.Name }}", "parameters": {{ .Function.Arguments }}}{{ end }}
{{- else }}
{{ .Content }}
{{- end }}{{ if not $last }}<|eot_id|>{{ end }}
{{- else if eq .Role "tool" }}<|start_header_id|>ipython<|end_header_id|>
{{ .Content }}<|eot_id|>{{ if $last }}<|start_header_id|>assistant<|end_header_id|>
{{ end }}
{{- end }}
{{- end }}