A question solver plugin for ovos
Project description
LlamaCPP Persona
Give OpenVoiceOS some sass with LLaMA model in pure C/C++
Examples
- "What is best in life?"
- "Do you like dogs"
- "Does God exist?"
Usage
Spoken answers api
from ovos_solver_llamacpp import LlamaCPPSolver
LLAMA_MODEL_FILE = "./models/ggml-model-q4_0.bin"
# persona = "omniscient oracle" # hardcoded personas, "explainer"|"bob"|"omniscient oracle"
persona = "helpful, kind, honest, good at writing" # description of assistant
bot = LlamaCPPSolver({"model": LLAMA_MODEL_FILE,
"persona": persona})
sentence = bot.spoken_answer("Qual é o teu animal favorito?", {"lang": "pt-pt"})
# Meus animais favoritos são cães, gatos e tartarugas!
for q in ["Does god exist?",
"what is the speed of light?",
"what is the meaning of life?",
"What is your favorite color?",
"What is best in life?"]:
a = bot.get_spoken_answer(q)
print(q, a)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ovos-solver-llamacpp-plugin-0.0.0a1.tar.gz
.
File metadata
- Download URL: ovos-solver-llamacpp-plugin-0.0.0a1.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9384d5d2b7685079474ccfa4778e3d58c36b3c6734cf13b2a54e46719e807658 |
|
MD5 | 7d408b09b27803281b447bc95890537f |
|
BLAKE2b-256 | f4694633cd3ed4cd8240f83f4a2036ca972a9f373a4388e3a3887d2e9a7b790b |
File details
Details for the file ovos_solver_llamacpp_plugin-0.0.0a1-py3-none-any.whl
.
File metadata
- Download URL: ovos_solver_llamacpp_plugin-0.0.0a1-py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ce3b1578fb71f049f10a3de799f62aa3c033a4303457ef92137a5c88cf87386 |
|
MD5 | cea7ca666a13fed6c5febb448eff7209 |
|
BLAKE2b-256 | e6d3db58568a29f01cbb64b2c64d1ad3cab19f147ce98dcebd2ac40e05603706 |