Smarter Prompt

Overview

Smarter Prompt manages prompt sessions and integrations between the Smarter backend and the ReactJS chat component used for managing sessions in the Smarter Chat in html integrations, as well as in the command-line interface (CLI).

Smarter Prompt is chiefly responsible for:

Smarter sessions do not expire unless deleted by an administrator as part of MySQL database disk space maintenance operations.

Note

Smarter sessions are distinct from Smarter LLMClients. A Smarter LLMClient is a resource that defines the configuration of an llm_client, including its system prompt, plugins, and other settings. A Smarter session, on the other hand, is an instance of a conversation with an llm_client, which includes the complete history of messages exchanged during that conversation.

Smarter sessions originate in Smarter Prompt, are passed to the ReactJS component as part of the configuration object, and are stored as browser cookies. Smarter session identifiers are a GUID-like string that, with a high level of certainty, uniquely identify a session.

Smarter sessions are distinct to the device/browser in which they are created. If you start a session on one device/browser, you cannot continue that session on another device/browser.

Usage

# Smarter Prompt Engineer Workbench
curl -X POST http://localhost:9357/api/v1/llm-clients/9/chat/?session_key=e5c0368d6d7201b60f4f20c470f4b5ba36faf45e80ddbe8b04b6cf20f33167a7

# Deployed Smarter LLMClient - Alpha
curl -X GET https://stackademy.3141-5926-5359.alpha.api.example.com/chat/?session_key=<SESSION-KEY>

# Deployed Smarter LLMClient - Production
curl -X GET https://stackademy.3141-5926-5359.api.example.com/chat/?session_key=<SESSION-KEY>

Technical Reference