You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+13-12
Original file line number
Diff line number
Diff line change
@@ -2,13 +2,7 @@
2
2
3
3
Milla is an IRC bot that:
4
4
5
-
- sends things over to an LLM when you ask it questions and prints the answer with optional syntax-highlighting.<br/>
6
-
Currently supported providers:
7
-
8
-
* Ollama
9
-
* Openai
10
-
* Gemini
11
-
5
+
- sends things over to an LLM when you ask it questions and prints the answer with optional syntax-highlighting.Currently supported providers: Ollama, Openai, Gemini <br/>
12
6
- Milla can run more than one instance of itself
13
7
- Each instance can connect to a different ircd, and will get the full set of configs, e.g. different proxies, different postgres instance, ...
14
8
- You can define custom commands in the form of SQL queries to the database with the SQL query result being passed to the bot along with the given prompt and an optional limit so you don't go bankrupt(unless you are running ollama locally like the smart cookie that you are).<br/>
@@ -247,13 +241,20 @@ Custom commands let you define a command that does a SQL query to the database a
247
241
248
242
```toml
249
243
[ircd.devinet_terra.customCommands.digest]
250
-
sql = "select log from liberanet_milla_us_market_news;"
251
-
limit = 10
252
-
prompt = "give me digest of the provided news"
244
+
sql = "select log from liberanet_milla_us_market_news order by log desc;"
245
+
limit = 300
246
+
context = ["you are a sentiment-analysis bot"]
247
+
prompt= "i have provided to you news headlines in the form of previous conversations between you and me using the user role. please provide the digest of the news for me."
253
248
[ircd.devinet_terra.customCommands.summarize]
254
-
sql= "select log from liberanet_milla_us_market_news;"
249
+
sql= "select log from liberanet_milla_us_market_news order by log desc;"
255
250
limit= 300
256
-
prompt= "given all the data, summarize the news for me"
251
+
context = ["you are a sentiment-analysis bot"]
252
+
prompt= "i have provided to you news headlines in the form of previous conversations between you and me using the user role. please summarize the provided news for me. provide some details."
253
+
[ircd.devinet_terra.customCommands.canada]
254
+
sql= "select log from liberanet_milla_us_market_news order by log desc;"
255
+
limit= 300
256
+
context = ["you are a canadian news anchor", "you only care about news that is relevant to canada"]
257
+
prompt= "i have provided to you news headlines in the form of previous conversations between you and me using the user role. please summarize the provided news for me. provide some details."
257
258
```
258
259
259
260
In the above example digest and summarize will be the names of the commands: `milla: /cmd summarize`.<br/>
0 commit comments