Skip to main content
Version: 2.00

LLM Applications

LLM Applications

Getting Started

Are you interested in developing innovative applications using Large Language Models (LLMs)? DAIANA STUDIO is the ideal tool for this. In this chapter, we will learn how to bring your ideas to life easily and effectively, and create applications that interact with users.

With DAIANA STUDIO, you can create a wide range of applications, such as chatbots, question-answering systems, and information retrieval agents, all based on natural language processing. Its flexibility and customization options allow you to quickly develop solutions tailored to your needs. Let's take the first step to make your ideas a reality. With DAIANA STUDIO by your side, let's explore new possibilities together!

Getting Started: Your First LLM Application

Here we will create a simple LLM application using DAIANA STUDIO and explain how it works.

Create a New Chatflow

  1. Click the Add New button to create a new chatflow. 1
  2. Click Save Chatflow and set a name, for example, Hello DAIANA STUDIO.

1

  1. Type Hello, DAIANA Studio in the dialog box and click the Save button.

1

  1. A Chatflow named Hello, DAIANA Studio has been saved.

1

Create a Chain

  1. Drag and drop the Chains / Conversational Chain from the Add Nodes button to the chatflow.

1

  1. A Conversational Chain node will be created in the chatflow after dropping it.

1

  1. Drag the Conversational Chain node in the chatflow and move it to the right for the next operation.

1

Create a Chat Model

  1. From the Add Nodes button, scroll through the list of nodes under Chat Models until you find the "ChatOllama" node.

1

  1. Drag the "Chat Models / ChatOllama" node and drop it into the Chatflow.

1

  1. A "ChatOllama" node will be created in the chatflow after dropping it.

1

  1. Set "llama3:latest" as the model name for the "ChatOllama" node in the chatflow.

1

  1. Click Save Chatflow to save the creations made so far.

1

Connect the "ChatOllama" node to the Conversational Chain node.

  1. Drag the output of the "ChatOllama" node with the mouse cursor and set it as input for the Chat Model in the Conversational Chain node.

1

1

  1. Click Save Chatflow to save the creations made so far.

1

Create Memory

  1. From the Add Nodes button, drag the Memory / Buffer Memory node and drop it into the chatflow.

1

  1. To facilitate editing, adjust the arrangement of the nodes by selecting them with the mouse cursor and dragging them to move them.

1

Buffer Memory

Connect the Buffer Memory node to the Conversational Chain node.

  1. Drag the output of the Buffer Memory node with the mouse cursor and set it as input for the Memory in the Conversational Chain node.

1

  1. Click Save Chatflow to save the creations made so far.

1

Using LLM Applications

  1. Click the Chat button to display the chat dialog box for the LLM application Hello DAIANA STUDIO.

1

  1. Type Why is the sky blue? in the chat dialog box and check that you receive a response similar to the image. If so, it means it worked.

1

Basic DAIANA STUDIO Operations

Here are some features of DAIANA STUDIO used in this article that were not covered in Introduction to your first LLM application. They are explained here.

  1. You can navigate from the chatflow named Hello, DAIANA STUDIO to the main screen using the Back button on the left. It is recommended to click Save Chatflow before exiting to save your creations.

1

  1. You have returned to the top screen. Click to use this alternative.

1

Click with the mouse cursor on the name of the chatflow you want to edit in the list of chatflows on the top screen.

  • Navigate to the chatflow.

1

Editing the Chatflow Name

  • To edit the name of the chatflow Hello, DAIANA STUDIO, click the Edit Name button on the right.

1

After changing the chatflow name, you can save it by clicking the Save Name button on the right, or cancel the changes by clicking the Cancel button. After making changes, it is recommended to click Save Chatflow to save what has been created so far.

1

Export a Chatflow

  • In the Options menu of a chatflow in the Chatflows list, select Export to start the export process.

1

  • A file will be saved in your browser's downloads folder.

1

Import a Chatflow

  1. Click the Add New button to create a new chatflow.

1

  1. Select Load Chatflow from the Settings button.

1

  1. Select a Chatflow file and click the Open button.

1

  1. Click Save Chatflow to rename the chatflow.

1

  1. For more information, see Create a New Chatflow.

1

Duplicate a Chatflow

  • In the Options menu of the original chatflow in the Chatflows list, select Duplicate.

1

  • You have imported the original chatflow into a new chatflow. Click Save Chatflow to rename the chatflow as needed.

1

1

Marketplace

  • Templates for each use case are available in the Marketplace.

1

Select a template, and when the chatflow opens, click the Use Template button to access a state similar to that described in Duplicate a Chatflow.

1 1

Credentials

  • When using cloud services or similar, connection information such as credentials is stored in Credentials. You can create a new credential or select an existing one for nodes that require connection information.

1

  • Usage example

1