Diaflow's Documentation
HomePricingIntegrations
Documentation
Documentation
  • 😎WELCOME TO DIAFLOW
    • Introduction to Generative AI
    • What can you build with Diaflow?
  • 💻USER ACCOUNT
    • Create your user account
    • Delete your user account
    • Log out and log in
    • Change "Personal" & "Workspace" settings
    • Reset user account password
  • 🚀Getting Started
    • Let's start with the basics
      • How a component works?
      • How a flow works?
      • Creating your first flow
    • Dashboard
      • Services
      • Create a flow from scratch
      • Create a flow from templates
      • View your flows
    • Terminology
  • 🌊Flows
    • Overview
    • Create a flow
    • Delete a flow
    • Manage a flow
    • Publish a flow
    • Unpublish a flow
    • Deployment
    • Component Reference
      • Trigger
        • When inputs are submitted (Apps)
        • Cronjob (Automation)
        • Webhook (Automation)
        • Microsoft Outlook (Automation)
      • Outputs (Apps)
        • Text Output
        • Chart Output
        • Video Output
        • Audio Output
        • Image Output
      • Built in tools
        • Branch
        • Merge (Multiple data source to JSON)
        • Split Data (JSON Formatter)
        • Video to audio
        • Get current date and time
        • Web scraper
        • Document to plain text
        • Retrieve data from spreadsheet (Spreadsheet analyzer)
        • Spreadsheet creator
        • Convert JSON to chart data
        • PDF to image
        • Get weather information
        • HTTP Request
        • Get GEO Location
        • SMTP
        • Loop
      • Built in resources
        • Diaflow Vision
        • Diaflow Vectors
        • Diaflow Drive
        • Diaflow Table
      • Apps
        • Hunter.io
        • Outlook Email
        • Telegram
        • Slack
        • Python
        • YouTube
        • SerpAPI
        • Google Sheet
          • Document-level Operations
          • Sheet-level Operations
          • Data-level Operations
      • Database
        • MySQL
        • Microsoft SQL
        • PostgreSQL
        • Snowflake
      • Private AI/LLM Models
        • OpenAI
          • GPT Variants
          • GPT Vision
          • DALL-E Variants
          • TTS Variants
          • Whisper
        • Anthropic
        • Llama
        • Google Gemini
        • Cohere
        • MistralAI
      • Public AI/LLM Models
        • OpenAI Cloud
        • Perplexity Cloud
        • Deepseek Cloud
        • Anthropic Cloud
        • Replicate
        • Straico
        • OpenRouter
        • Cohere Cloud
        • Google Gemini Cloud
        • MistralAI Cloud
        • ElevenLabs Cloud
      • AI Tools
    • Component List & View Credits
  • ✒️PRODUCTIVITY TOOLS
    • Tables
    • Drive
    • Vectors
      • Document
      • Article
      • URLs
  • 🏠Workspace
    • History
    • Teams
    • Billing & Subscription
      • Upgrade/Downgrade a subscription
      • Buy credits
      • Credit Usage
      • Cancel a subscription
    • Settings
      • Personnal
      • Workspace
        • Change workspace
        • Workspace settings
        • Custom Domain
        • Delete workspace
      • Change Language
    • Documentation
    • Integrations
    • API keys
  • 📑Other
    • FAQs
    • Contact Information
Powered by GitBook
On this page
  • Description
  • Inputs
  • Component settings
  • Advanced configurations
  • Outputs
  • Use case

Was this helpful?

  1. Flows
  2. Component Reference
  3. Private AI/LLM Models

Anthropic

To process a large amount of data based on context and input from the user using Anthropic Provider.

Last updated 2 months ago

Was this helpful?

Description

The Anthropic model, developed by Anthropic, is a language model that combines the power of GPT (Generative Pre-trained Transformer) with LLM (Language Model for Legal Text). It is specifically designed to understand and generate legal text, making it useful for tasks such as legal document analysis, contract generation, and legal research. The model has been trained on a large corpus of legal documents to ensure accuracy and relevance in its responses.

The Anthropic component allows you to integrate Anthropic into your flows. You can customize the parameters used by Anthropic component, and also specify the context of knowledge that the Anthropic component operates on, as well as provide the input query. Both the context and the query are given to the Anthropic component by specifying Diaflow component identifiers. For example, the above screenshot shows the default user message of trigger.text which is a Text Input component.

The Anthropic component has the identifier of an-X, where X represents the instance number of the Anthropic component.

Inputs

The Anthropic component has the following input connections.

Input Name
Description
Constraints

From data Loaders/ Data source/Vector DB

This input connection represents the context information for the Anthropic model.

Must originate from a Data Loader/Data Source or VectorDB component.

From Input

This input connection represents the user query for the Anthropic model.

Must originate from a component that generates a text string as output such as a Python or Text Input component.

Component settings

Parameter Name
Description

Credentials

You can specify to use your own Anthropic credentials or alternatively you can use Diaflow's default credentials.

Model

This parameter specifies the version of Anthropic that the component should use. Available values: - Claude-3.7-sonet - Claude-3.5-sonet - Claude-3.5-sonet-v2 - Claude-3 - haiku - Claude-3.5 - haiku

Prompt

Describes how you want the Anthropic model to respond. For example, you can specify the role, manner and rules that Anthropic should adhere to. Also mention the component ID to connect the components.

Image source

Adding an image to your prompt by identify a trigger file in this configuration.

Advanced configurations

Options
Description

Enable caching

This option determines whether the results of the component are cached. This means that on the next run of the Flow, Diaflow will utilize the previous computed component output, as long as the inputs have not changed.

Caching time

Only applicable if the "Enable Caching" option has been enabled. This parameter controls how long Diaflow will wait before automatically clearing the cache.

Memory

The ability of the model to remember and utilize context within a single session. The context window represent the maximum amount of text the model can consider.

Temperature

The temperature is used to control the randomness of the output. When you set it higher, you'll get more random outputs. When you set it lower, towards 0, the values are more deterministic. Valid range for this parameter is 0 to 1.

Max lenght

The Max Length parameter in OpenAI refers to the maximum number of tokens allowed in the input text. Tokens can be individual words or characters. By setting the max length, you can control the length of the response generated by the model. It's important to note that longer texts may result in higher costs and longer response times. Valid range for this parameter is 0 to 3097.

Top P

Top-p sampling, involves selecting the next word from the smallest possible set of words whose cumulative probability is greater than or equal to the specified probability p, typically between 0 and 1.

Outputs

The Anthropic component has the following output connections.

Output Name
Description
Constraints

To Output

This output connection contains the text result of the Anthropic component.

Can be connected to any component that accepts a string input.

Use case

Here is a simple use case of the Anthropic component, where the Anthropic component is being used to provide the user the ability to ask the Anthropic component questions via a Text Input component.

🌊