Image & Text
Logs a multimodel data for evaluation using Future Agi client.
Creating an Client
Supported Model Types:
• GENERATIVE_IMAGE: For text and image data.
Supported Environments:
• TRAINING: For models in the training phase.
• VALIDATION: For models in the validation phase.
• PRODUCTION: For models deployed in a production environment.
• CORPUS: For models dealing with a large collection of data or corpus.
Converting Image to bytes
Sending a data for Evaluation
To log an event, you need to provide the required parameters such as model_id, model_type, environment, and optionally model_version, prediction_timestamp, conversation, and tags.
Structure:
• conversation_id: The ID of the conversation. Must be a string.
• chat_history: A list of dictionaries, each representing a message.
• role: The role of the participant (e.g., “user”, “assistant”). Must be a string.
• content: The content of the message. Can be a list of dictionaries with different content types (e.g., text, image_url).
Description:
• Conversation ID: Unique identifier for the conversation, allowing for easy retrieval and association of messages.
• Role: Indicates who sent the message.
• Content: The message content, which can include text and images.
Last updated