LaTeX Assignments
This flow allows us to obtain the LaTeX code with the assignment of elements by the user
graph TD
%%{init: {'theme': 'mc','layout': 'elk'}}%%
ChatInput-5prdh[<div><img src="/_astro/messages-square.BaSDmT6g.svg" style="height: 20px !important;width: 20px !important"/></div>Elementos a LaTex]
style ChatInput-5prdh stroke:#a170ff
Prompt-yvmly[<div><img src="/_astro/square-terminal.BMOXc-nZ.svg" style="height: 20px !important;width: 20px !important"/></div>Instrucciones]
style Prompt-yvmly stroke:#a170ff
ChatOutput-xcex0[<div><img src="/_astro/messages-square.BaSDmT6g.svg" style="height: 20px !important;width: 20px !important"/></div>Chat Output]
style ChatOutput-xcex0 stroke:#a170ff
GroqModel-yd3ku[<div><img src="/_astro/Groq.CT__qXjF.svg" style="height: 20px !important;width: 20px !important"/></div>Groq]
style GroqModel-yd3ku stroke:#a170ff
GroqModel-yd3ku -.- ChatOutput-xcex0
linkStyle 0 stroke:#a170ff
Prompt-yvmly -.- GroqModel-yd3ku
linkStyle 1 stroke:#a170ff
ChatInput-5prdh -.- Prompt-yvmly
linkStyle 2 stroke:#a170ff
đź§© Overview
The workflow captures a user‑defined list of tasks, converts that list into a LaTeX‑specific prompt, forwards the prompt to a Groq language model, and finally renders the resulting LaTeX code as a chat message. By automating the prompt construction and model invocation, it streamlines the creation of well‑formatted LaTeX task lists directly from natural language input.
⚙️ Main Features
- Collects task descriptions from the user via a chat interface.
- Transforms the task list into a LaTeX prompt template that includes all necessary formatting instructions.
- Invokes a Groq model to generate the LaTeX code with low‑temperature sampling for deterministic output.
- Returns the generated LaTeX as a chat message that can be copied or rendered immediately.
🔄 Workflow Steps
| Component Name | Role in the Workflow | Key Inputs | Key Outputs |
|---|---|---|---|
| Chat Input | Gathers the user’s task list in natural language. | User‑entered text describing tasks to be encoded. | Structured message containing the task list. |
| Instrucciones | Builds a LaTeX prompt by inserting the task list into a predefined template. | Task list from the chat input. | Prompt message ready for the language model. |
| Groq | Generates LaTeX code from the prompt using the selected Groq model. | Prompt message from “Instrucciones”. | Text output containing the LaTeX source. |
| Chat Output | Presents the generated LaTeX code to the user as a chat reply. | LaTeX text from the Groq model. | Chat message displaying the LaTeX code. |
đź§ Notes
- The workflow relies on a Groq API key; ensure that the key is kept secure and that the environment can reach the Groq endpoint.
- Temperature is set to 0.1, which favors deterministic responses; increasing it may produce more varied LaTeX formatting.
- Mapping mode and streaming are disabled, simplifying the flow to a single request‑response cycle.
- The model can handle only one prompt at a time; for batch processing a different configuration would be required.
- The generated LaTeX is plain text; rendering it as a PDF or other format must be handled outside the chat interface.
- The flow assumes the user’s input contains a valid list of tasks; malformed input may lead to unexpected LaTeX syntax.