/educhain

A Python package for generating educational content using Generative AI

Primary LanguageJupyter NotebookMIT LicenseMIT

educhain

A Python package for generating educational content using Generative AI. Educhain makes it easy to apply Generative AI in various educational use cases to create engaging and personalized learning experiences

Installation

pip install educhain

Usage

Use it to Generate MCQs

Open In Colab

Here's an example of how to use EduChain:

from educhain import generate_mcq, to_csv, to_json, to_pdf, generate_mcq_from_pdf

Generate multiple-choice questions with given number of questions

mcq = generate_mcq(topic="Python", level="Advanced", num=5, custom_template="All questions should be word problems")
print(mcq)

Save the MCQ to a CSV file

to_csv(mcq, "mcq.csv")

Save the MCQ to a JSON file

to_json(mcq, "mcq.json")

Save the MCQ to a PDF file

  • heading (str): (optional)
  • subheading (str): (optional)
to_pdf(mcq, "mcq.pdf", heading="Python MCQ", subheading="Advanced Level - (10 Questions)")

Generate multiple-choice questions with given pdf file

mcq = generate_mcq_from_pdf("ai_intro.pdf", num=5)

Effortlessly create Lesson Plans

from educhain import content_engine

topic = "Medieval History"
level = "Beginner"

lesson_plan = content_engine.generate_lesson_plan(topic, level)
print(lesson_plan)

Contributing

Contributions are welcome! Please open an issue or submit a pull request on the GitHub repository.

Next Steps

Will be releasing more features for MCQ Generation

  • Bulk Generation
  • Outputs in JSON format
  • Export questions to CSV
  • Exports questions to JSON
  • Exports questions to PDF
  • Support for other LLM models
  • Generate questions from text/pdf file
  • Finetuned Model for question generation