emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/elisa e92628390b 82/98: Update example configuration


From: ELPA Syncer
Subject: [elpa] externals/elisa e92628390b 82/98: Update example configuration
Date: Wed, 17 Jul 2024 18:58:07 -0400 (EDT)

branch: externals/elisa
commit e92628390bd253ca419222a4405ab5954a88c7a9
Author: Sergey Kostyaev <kostyaev.sergey2@wb.ru>
Commit: Sergey Kostyaev <kostyaev.sergey2@wb.ru>

    Update example configuration
---
 README.org | 21 ++++++++++++++++-----
 1 file changed, 16 insertions(+), 5 deletions(-)

diff --git a/README.org b/README.org
index 33ce017c23..f8f308a21a 100644
--- a/README.org
+++ b/README.org
@@ -138,17 +138,28 @@ Removes collection and all its data from index.
 
 ** Configuration
 
-Example configuration. With default installation you don't need it.
+Example configuration.
 
 #+begin_src emacs-lisp
   (use-package elisa
     :init
     (setopt elisa-limit 5)
+    ;; reranker increases answer quality significantly
+    (setopt elisa-reranker-enabled t)
     (require 'llm-ollama)
-    (setopt elisa-embeddings-provider (make-llm-ollama :embedding-model 
"nomic-embed-text"))
-    (setopt elisa-chat-provider (make-llm-ollama
-                                :chat-model "sskostyaev/openchat:8k-rag"
-                                :embedding-model "nomic-embed-text")))
+    ;; gemma 2 works very good in my use cases
+    ;; it also boasts strong multilingual capabilities
+    (setopt elisa-chat-provider
+           (make-llm-ollama
+            :chat-model "gemma2:9b-instruct-q6_K"
+            :embedding-model "chatfire/bge-m3:q8_0"
+            ;; set context window to 8k
+            :default-chat-non-standard-params '(("num_ctx" . 8192))))
+    ;; this embedding model has stong multilingual capabilities
+    (setopt elisa-embeddings-provider (make-llm-ollama :embedding-model 
"chatfire/bge-m3:q8_0"))
+    :config
+    ;; searxng works better than duckduckgo in my tests
+    (setopt elisa-web-search-function 'elisa-search-searxng))
 #+end_src
 
 ***  ELISA Custom Variables



reply via email to

[Prev in Thread] Current Thread [Next in Thread]