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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: llamascript-0.6.4.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.4.tar.gz
Algorithm Hash digest
SHA256 31fcf8738c54b834ad905d66476883a92d1a6f128bcf3ac497d8ea6d2fb19304
MD5 575ff74132c83cabbd93c16972d2cd58
BLAKE2b-256 4155a5ec34dc066187f99104801a9fd1f0f8c2fe3fa47b64eb7b595e0620d800

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: llamascript-0.6.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 de7c8c2e0265035414e99d6ef3ce261aa54a299bd856e33f2d312fe3284bcbe7
MD5 e6ea307b46dcd6ad238dd48a12bb00be
BLAKE2b-256 e1f0f302676a9cde47de0f26b0890b395708ee24755534bce8e3eba511daf407

See more details on using hashes here.

Provenance

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