No-code AI chatbot using Ollama.
Project description
LlamaScript
LlamaScript is a no-code AI chatbot using Ollama.
Table of Contents
Installation
You can install LlamaScript using pip:
pip install llamascript
Usage
To use LlamaScript, create a llama file (no file extension) with the following commands:
IGNORE: Use this before the CHAT command to supress the welcome message.
USE <model>: This command loads the specified model.
SYSTEM <message>: This command sets the system prompt.
PROMPT <message>: This command sets the message to be sent to the chatbot.
CHAT: This command sends the message to the chatbot and prints the response.
Here's an example:
IGNORE
USE llama3
PROMPT Hello, how are you?
CHAT
[!NOTE]
For more examples see here.
You can then run LlamaScript with the following command:
llamascript
LlamaScript usually has a file extension of .llama
, but if it is ran as a main script, it is usually llama
(no file extension).
License
LlamaScript is licensed under the Apache 2.0 License.
Roadmap
Things to come in the future:
- An
API
command to serve on Flask - Plugins/Extensions handling (Help Wanted)
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
llamascript-0.6.3.tar.gz
(8.2 kB
view hashes)
Built Distribution
Close
Hashes for llamascript-0.6.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9ecce759c41ce2de5a71553d025bd78c9f64058868ec2e0b419281b9e2fd2e8 |
|
MD5 | fddcc72f9a7261f956efed61cc887d2e |
|
BLAKE2b-256 | 6195a419a7ab3341b3c1048bd3fbacb5315c141124ac5aaa4c146c12a61fddfc |