Skip to main content

Core modules for edubotics-based LLM AI chatbots

Project description


title: AI Class Tutor -- Dev description: An LLM based AI class tutor with RAG on DL4DS course emoji: 🐶 colorFrom: red colorTo: green sdk: docker app_port: 7860

DL4DS Tutor 🏃

Build Status License GitHub stars PRs Welcome

Check out the configuration reference at Hugging Face Spaces Config Reference.

You can find a "production" implementation of the Tutor running live at DL4DS Tutor from the Hugging Face Space. It is pushed automatically from the main branch of this repo by this Actions Workflow upon a push to main.

A "development" version of the Tutor is running live at DL4DS Tutor -- Dev from this Hugging Face Space. It is pushed automatically from the dev_branch branch of this repo by this Actions Workflow upon a push to dev_branch.

Setup

Please visit setup for more information on setting up the project.

Running Locally

  1. Clone the Repository

    git clone https://github.com/edubotics-ai/edubot-core
    
  2. Create your app in the apps folder. (An example is the apps/ai_tutor app)

    cd apps
    mkdir your_app
    
  3. Put your data under the apps/your_app/storage/data directory

    • Add URLs in the urls.txt file.
    • Add other PDF files in the apps/your_app/storage/data directory.
  4. To test Data Loading (Optional)

    cd apps/your_app
    python -m edubotics_core.dataloader.data_loader --links "your_pdf_link" --config_file config/config.yml --project_config_file config/project_config.yml
    
  5. Create the Vector Database

    cd apps/your_app
    python -m edubotics_core.vectorstore.store_manager --config_file config/config.yml --project_config_file config/project_config.yml
    
  6. Run the FastAPI App

    cd apps/your_app
    uvicorn app:app --port 7860 
    

Documentation

Please visit the docs for more information.

Docker

The HuggingFace Space is built using the Dockerfile in the repository. To run it locally, use the Dockerfile.dev file.

docker build --tag dev  -f Dockerfile.dev .
docker run -it --rm -p 7860:7860 dev

Contributing

Please create an issue if you have any suggestions or improvements, and start working on it by creating a branch and by making a pull request to the dev_branch.

Please visit contribute for more information on contributing.

Future Work

For more information on future work, please visit roadmap.

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

edubotics_core-0.1.1.tar.gz (34.9 kB view details)

Uploaded Source

Built Distribution

edubotics_core-0.1.1-py3-none-any.whl (44.7 kB view details)

Uploaded Python 3

File details

Details for the file edubotics_core-0.1.1.tar.gz.

File metadata

  • Download URL: edubotics_core-0.1.1.tar.gz
  • Upload date:
  • Size: 34.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for edubotics_core-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3d52d0be86c3c8238852c10a18310a6de59cba0f37b2a7514b946e5f5dfff727
MD5 b68d40cf7d0495219f1e5e12bd0a7b15
BLAKE2b-256 ff093f8e8270deac0e7cabe91030fa688715d4804398ebf9027d31f1c1d81be0

See more details on using hashes here.

File details

Details for the file edubotics_core-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for edubotics_core-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 901c4817ecf9cf097860018d6b11835251ad10a0cefc0498147640ae9bf00b21
MD5 fd9c1bfd66acb2b1979c64255f33c450
BLAKE2b-256 ed819d93baea37d266e8732007caa95bf45868f0eaf0c6cdcec292e5abe463e7

See more details on using hashes here.

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