Skip to main content

No-code AI chatbot using Ollama.

Project description

LlamaScript

Medium Post

Black Format Upload to PyPi CodeQL

VS Code Extension Downloads GitHub commit activity GitHub License

Discord

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


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.5.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

llamascript-0.6.5-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file llamascript-0.6.5.tar.gz.

File metadata

  • Download URL: llamascript-0.6.5.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.19

File hashes

Hashes for llamascript-0.6.5.tar.gz
Algorithm Hash digest
SHA256 3090bc511ca53047d5936b818d533b91c310c8a2475bab8f762d90976a64c355
MD5 521fca3984beb4ba6f300b9fbe01d0c6
BLAKE2b-256 5e45b87cadcb2496267af4058d24ecb821df0cd1b6d6ee7fd953668afe89a1ac

See more details on using hashes here.

File details

Details for the file llamascript-0.6.5-py3-none-any.whl.

File metadata

  • Download URL: llamascript-0.6.5-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.19

File hashes

Hashes for llamascript-0.6.5-py3-none-any.whl
Algorithm Hash digest
SHA256 60bbeb1955b85548323c355519cb716d7baa2870502601f3e6b31855ebc5d07d
MD5 1a3f0ccda531ab383f96681e1461fc6c
BLAKE2b-256 aee12f7040ff1f3f33ea742ec1dc0617cbc6643006b9abba3539c565b20a517a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page