1
1
mirror of https://github.com/leon-ai/leon.git synced 2024-12-24 09:12:20 +03:00
leon/README.md

268 lines
11 KiB
Markdown
Raw Normal View History

2019-02-10 15:26:50 +03:00
<p align="center">
2021-12-05 18:24:42 +03:00
<a href="https://getleon.ai"><img width="800" src="https://getleon.ai/img/hero-animation.gif" /></a>
2019-02-10 15:26:50 +03:00
</p>
2021-12-05 16:13:44 +03:00
<h1 align="center">
<a href="https://getleon.ai"><img width="96" src="https://getleon.ai/img/logo.svg" alt="Leon"></a><br>
Leon
</h1>
2019-02-10 15:26:50 +03:00
2022-09-03 14:12:41 +03:00
_<p align="center">Your open-source personal assistant.</p>_
2019-02-10 15:26:50 +03:00
<p align="center">
2021-03-21 10:08:20 +03:00
<a href="https://github.com/leon-ai/leon/blob/develop/LICENSE.md"><img src="https://img.shields.io/badge/license-MIT-blue.svg?label=License&style=flat" /></a>
<a href="https://github.com/leon-ai/leon/blob/develop/.github/CONTRIBUTING.md"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat" /></a>
<br>
<a href="https://github.com/leon-ai/leon/actions/workflows/build.yml"><img src="https://github.com/leon-ai/leon/actions/workflows/build.yml/badge.svg?branch=develop" /></a>
<a href="https://github.com/leon-ai/leon/actions/workflows/tests.yml"><img src="https://github.com/leon-ai/leon/actions/workflows/tests.yml/badge.svg?branch=develop" /></a>
<a href="https://github.com/leon-ai/leon/actions/workflows/lint.yml"><img src="https://github.com/leon-ai/leon/actions/workflows/lint.yml/badge.svg?branch=develop" /></a>
2021-03-13 11:59:52 +03:00
<br>
<a href="https://discord.gg/MNQqqKg"><img src="https://svgshare.com/i/V09.svg"/></a>
2019-02-10 15:26:50 +03:00
</p>
<p align="center">
<a href="https://getleon.ai">Website</a> ::
<a href="https://docs.getleon.ai">Documentation</a> ::
<a href="http://roadmap.getleon.ai">Roadmap</a> ::
2019-02-17 17:25:33 +03:00
<a href="https://github.com/leon-ai/leon/blob/develop/.github/CONTRIBUTING.md">Contributing</a> ::
<a href="https://blog.getleon.ai/the-story-behind-leon/">Story</a>
2019-02-10 15:26:50 +03:00
</p>
2023-03-26 05:21:22 +03:00
---
## Current State
### Why is there a small amount of contributors?
I'm taking a lot of time to work on the new core of Leon due to personal reasons. I can only work on it after work and on weekends. Hence, **I'm blocking any potential contribution as the whole core of Leon is coming with many breaking changes**. Many of you are willing to contribute in Leon (create new skills, help to improve the core, translations and so on...), a big thanks to every one of you!
I wish one day I could work on Leon full time, but it's not possible at the moment as I need to pay my bills. I have some ideas about how to monetize Leon in the future (Leon's core will always remain open source), but before to get there there is still a long way to go.
Until then, any financial support by [sponsoring Leon](http://sponsor.getleon.ai) is much appreciated 🙂
### How about large language models and Leon?
2023-03-26 05:21:22 +03:00
Since AI gained in popularity and large language models are getting more and more traction, many of you joined our community. A huge welcome to all of you! 🤗
At the moment, Leon's NLU will remain intents first with his own model without relying on an LLM. It is important that Leon can run 100% offline and I'm confident that with the downsizing techniques such as quantization Leon will sooner or later work with LLMs at his core and still be able to run on edge.
Here is how LLMs may help Leon in the future:
- Intent fallback: when an utterance cannot match an intent, then rely on an LLM to provide results.
- New named entity recognition engine: provide a better solution to extract entities from utterances such as fruits, numbers, cities, durations, persons, etc.
- Skill features: let skills leverage LLMs to provide out-of-the-box NLP features such as summarization, translation, sentiment analysis and so on...
- Skill building: LLMs can help to develop skills such as paraphrasing utterance samples, translate answers, convert code from our Python bridge to the upcoming JavaScript bridge and vice versa, etc.
- More...
### What's Next?
2023-05-01 05:09:29 +03:00
Once the new core released, we'll work on the community aspect of Leon. For example, better organize [our Discord](https://discord.gg/MNQqqKg), planify regular calls, work on skills together, etc. It is very important for Leon to have a real community. At that moment, the skills platform will already be online, so it'll be easier to sync our progress and publish new skills.
2023-03-26 05:21:22 +03:00
- Feel free to check out the Git development branches and our [next major milestones](https://blog.getleon.ai/a-much-better-nlp-and-future-1-0-0-beta-7/#whats-next).
- And the [detailed roadmap](http://roadmap.getleon.ai).
2023-05-01 05:09:29 +03:00
- Many exciting things are coming up, hence no new documentation and test are going to be written until the official release of Leon.
2023-03-26 05:21:22 +03:00
2023-05-01 05:09:29 +03:00
---
## Latest Release
Check out the [latest release blog post](https://blog.getleon.ai/binaries-and-typescript-rewrite-1-0-0-beta-8/).
<a href="https://blog.getleon.ai/binaries-and-typescript-rewrite-1-0-0-beta-8/"><img width="400" src="https://blog.getleon.ai/static/a0d1cbafd1968e7531dc17e229f8cc61/aa440/beta-8.png" /></a>
2019-02-10 15:26:50 +03:00
---
2021-03-16 16:16:17 +03:00
## 👋 Introduction
2019-02-10 15:26:50 +03:00
**Leon** is an **open-source personal assistant** who can live **on your server**.
2019-02-10 15:26:50 +03:00
He **does stuff** when you **ask him to**.
2019-02-10 15:26:50 +03:00
You can **talk to him** and he can **talk to you**.
You can also **text him** and he can also **text you**.
If you want to, Leon can communicate with you by being **offline to protect your privacy**.
### Why?
2019-02-10 15:26:50 +03:00
> 1. If you are a developer (or not), you may want to build many things that could help in your daily life.
2022-09-03 14:12:41 +03:00
> Instead of building a dedicated project for each of those ideas, Leon can help you with his
> Skills structure.
> 2. With this generic structure, everyone can create their own skills and share them with others.
2022-09-03 14:12:41 +03:00
> Therefore there is only one core (to rule them all).
2019-02-10 15:26:50 +03:00
> 3. Leon uses AI concepts, which is cool.
> 4. Privacy matters, you can configure Leon to talk with him offline. You can already text with him without any third party services.
2019-03-30 07:18:37 +03:00
> 5. Open source is great.
2019-02-10 15:26:50 +03:00
### What is this repository for?
2019-02-10 15:26:50 +03:00
> This repository contains the following nodes of Leon:
2022-09-03 14:12:41 +03:00
>
2019-02-10 15:26:50 +03:00
> - The server
> - Skills
2019-02-10 15:26:50 +03:00
> - The web app
> - The hotword node
> - The TCP server (for inter-process communication between Leon and third-party nodes such as spaCy)
> - The Python bridge (the connector between the core and skills made with Python)
2019-02-10 15:26:50 +03:00
### What is Leon able to do?
> Today, the most interesting part is about his core and the way he can scale up. He is pretty young but can easily scale to have new features (skills).
2022-09-05 08:45:01 +03:00
> You can find what he is able to do by browsing the [skills list](https://github.com/leon-ai/leon/tree/develop/skills).<br>
> Please do know that after the official release, we will build many skills along with the community. Feel free to [join us on Discord](https://discord.gg/MNQqqKg) to be part of the journey.
2022-09-05 08:45:01 +03:00
Sounds good to you? Then let's get started!
2019-02-10 15:26:50 +03:00
## ☁️ Try with a Single-Click
Gitpod will automatically set up an environment and run an instance for you.
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/leon-ai/leon)
2021-03-16 16:16:17 +03:00
## 🚀 Getting Started
2019-02-10 15:26:50 +03:00
### Prerequisites
- [Node.js](https://nodejs.org/) >= 16
- [npm](https://npmjs.com/) >= 8
2019-02-10 15:26:50 +03:00
- Supported OSes: Linux, macOS and Windows
To install these prerequisites, you can follow the [How To section](https://docs.getleon.ai/how-to/) of the documentation.
### Installation
```sh
# Install the Leon CLI
npm install --global @leon-ai/cli
2019-02-10 15:26:50 +03:00
# Install Leon (stable branch)
leon create birth
# OR install from the develop branch: leon create birth --develop
2019-02-10 15:26:50 +03:00
```
### Usage
```sh
# Check the setup went well
leon check
2019-02-10 15:26:50 +03:00
# Run
leon start
2019-02-10 15:26:50 +03:00
# Go to http://localhost:1337
# Hooray! Leon is running
```
2019-02-23 16:27:28 +03:00
### Docker Installation
```sh
# Install Leon
leon create birth --docker
2019-02-23 16:27:28 +03:00
# Run
leon start
2019-02-23 16:27:28 +03:00
# Go to http://localhost:1337
# Hooray! Leon is running
```
2021-03-16 16:16:17 +03:00
## 📚 Documentation
2019-02-10 15:26:50 +03:00
For full documentation, visit [docs.getleon.ai](https://docs.getleon.ai).
2021-12-05 16:13:44 +03:00
## 📺 Video
[Watch a demo](https://www.youtube.com/watch?v=p7GRGiicO1c).
## 🧭 Roadmap
2019-02-10 15:26:50 +03:00
To know what is going on, follow [roadmap.getleon.ai](http://roadmap.getleon.ai).
2019-02-10 15:26:50 +03:00
2021-03-16 16:16:17 +03:00
## ❤️ Contributing
2019-02-10 15:26:50 +03:00
2019-02-23 13:39:06 +03:00
If you have an idea for improving Leon, do not hesitate.
2019-02-10 15:26:50 +03:00
**Leon needs open source to live**, the more skills he has, the more skillful he becomes.
2019-02-10 15:26:50 +03:00
2021-03-16 16:16:17 +03:00
## 📖 The Story Behind Leon
2019-02-17 17:25:33 +03:00
You'll find a write-up on this [blog post](https://blog.getleon.ai/the-story-behind-leon/).
2021-03-16 16:16:17 +03:00
## 🔔 Stay Tuned
2022-02-19 04:24:34 +03:00
- [Twitter](https://twitter.com/grenlouis)
2022-08-23 18:40:55 +03:00
- [Newsletter](https://newsletter.getleon.ai/subscription/form)
2019-02-10 15:26:50 +03:00
- [Blog](https://blog.getleon.ai)
- [GitHub issues](https://github.com/leon-ai/leon/issues)
2021-12-05 16:13:44 +03:00
- [YouTube](https://www.youtube.com/channel/UCW6mk6j6nQUzFYY97r47emQ)
2022-09-03 14:12:41 +03:00
- [#LeonAI](<https://twitter.com/search?f=live&q=%23LeonAI%20(from%3Agrenlouis%20OR%20from%3Alouistiti_fr)&src=typed_query>)
2019-02-10 15:26:50 +03:00
2021-03-16 16:16:17 +03:00
## 👨 Author
2022-02-19 04:24:34 +03:00
**Louis Grenard** ([@grenlouis](https://twitter.com/grenlouis))
2019-02-10 15:26:50 +03:00
2021-08-07 12:54:16 +03:00
## 👍 Sponsors
<table>
<tbody>
<tr>
2022-11-01 16:44:44 +03:00
<td align="center" valign="middle" width="128">
<a href="https://github.com/Appwrite">
<img src="https://github.com/Appwrite.png?size=128" />
Appwrite
</a><br>
<sub><sup>250 USD / month</sup></sub>
</td>
2022-09-25 03:44:31 +03:00
<td align="center" valign="middle" width="128">
<img src="https://getleon.ai/img/anonymous.svg" width="128" />
Anonymous
<br>
<sub><sup>100 USD / month</sup></sub>
</td>
2023-01-31 18:22:31 +03:00
<td align="center" valign="middle" width="128">
<a href="https://github.com/herbundkraut">
<img src="https://github.com/herbundkraut.png?size=128" />
herbundkraut
</a><br>
<sub><sup>10 USD / month</sup></sub>
</td>
2022-02-04 05:22:52 +03:00
<td align="center" valign="middle" width="128">
<a href="http://sponsor.getleon.ai/">
2021-08-07 12:54:16 +03:00
You?
</a>
</td>
</tr>
</tbody>
</table>
2019-02-10 15:26:50 +03:00
You can also contribute by [sponsoring Leon](http://sponsor.getleon.ai).
2019-02-10 15:26:50 +03:00
2021-06-05 18:08:10 +03:00
Please note that I dedicate most of my free time to Leon.
By sponsoring the project you make the project sustainable and faster to develop features.
The focus is not only limited to the activity you see on GitHub but also a lot of thinking about the direction of the project. Which is naturally related to the overall design, architecture, vision, learning process and so on...
2021-12-07 17:44:22 +03:00
### Special Thanks
<a href="https://vercel.com/?utm_source=leon-ai&utm_campaign=oss">
<img src="https://i.imgur.com/S5olXWh.png" alt="Vercel" width="128" />
</a>
&nbsp; &nbsp; &nbsp;
<a href="https://www.macstadium.com/">
<img src="https://getleon.ai/img/thanks/mac-stadium.svg" alt="MacStadium" width="128" />
</a>
&nbsp; &nbsp; &nbsp;
<a href="https://www.aoz.studio">
2022-11-01 16:44:44 +03:00
<img src="https://getleon.ai/_next/image?url=%2Fimg%2Fthanks%2Faoz-studio.png&w=384&q=75" alt="AOZ Studio" width="128" />
</a>
2021-12-07 17:44:22 +03:00
2021-03-16 16:16:17 +03:00
## 📝 License
2022-09-03 14:12:41 +03:00
2019-02-10 15:26:50 +03:00
[MIT License](https://github.com/leon-ai/leon/blob/develop/LICENSE.md)
2022-08-23 18:01:46 +03:00
Copyright (c) 2019-present, Louis Grenard <louis@getleon.ai>
2019-02-10 15:26:50 +03:00
## Cheers!
2022-09-03 14:12:41 +03:00
![Cheers!](https://github.githubassets.com/images/icons/emoji/unicode/1f379.png 'Cheers!')