Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/project-llama/llamascript
World’s first and simplest AI-oriented programming language using Ollama.
https://github.com/project-llama/llamascript
no-code ollama
Last synced: about 23 hours ago
JSON representation
World’s first and simplest AI-oriented programming language using Ollama.
- Host: GitHub
- URL: https://github.com/project-llama/llamascript
- Owner: Project-Llama
- License: apache-2.0
- Created: 2024-04-30T20:53:03.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-05-29T16:43:30.000Z (8 months ago)
- Last Synced: 2024-10-30T01:02:22.474Z (3 months ago)
- Topics: no-code, ollama
- Language: Python
- Homepage: https://pypi.org/project/llamascript/
- Size: 117 KB
- Stars: 21
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# LlamaScript
[![Black Format](https://github.com/Project-Llama/llamascript/actions/workflows/format.yml/badge.svg)](https://github.com/Project-Llama/llamascript/actions/workflows/format.yml)
[![Upload to PyPi](https://github.com/Project-Llama/llamascript/actions/workflows/python-publish.yml/badge.svg)](https://github.com/Project-Llama/llamascript/actions/workflows/python-publish.yml)
[![CodeQL](https://github.com/Project-Llama/llamascript/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/Project-Llama/llamascript/actions/workflows/github-code-scanning/codeql)[![VS Code Extension Downloads](https://img.shields.io/visual-studio-marketplace/d/zanderlewis.llamascript?label=VS-Code%20Downloads)](https://marketplace.visualstudio.com/items?itemName=zanderlewis.llamascript)
![GitHub commit activity](https://img.shields.io/github/commit-activity/w/Project-Llama/llamascript?label=Commits)
![GitHub License](https://img.shields.io/github/license/Project-Llama/llamascript?label=License)LlamaScript is a no-code AI chatbot using Ollama.
## Table of Contents
- [LlamaScript](#llamascript)
- [Installation](#installation)
- [Usage](#usage)
- [License](#license)
- [Examples](https://github.com/Project-Llama/llamascript/blob/main/examples/)## Installation
You can install LlamaScript using pip:
```bash
pip install llamascript
```## Usage
To use LlamaScript, create a `.llama` file and write your script. Here are a few functions you can use:
```llamascript
use(...) // Specify the model to use
prompt(...) // Prompt the user for input
system(...) // System message for the AI
chat(...) // Chat with the user
save(...) // Save the model
```Here's an example:
```llamascript
use("llama3")
prompt("Why is the sky blue?")
chat()
```> [!NOTE]\
> For more examples see [here.](https://github.com/Project-Llama/llamascript/blob/main/examples/)You can then run LlamaScript with the following command:
```bash
llamascript myscript.llama
```## License
LlamaScript is licensed under the Apache 2.0 License. See [LICENSE](https://github.com/Project-Llama/llamascript/blob/main/LICENSE) for more information.