Skip to main content

An Open edX xBlock to add Open Learning AI chat

Project description

An xBlock to add MIT Open Learning chat in courses.

Purpose

MIT’s AI chatbot xBlock for Open edX

Setup

For detailed installation instructions, please refer to the plugin installation guide.

Installation required in:

  • LMS

  • Studio (CMS)

Configuration

edx-platform configuration

  1. Go to the course page in Studio (CMS), open Advanced Settings and add ol_openedx_chat_xblock to the Advanced module list.

  2. To add this xBlock to a course, you can now select the Advanced tile on the new unit page and select OL Chat xBlock from the list of available advanced xBlocks.

  3. Add the following configuration values to the config files in Open edX. For any release after Juniper, these config files are /edx/etc/lms.yml and /edx/etc/cms.yml. If you’re using private.py, add these values to lms/envs/private.py and cms/envs/private.py. These should be added to the top level. Ask a fellow developer for these values.

    # Required
    MIT_LEARN_AI_XBLOCK_CHAT_API_TOKEN: <MIT_LEARN_AI_XBLOCK_CHAT_API_TOKEN>
    
    # Required for Syllabus Chat
    MIT_LEARN_AI_XBLOCK_CHAT_API_URL: <MIT_LEARN_AI_XBLOCK_CHAT_API_URL>
    
    # Required for Tutor Chat
    MIT_LEARN_AI_XBLOCK_TUTOR_CHAT_API_URL: <MIT_LEARN_AI_XBLOCK_TUTOR_CHAT_API_URL>
    MIT_LEARN_AI_XBLOCK_PROBLEM_SET_LIST_URL: <MIT_LEARN_AI_XBLOCK_PROBLEM_SET_LIST_URL>

xBlock configuration

  • Course ID Configuration

    The chat xBlock needs a course ID to work. (NOTE: This is not the course ID of the course xBlock is created in) Here is how the course ID can be set:

    1. Course ID setting in the xBlock in Studio (CMS)

      Just open the chat xBlock settings in Studio (CMS) and set the course ID in the configuration field named Course ID.

    2. Auto-generate course ID (LTI Launch Only)

      If you don’t set the course ID in the xBlock configuration, the xBlock will automatically try to generate a course ID based on the LTI launch request. This is useful if you want to use the xBlock in multiple courses without having to set the course ID manually.

    Just make sure to add a custom field course_id=$Canvas.course.id in Canvas LTI app configuration so that the course ID can be extracted from the LTI launch request.

  • Tutor Configuration

    The chat xBlock can work as a tutor xBlock as well. Here is how you can set an xBlock to be a tutor xBlock:

    1. Is Tutor setting in the xBlock in Studio (CMS)

      Just open the chat xBlock settings in Studio (CMS) and use the toggle field named Is Tutor xBlock?.

Documentation

The chat xBlock enables students to interact with an AI chatbot powered by MIT Learn AI. It provides a user-friendly interface for students to ask questions and receive answers in real-time.

The xBlock provides different features such as: - Syllabus Chat interface for students to interact with the AI chatbot and receive assistance with syllabus-related queries. - Tutor Chat interface for students to interact with the AI chatbot and receive assistance with different problems in the courseware.

License

The code in this repository is licensed under the AGPL 3.0 unless otherwise noted.

Please see LICENSE.txt for details.

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

ol_openedx_chat_xblock-0.3.5.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ol_openedx_chat_xblock-0.3.5-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

Details for the file ol_openedx_chat_xblock-0.3.5.tar.gz.

File metadata

  • Download URL: ol_openedx_chat_xblock-0.3.5.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for ol_openedx_chat_xblock-0.3.5.tar.gz
Algorithm Hash digest
SHA256 64a2b62fae1ea7adc8495bdaf07a56a3618bce4f597e2be62b4e19d59085d4af
MD5 e71e0eff83d69cfe2eec8a91c2a23129
BLAKE2b-256 0d4191b8b7f75e2eaaf2a47a77c1e6ca1b4310e809cd4d2f95b4ba7a6f876850

See more details on using hashes here.

File details

Details for the file ol_openedx_chat_xblock-0.3.5-py3-none-any.whl.

File metadata

File hashes

Hashes for ol_openedx_chat_xblock-0.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 36e5dac2abf87c8fd8bf75893dd1a04393e37f90d52b5cd9d7e365f6ee4d35a5
MD5 0f2c68b128e248ef6ec7b6735e0e6989
BLAKE2b-256 2cce126fc62f737e820a0bc11848c0745bd5a7fc27b0f43ad1137b84e4b7d6c2

See more details on using hashes here.

Supported by

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