The askLlamaToWriteBusinessPlan
function generates a business plan using a prompt model, taking in topic, name, and prompt model parameters, and processing user and AI responses to extract goals and Executive Summaries. The function is not fully completed, with the remaining code likely intended to sort responses based on the Hero's Journey framework.
This code imports various functions and modules, including selectModel
, askLlamaForAChapterSynopsis
, and Remarkable
, in order to generate content. It also defines a constant APOTHEOSIS
with narrative descriptions and uses an importer
to load various functions and modules from other files.
The arguelLlama
function is an asynchronous function that engages in a debate process with a Large Language Model (LLM) using two prompts, iterating 10 times to allow the LLM to respond to its own previous responses. It returns an array of responses from the LLM in the debate process, with optional additional processing or logging performed by a callback function.
The askLlamaWriteEssay
function uses LLM to generate an essay on a given topic by creating a chapter outline, selecting a random name, and writing long essay sections for each chapter.
The askLlamaWriteEssay
function uses LLM to generate an essay on a given topic by creating a chapter outline and writing long essay sections for each chapter. The function selects a random name for the essay and uses Markdown to format the chapter titles and descriptions.
The GGUF SPECIFICATIONS object contains a list of model names and their corresponding specifications, while the GGUF_INSTRUCTIONS object contains a list of model names and their corresponding instructions or behaviors. The instructions for specific models, such as 'Code', provide templates for the response, while others are set to 'void 0' indicating no specific instruction is defined.
ask llm to write chapter titles and descriptionsThe askLlamaForAChapterSynopsis
function asynchronously generates a list of chapter or character synopses for a given topic by interacting with an LLM (Large Language Model), logging the user's prompt and the LLM's response, and parsing the response to extract the synopsis titles and descriptions. The function returns an object with key-value pairs representing the synopses, assuming the LLM's response contains a list of numbered titles followed by their descriptions.
A TODO comment is a note indicating that the code requires modifications to a business plan and research plan, and it typically does not contain executable code. This section is for documentation purposes only.
decode xlsx spreadsheetThe analyzeSpreadsheet
function reads an Excel file from a specified path (or a default location if not provided) and extracts cell values from a specified sheet and range. It returns an array of these cell values, with optional parameters for specifying the sheet name and range.
The elaborateLlama
function analyzes an XLSX spreadsheet, creates prompt sequences from its data, and sends them to a Large Language Model (LLM) for responses, which are then logged and written to a temporary text file. The function is designed to handle asynchronous operations and can be exported as a module for use in other applications.