Paclet Resource

AntonAntonov/Chatnik

CLI scripts for conversing with persistent LLM personas

Contributed By: Anton Antonov

Command Line Interface (CLI) scripts to manage and interact with multiple, persistent Large Language Model (LLM) chat objects. Access to repository prompts is provided via automatic prompt expansion. Access to chat object elements (history, models, etc.) facilitates the creation of useful CLI pipelines.

Installation Instructions

To install this paclet in your Wolfram Language environment, evaluate this code:
PacletInstall[ResourceObject["https://wolfr.am/1EaUfp9Tp"]]


To load the code after installation, evaluate this code:
Needs["AntonAntonov`Chatnik`"]

Details

The paclet provides Command Line Interface (CLI) scripts for conversing with- and managing persistent Large Language Model (LLM) personas.
The script "LLMChat" is used to interact with the chat objects.
The script "LLMChatMeta" is used to mange the chat objects -- deletion, getting context, first- or last message, clearing of messages, etc.
The script "LLMPrompt" is used to get the texts of repository prompts in the shell environment.
"Chatnik" uses the Wolfram Language persistent values functionalities in order to maintain persistent interaction with multiple LLM chat objects.
"Chatnik" can be seen as a package that "moves" the LLM-chat objects interaction system of the paclet "Chatbook" into typical OS shell interaction. (I.e. an OS shell is used instead of a Wolfram notebook.)
There are several consequences of this approach: (1) Multiple LLMs and LLM providers can be used, (2) The chat messages can use the provided by Wolfram Language prompts collection and prompt spec DSL, (3) Easy access to OS shell functionalities.

Examples

Disclosures

  • External services
  • Wolfram Language system configuration
  • Paclet dependencies
  • Local system interactions

Paclet Source

Source Metadata

See Also