{"by":"Evan-Almloff","descendants":7,"id":39540445,"kids":[39541959,39545856,39541897,39544448,39541377,39541893],"score":66,"text":"Hi everyone, I&#x27;m happy to announce the release of Kalosm! [Kalosm](<a href=\"https:&#x2F;&#x2F;floneum.com&#x2F;kalosm&#x2F;\" rel=\"nofollow\">https:&#x2F;&#x2F;floneum.com&#x2F;kalosm&#x2F;</a>) is a framework for embedded AI in rust.<p>## What is Kalosm?<p>Kalosm provides a simple interface for pre-trained language, audio, and image models models. To make it easy to use with these models in your application, Kalosm includes a set of integrations other systems like your database or documents.<p>```rust\nuse kalosm::language::*;<p>#[tokio::main]\nasync fn main() {\n    let mut model = Llama::new_chat();<p><pre><code>    let mut chat = Chat::builder(&amp;mut model)\n        .with_system_prompt(&quot;The assistant will act like a pirate&quot;)\n        .build();\n\n    loop {\n        chat.add_message(prompt_input(&quot;\\n&gt; &quot;).unwrap())\n            .await\n            .unwrap()\n            .to_std_out()\n            .await\n            .unwrap();\n    }</code></pre>\n}\n```<p>## What can you build with Kalosm?<p>Kalosm is designed to be a flexible and powerful tool for building AI into your applications. It is a great fit for any application that uses AI models to process sensitive information where local processing is important.<p>Here are a few examples of applications that are built with Kalosm:<p>- Floneum (<a href=\"https:&#x2F;&#x2F;floneum.com&#x2F;\" rel=\"nofollow\">https:&#x2F;&#x2F;floneum.com&#x2F;</a>): A local open source workflow editor and automation tool that uses Kalosm to provide natural language processing and other AI features.<p>- Kalosm Chat (<a href=\"https:&#x2F;&#x2F;github.com&#x2F;floneum&#x2F;kalosm-chat\">https:&#x2F;&#x2F;github.com&#x2F;floneum&#x2F;kalosm-chat</a>): A simple chat application that uses Kalosm to run quantized language models.<p>## Kalosm 0.2<p>The 0.2 release includes several new features and some performance improvements:<p>- Tasks and Agents<p>- Task Evaluation<p>- Prompt Auto-Tuning<p>- Regex Validation<p>- Surreal Database Integration<p>- RAG improvements<p>- Performance Improvements<p>- New Models<p>If you have any questions, feel free to ask them here, in the discord (<a href=\"https:&#x2F;&#x2F;discord.gg&#x2F;dQdmhuB8q5\" rel=\"nofollow\">https:&#x2F;&#x2F;discord.gg&#x2F;dQdmhuB8q5</a>) or on GitHub (<a href=\"https:&#x2F;&#x2F;github.com&#x2F;floneum&#x2F;floneum&#x2F;tree&#x2F;master&#x2F;interfaces&#x2F;kalosm\">https:&#x2F;&#x2F;github.com&#x2F;floneum&#x2F;floneum&#x2F;tree&#x2F;master&#x2F;interfaces&#x2F;ka...</a>).<p>To get started with Kalosm, you can follow the quick start guide: <a href=\"https:&#x2F;&#x2F;floneum.com&#x2F;kalosm&#x2F;docs&#x2F;\" rel=\"nofollow\">https:&#x2F;&#x2F;floneum.com&#x2F;kalosm&#x2F;docs&#x2F;</a>","time":1709138600,"title":"Show HN: Kalosm an embeddable framework for pre-trained models in Rust","type":"story","url":"https://floneum.com/blog/kalosm_0_2/"}