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
pip install educhain
Here's an example of how to use EduChain:
from educhain import generate_mcq, to_csv, to_json, to_pdf, generate_mcq_from_pdf
mcq = generate_mcq(topic="Python", level="Advanced", num=5, custom_template="All questions should be word problems")
print(mcq)
to_csv(mcq, "mcq.csv")
to_json(mcq, "mcq.json")
- heading (str): (optional)
- subheading (str): (optional)
to_pdf(mcq, "mcq.pdf", heading="Python MCQ", subheading="Advanced Level - (10 Questions)")
mcq = generate_mcq_from_pdf("ai_intro.pdf", num=5)
from educhain import content_engine
topic = "Medieval History"
level = "Beginner"
lesson_plan = content_engine.generate_lesson_plan(topic, level)
print(lesson_plan)
Contributions are welcome! Please open an issue or submit a pull request on the GitHub repository.
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