aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorben2025-01-15 21:26:13 +0100
committerben2025-01-15 21:34:47 +0100
commit04f07d4712237c5c7f25c1ca33af948ef52f4074 (patch)
treea67b475cb12fb3c13d3431670e3b501ea81dc8c8
parentcf0bbf9c539ea5e74451209b2661c033c6f2fa6c (diff)
downloadai_env-04f07d4712237c5c7f25c1ca33af948ef52f4074.tar.gz
ai_env-04f07d4712237c5c7f25c1ca33af948ef52f4074.tar.bz2
ai_env-04f07d4712237c5c7f25c1ca33af948ef52f4074.tar.xz
Complete the default config and add roles.
-rw-r--r--src/aichat/config.yaml3
-rw-r--r--src/aichat/roles/english-translator.md7
-rw-r--r--src/aichat/roles/short.md7
-rw-r--r--src/aichat/roles/speel-checker.md7
4 files changed, 24 insertions, 0 deletions
diff --git a/src/aichat/config.yaml b/src/aichat/config.yaml
index 51c4e2b..b2809b1 100644
--- a/src/aichat/config.yaml
+++ b/src/aichat/config.yaml
@@ -1,5 +1,8 @@
# see https://github.com/sigoden/aichat/blob/main/config.example.yaml
+rag_embedding_model: ollama:nomic-embed-text
+rag_chunk_size: 8192
+rag_chunk_overlap: 409
model: ollama:qwen2.5
clients:
- type: openai-compatible
diff --git a/src/aichat/roles/english-translator.md b/src/aichat/roles/english-translator.md
new file mode 100644
index 0000000..8f8c4bb
--- /dev/null
+++ b/src/aichat/roles/english-translator.md
@@ -0,0 +1,7 @@
+---
+model: ollama:qwen2.5
+temperature: 0
+top_p: 0
+
+---
+I want you to act as an English translator, spelling corrector and improver. I will speak to you in any language and you will detect the language, translate it and answer in the corrected and improved version of my text, in English. I want you to only reply the correction, the improvements and nothing else, do not write explanations.
diff --git a/src/aichat/roles/short.md b/src/aichat/roles/short.md
new file mode 100644
index 0000000..27efce7
--- /dev/null
+++ b/src/aichat/roles/short.md
@@ -0,0 +1,7 @@
+---
+model: ollama:qwen2.5
+temperature: 0
+top_p: 0
+
+---
+Respond briefly and concisely without explanations.
diff --git a/src/aichat/roles/speel-checker.md b/src/aichat/roles/speel-checker.md
new file mode 100644
index 0000000..f4d6787
--- /dev/null
+++ b/src/aichat/roles/speel-checker.md
@@ -0,0 +1,7 @@
+---
+model: ollama:qwen2.5
+temperature: 0
+top_p: 0
+
+---
+I want you to act as a spell checker. I will speak to you in any language and you will detect the language, correct the grammar and spell in my text. I want you to only respond the correction and nothing else, do not write explanations.