Skip to main content

A plugin containing xblocks and apps supporting GPT and other LLM use on edX.

Project description

ai-aside

PyPI CI Codecov Documentation Supported Python versions License status-badge

Purpose

This plugin holds LLM related blocks and tools, initially the summary XBlock aside but eventually more options.

Getting Started

Developing

One Time Setup
# Clone the repository
git clone git@github.com:openedx/ai-aside.git
cd ai-aside

# Set up a virtualenv using virtualenvwrapper with the same name as the repo and activate it
mkvirtualenv -p python3.8 ai-aside
Local testing

To test your changes locally, you will need to install the package from your local branch into edx-platform. For example, if using devstack, copy or clone your branch into <devstack-parent>/src/ai-aside. Then, in an lms or cms shell, run pip install -e /edx/src/ai-aside. The plug-in configuration will automatically be picked up once installed, and changes will be hot reloaded.

Enabling the Aside

For the summary aside to work, you will have to make two changes in the LMS admin:

  1. You must create an XBlockAsidesConfig (admin URL: /admin/lms_xblock/xblockasidesconfig/). This model has a list of blocks you do not want asides to apply to that can be left alone, and an enabled setting that unsurprisingly should be True.

  2. You must enable a course waffle flag for each course you want to summarize. summaryhook.summaryhook_enabled is the main one, summaryhook_enabled.summaryhook_staff_only can be used if you only want staff to see it.

Every time you develop something in this repo
# Activate the virtualenv
workon ai-aside

# Grab the latest code
git checkout main
git pull

# Install/update the dev requirements
make requirements

# Run the tests and quality checks (to verify the status before you make any changes)
make validate

# Make a new branch for your changes
git checkout -b <your_github_username>/<short_description>

# Using your favorite editor, edit the code to make your change.
vim ...

# Run your new tests
pytest ./path/to/new/tests

# Run all the tests and quality checks
make validate

# Commit all your changes
git commit ...
git push

# Open a PR and ask for review.

Deploying

This plugin is deployed on edx.org via EDXAPP_EXTRA_REQUIREMENTS.

License

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

Please see LICENSE.txt for details.

Contributing

Contributions are very welcome. Please read How To Contribute for details.

This project is currently accepting all types of contributions, bug fixes, security fixes, maintenance work, or new features. However, please make sure to have a discussion about your new feature idea with the maintainers prior to beginning development to maximize the chances of your change being accepted. You can start a conversation by creating a new issue on this repo summarizing your idea.

The Open edX Code of Conduct

All community members are expected to follow the Open edX Code of Conduct.

People

The assigned maintainers for this component and other project details may be found in Backstage. Backstage pulls this data from the catalog-info.yaml file in this repo.

Reporting Security Issues

Please do not report security issues in public. Please email security@tcril.org.

Change Log

Unreleased

1.2.1 – 2023-05-19

Fixes

  • Fix summary-aside settings package

1.2.0 – 2023-05-11

Added

  • Porting over summary-aside from edx-arch-experiments version 1.2.0

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

ai-aside-1.2.1.tar.gz (24.1 kB view details)

Uploaded Source

Built Distribution

ai_aside-1.2.1-py2.py3-none-any.whl (21.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file ai-aside-1.2.1.tar.gz.

File metadata

  • Download URL: ai-aside-1.2.1.tar.gz
  • Upload date:
  • Size: 24.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for ai-aside-1.2.1.tar.gz
Algorithm Hash digest
SHA256 3b47a32e66a115dfedee8022b168ef866227bc78785f8e47e48f6c1911eca596
MD5 37a8512568b1c5ac94eacd0756ae1e29
BLAKE2b-256 bff3ba6cf4c08f10dbbca8112d8936b653ce54fe99aa8f72a46e1b0d5309bbd3

See more details on using hashes here.

File details

Details for the file ai_aside-1.2.1-py2.py3-none-any.whl.

File metadata

  • Download URL: ai_aside-1.2.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 21.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for ai_aside-1.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 214732d84c1d387290301ead7a887b144f1e9be06f12e6a6cb63511103217a6c
MD5 7b71a40c20817d8eb49469b075b692d8
BLAKE2b-256 3019a2350c83a7c075a90a25d501a09b1ab084fb37e3ad240e88d74bb2bc388b

See more details on using hashes here.

Supported by

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