From a26610044483ddd323479d748af401382b8df210 Mon Sep 17 00:00:00 2001 From: Vika Date: Wed, 4 Sep 2024 19:49:26 +0300 Subject: Smart Summary is now working! There's no preferences dialog, so you can't really adjust the prompt or the model it uses. The default settings work well for me. You may want to tweak them depending on your model preferences and compute budget. (Not many can afford to run Llama3-8B at high quantization. Conversely, you might have a better GPU than me and wish to run a 27B model or bigger.) --- .../xyz.vikanezrimaya.kittybox.Bowl.gschema.xml.in | 48 ++++++++++++++++++++++ 1 file changed, 48 insertions(+) (limited to 'data') diff --git a/data/xyz.vikanezrimaya.kittybox.Bowl.gschema.xml.in b/data/xyz.vikanezrimaya.kittybox.Bowl.gschema.xml.in index 81e0b13..4cec9d1 100644 --- a/data/xyz.vikanezrimaya.kittybox.Bowl.gschema.xml.in +++ b/data/xyz.vikanezrimaya.kittybox.Bowl.gschema.xml.in @@ -1,5 +1,53 @@ + + "http://localhost:11434/" + LLM API endpoint + + Ollama API endpoint used to query an LLM for Smart Summary. + + + + "llama3.1:8b-instruct-q8_0" + Smart Summary LLM + + + Ollama library. + ]]> + + + + "You are a helpful AI assistant embedded into a blog authoring tool. You will be provided with a text to summarize. Reply only, strictly with a one-sentence summary of the provided text, and don't write anything else." + LLM system prompt + + The system prompt provided to the LLM. For best results, it + should instruct the LLM to provide a one-sentence summary of + the document it receives. + + The default system prompt is tested for Llama 3.1-8B and + should work for posts written mainly in English. Performance + with other languages is untested. + + + + "Summarize the following text:" + Smart Summary prompt prefix + + What the text is prefixed with when pasted into the LLM prompt. + + Something like "Summarize this text:" works well. + + + + "" + Smart Summary prompt suffix + + Append this to the prompt after the article text. + + -- cgit 1.4.1