Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
CaCO3 committed Dec 22, 2024
1 parent 28c3cf3 commit 4103c68
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 7 additions & 3 deletions discussion-bot/response_data.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
; The trigger patterns are case-insensitive!
; Each trigger patterns must be on its own line.
; Comments can be added with a ; at the start of the line.
; It is suggested to start each data record with a comment explaining what it is about.

; 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
Expand All @@ -26,6 +33,3 @@ reflection
See LCD/Matrix xxx
LCD
matrix

See the [FAQ](https://jomjol.github.io/AI-on-the-edge-device-docs/FAQs/#rate-too-high-read)
Rate too high
8 changes: 2 additions & 6 deletions discussion-bot/response_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ def process_discussion(self, actor, title, body):
I am the (experimental) AIOTED-Bot 🤖
Have you already checked our [documentation](https://jomjol.github.io/AI-on-the-edge-device-docs)?
I analyzed your question and would like to help you.
Here are some useful links based on your input:
I analyzed your question and I might be able to help you. Here are some useful links based on your input:
"""

Expand Down Expand Up @@ -93,11 +92,8 @@ def process_discussion(self, actor, title, body):
title = args.title
body = args.body


print(os.path.realpath(__file__) + "/" + "response_data.txt")
rg = Response_Generator(os.path.dirname(__file__) + "/" + "response_data.txt")

response = rg.process_discussion(actor, title, body)

log.info("response:")
log.info(f"{response}")
log.info(f"response:\n{response}")

0 comments on commit 4103c68

Please sign in to comment.