From 04f07d4712237c5c7f25c1ca33af948ef52f4074 Mon Sep 17 00:00:00 2001 From: ben Date: Wed, 15 Jan 2025 21:26:13 +0100 Subject: Complete the default config and add roles. --- src/aichat/config.yaml | 3 +++ src/aichat/roles/english-translator.md | 7 +++++++ src/aichat/roles/short.md | 7 +++++++ src/aichat/roles/speel-checker.md | 7 +++++++ 4 files changed, 24 insertions(+) create mode 100644 src/aichat/roles/english-translator.md create mode 100644 src/aichat/roles/short.md create mode 100644 src/aichat/roles/speel-checker.md (limited to 'src') 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. -- cgit v1.2.3