This repository hosts two Open edX XBlocks:
- 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).
- 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.
-
Add the following line to the
OPENEDX_EXTRA_PIP_REQUIREMENTS
in your Tutorconfig.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. -
Launch Tutor.
-
In the Open edX platform, navigate to
Settings > Advanced Settings
and addshortanswer_ai_eval
andcoding_ai_eval
to theAdvanced Module List
. -
Add either XBlock using the
Advanced
button in theAdd New Component
section of Studio. -
Configure the added Xblock and make sure to add correct API keys. You can format your question and prompts using Markdown.