ComradeAI

Available AI Services Configurations

This document details the AI services available in the ComradeAI, emphasizing their functionalities, strengths, and specific parameters.

Since version 0.18.7 a simplified usage of Services can be used. Take a look at AvailableServices.md.

Configuring and Using AI SErvices in ComradeAI Advanced Mode

In ComradeAI, the choice and configuration of an AI agent are crucial. This is managed through the agent variable, which are then used as part of the routingStrategy, and requestAgentConfig dictionary.

Agent Variable

The agent variable specifies which AI agent you intend to use. This should be set to the agent’s identifier within the ComradeAI framework.

RoutingStrategy

The routingStrategy is a crucial component in directing your requests to the correct AI agent. It includes the agent variable as part of its configuration, especially for ‘auto’ and ‘direct’ strategies.

Example of Setting Up and Using an Agent

  1. Set the Agent Variable: Define which AI agent you want to use. For example, for GPT 3.5 Turbo:
    agent = "gpt-3.5-turbo-1106"
    
  2. Define RoutingStrategy: Incorporate the agent variable into the routing strategy which is Mycelium.Message constructor (init) parameter.
     routingStrategy = RoutingStrategy("direct", agent)
     # Means you know which agent you need and there is no need for Mycelium to auto-define it.
    
  3. Configure the RequestAgentConfig: Set up the specific parameters for the chosen agent. This dictionary is a member of Mycelium.Dialog class.
     requestAgentConfig = {
         "max_tokens": 100,
         "temperature": 0.7
         # Add other parameters as needed
     }
    
  4. Use in Mycelium: When sending a message or initializing a dialog, include these configurations to ensure your request is processed by the specified agent.

OpenAI DALL-e 3 (Artistic Image Generation)

Agent Name

The service is incapsulated by “OpenAI_DALLE3” agent.

Purpose

Generates high-quality, creative images from textual descriptions.

Strengths

Parameters

Gemini Pro Vision (Multimodal AI)

Agent Name

The service is incapsulated by “Google_GeminiProVisoin” agent.

Purpose

Handles multimodal tasks including text generation, image analysis, and video processing.

Strengths

Parameters

OpenAI GPT Models (Advanced Text Generation)

Agent Name

The services are incapsulated by “OpenAI_GPT_Completions” agent.

The ComradeAI framework integrates three advanced models from OpenAI’s GPT series, each designed for specific text generation tasks and offering unique capabilities.

GPT 3.5 Turbo

Purpose

GPT 3.5 Turbo is designed for high-speed, cost-effective text generation, maintaining a balance between performance and accuracy.

Strengths

Parameters

GPT 4 (Text and Code)

Purpose

GPT 4 excels in understanding and generating both human language and code, making it versatile for a wide range of applications.

Strengths

Parameters

GPT 4 Vision (Multimodal)

Purpose

GPT 4 Vision is a multimodal model capable of processing and generating both text and images, bridging the gap between visual and textual data.

Strengths

Parameters

Meta LLaMa 2 (Versatile Text Processor)

Agent Name

The service is incapsulated by “Meta_LLaMa2” agent.

Purpose

Efficient in diverse text processing tasks, offering unique capabilities.

Strengths

Parameters

YandexGPT v2 (Russian Language Text Generation)

Agent Name

The service is incapsulated by “YandexGPT2-FULL” agent.

Purpose

Specialized in generating and processing text in Russian, with a nuanced understanding of the language.

Strengths

Parameters

Groot (Connectivity Verification)

Agent Name

The service is incapsulated by “groot” agent.

Purpose

Used to verify successful connectivity to the Mycelium network.

Strengths

Parameters