Skip to main content

YiVal is an open-source project designed to revolutionize the way developers and researchers evaluate and refine AI models.

Project description

YiVal: Adaptable AI Development Framework

YiVal stands at the intersection of flexibility and adaptability in the AI development landscape. Crafted meticulously for those who seek a tailored experimentation experience, it effortlessly caters to both hands-on developers and those who lean into automation.

Table of Contents

Overview

At its core, YiVal is more than just a framework—it's a philosophy. A philosophy that believes in offering tools that can be seamlessly molded to fit unique experimentation needs. With a robust architecture and versatile components, Yival ensures that every AI journey, regardless of its complexity, is smooth and efficient.

Web UI

Fun Cast Fortune Telling

Dive into the world of YiChing and discover your fortune on our index page. A fun and interactive way to get started with Yival. Screenshot 2023-08-16 at 10 50 57 PM

Experimentation

  • Experiment Result Analysis: Gain insights into aggregated outputs for each combination, evaluator outcomes, average latency, token usage, and sample test case results. The best combinations will be highlighted for ease of reference.
Screenshot 2023-08-16 at 10 51 57 PM
  • Data Analysis Page: Delve deep into your experiment data, extracting meaningful insights and patterns that can guide further experimentation.
Screenshot 2023-08-16 at 10 54 50 PM
  • Detailed Test Results: A granular look at each test case result for every combination, providing a comprehensive understanding of the experiment's outcomes.
Screenshot 2023-08-16 at 10 57 22 PM
  • Improver Experiment Result Analysis: After the improvement phase, see the aggregated outputs for each combination. This includes evaluator outputs, average latency, token usage, and sample test cases, with the best combinations highlighted.
Screenshot 2023-08-16 at 10 57 58 PM
  • Improver Detailed Test Results: Post-improvement, this page offers a detailed view of each test case result for every combination, showcasing the enhancement in results.
Screenshot 2023-08-16 at 10 58 18 PM

Additional Features

  • Export Data: Securely store and export your experiment for future reference or to share with peers.
Screenshot 2023-08-16 at 10 59 01 PM
  • Rating: Human touch matters. Add ratings to each test case on the experiment results page based on configurable criteria.
Screenshot 2023-08-16 at 10 59 18 PM
  • Interactive Mode: Flexibility at its best. Enter new test cases for combinations, tailoring your experimentation in real-time.
Screenshot 2023-08-16 at 11 02 37 PM

AIGC app development flow

The flowchart below depicts the core flow of ideal AI Generated Content (AIGC) app development That Yival tries to support. This emphasis on iteration ensures a continuous cycle of improvement, allowing developers to hone their applications to perfection.

flowchart TD

A{Test Data}
B[Core App Development]
C[Evaluation]
D[Refinement]

A --> B
B --> C
C -->|Check| D
D -->|YiVal Supports Iteration| B

subgraph "Core App Development"
    B1[Retrieve Data]
    B2[Collaborate with Models]
    B3[Select Best Model]
    B4[Prompt Development]
end

subgraph Evaluation
    C1[Human Evaluator]
    C2[Auto Evaluator]
    C --> C1
    C --> C2
end

subgraph Refinement
    D1[Human Improver]
    D2[Auto Improver]
    D --> D1
    D --> D2
end

Installation

pip install yival

Demo

Basic Interactive Mode

To get started with a demo for basic interactive mode of YiVal, run the following command:

yival demo --basic_interactive

Once started, navigate to the following address in your web browser:

http://127.0.0.1:8073/interactive

Click to view the screenshot

Screenshot 2023-08-17 at 10 55 31 PM

For more details on this demo, check out the Basic Interactive Mode Demo.

Question Answering with expected result evaluator

yival demo --qa_expected_results

Once started, navigate to the following address in your web browser: http://127.0.0.1:8073/

Click to view the screenshot Screenshot 2023-08-18 at 1 11 44 AM

For more details on this demo, check out the Question Answering with expected result evaluator.

Architecture

For detailed information about Yival's architecutre, refer to this doc.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yival-0.1.0a3.tar.gz (75.7 kB view hashes)

Uploaded Source

Built Distribution

yival-0.1.0a3-py3-none-any.whl (101.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page