forked from jomjol/AI-on-the-edge-device
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
116 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,39 @@ | ||
# Discussion Bot | ||
To parse a discussion and generate a response, acall it with | ||
The discussion bot can be used to create auto-responses on discussions. | ||
The `responses.md` file is used a sa database and contains responses and trigger words. | ||
When `response_generator.py` gets fed with a text, it parses the text, finds matching trigger words in the database and creates a list of suggestions. | ||
The suggestions, wrapped between the content of `response_intro.md` and `response_outro.md`, then get put together to a response. | ||
|
||
## Usage | ||
To parse a discussion and generate a response, call it with | ||
```bash | ||
python response_generator.py --actor <ACTOR> --title <TITLE> --body <BODY> | ||
``` | ||
|
||
Example: | ||
```bash | ||
python response_generator.py --actor "CaCO3" --title "Test" --body "--body "Hi all. I have always wrong value and reflections. Also home assistant does not get any data." | ||
python response_generator.py --actor "CaCO3" --title "Test" --body "Hi all. I have always wrong value and reflections. Also home assistant does not get any data." | ||
``` | ||
|
||
## Data Format | ||
It is important to make sure that the `responses.md` file has the right format! | ||
Altrough it is a markdown file and can be rendered by a markdown viewer, it actually is parsed by the script. | ||
Thus the format must be as following: | ||
- A response starts with a title line and must have a leading `#` followed by a whitespace. | ||
- The title can be empty. It also can be used to note some comments. | ||
- The title line is followed by a one-line response. All markdown keywords are allowed, but it must stay on one line. | ||
- Then one or more trigger words get listed as a list. Each line has one trigger word ar phrase. | ||
- It is suggested to separate the responses with empty lines for easier visual separation, although this is optional. | ||
|
||
Example: | ||
``` | ||
# Wrong Transitions | ||
Check parameter numberanalogtodigittransitionstart | ||
- lagging | ||
- late transition | ||
- early transition | ||
``` | ||
# Testing | ||
|
||
|
||
## Testing | ||
See [test/readme.md](test/readme.md) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Hi @{actor} | ||
|
||
I am the (experimental) [AIOTED](https://jomjol.github.io/AI-on-the-edge-device-docs/FAQs/#what-does-aioted-mean)-Bot 🤖 | ||
|
||
Have you already checked our [documentation](https://jomjol.github.io/AI-on-the-edge-device-docs)? | ||
I analyzed your question and I might be able to help you. Here are some useful links based on your input: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
If this all does not help and you need support of an experienced user or developer to look into it (after you really studied the documentation), you can write a reply with the text `help-needed`. | ||
Please be aware that we are a small team and run this project in our private and free time, so our time to give support is really limited! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Rate too high | ||
See the [Rate too high in our FAQ](https://jomjol.github.io/AI-on-the-edge-device-docs/FAQs/#rate-too-high-read) | ||
- Rate too high | ||
|
||
# Homeassistant | ||
Check HomeAssistant | ||
- homeassistant | ||
- Home Assistant | ||
- Home-assistant | ||
|
||
# Wrong Values | ||
Improve ROI, ... | ||
- wrong values | ||
|
||
# Wrong Transitions | ||
Check parameter numberanalogtodigittransitionstart | ||
- lagging | ||
- late transition | ||
- early transition | ||
- transition | ||
|
||
# Reflections | ||
Improve LED, diffusor, see xxx | ||
- reflection | ||
|
||
# LCD, Dot Display, Matrix | ||
See LCD/Matrix xxx | ||
LCD, matrix | ||
|
||
# shifted | ||
Make sure to set []() correctly. | ||
- shift | ||
- decimal place |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters