Skip to content

open-craft/xblock-ai-evaluation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This repository hosts two Open edX XBlocks:

  1. Short Answer with AI Evaluation: This XBlock allows students to submit short answers, which are then evaluated with the help of a large language model (LLM).
  2. Coding with AI Evaluation: This XBlock allows students to submit code in a text editor. The code is executed via a third-party API (currently using Judge0), and both the code and its output are sent to an LLM for feedback.

Screeshots

Short Answer with AI evaluation Xblock Coding with AI evaluation Xblock
Coding with AI evaluation Xblock HTML Coding with AI evaluation Xblock AI feedback

Setup

Using Tutor

  1. Add the following line to the OPENEDX_EXTRA_PIP_REQUIREMENTS in your Tutor config.yml file:

    OPENEDX_EXTRA_PIP_REQUIREMENTS:
      - git+https://github.com/open-craft/xblock-ai-evaluation

    You can append @vX.Y.Z to the URL to specify your desired version.

  2. Launch Tutor.

  3. In the Open edX platform, navigate to Settings > Advanced Settings and add shortanswer_ai_eval and coding_ai_eval to the Advanced Module List.

  4. Add either XBlock using the Advanced button in the Add New Component section of Studio.

  5. Configure the added Xblock and make sure to add correct API keys. You can format your question and prompts using Markdown.

Dependencies