Using Cherry Studio with an Emacs Lisp Knowledge Base


How to use Cherry Studio with Emacs Lisp knowledge base:

The GNU Project is the original free software movement. The free software movement has been around for over 40 years, and it has been a powerful force for change. The GNU Project is the original free software movement, and it has been a powerful force for change for over 40 years. The free software movement is about giving users the freedom to run, copy, distribute, study, change and improve the software. The GNU Project is the original free software movement, and it has been a powerful force for change for over 40 years. The free software movement is about giving users the freedom to run, copy, distribute, study, change and improve the software.

To use Cherry Studio with Emacs Lisp knowledge base, you need to follow a few steps. First, you need to clone the Emacs sources to your local machine. This can be done by running the following command in your terminal:

git clone https://git.savannah.gnu.org/git/emacs.git

Once you have cloned the Emacs sources, navigate to the directory where you want to work:

cd emacs

Now, let’s find the directory containing the Emacs Lisp reference manual:

cd lispref

To convert the Emacs Lisp reference manual into a text format, we’ll use the texi2any command. This will allow us to import the document into Cherry Studio. Run the following command in the terminal:

texi2any \ -D EMACSVER=31.0.50 \ -I ../emacs \ –no-headers –no-split –plaintext \ elisp.texi -o elisp.txt

This command will generate the elisp.txt file, which you can then drag into Cherry Studio’s new knowledge base.

To start the embedding and reranker model, open a new terminal window and run the following command:

/usr/local/bin/llama-server -ngl 999 -v -c 8192 -ub 1024 –embedding –log-timestamps –host 0.0.0.0 –port 9999 -m /mnt/nvme0n1/LLM/nomic-ai/quantized/nomic-embed-text-v1.5-Q8_0.gguf

And for the reranker model, run:

/usr/local/bin/llama-server –rerank -m /mnt/nvme0n1/LLM/quantized/bge-reranker-v2-m3-q8_0.gguf -v -c 8192 -ub 2048 –log-timestamps –host 192.168.1.68 –port 7676

These commands will start the embedding and reranker models, allowing Cherry Studio to index and search the Emacs Lisp documentation.

Now that the setup is complete, you can use almost any local LLM to answer questions about Emacs Lisp. Simply drag the elisp.txt file into Cherry Studio’s new knowledge base and start asking questions.

Jean Louis, Free Software Supporter since 1999