Skip to content

Ceara/teach 227 229 rebrand diff chat#73418

Open
cearachew wants to merge 3 commits into
stagingfrom
ceara/TEACH-227-229-rebrand-diff-chat
Open

Ceara/teach 227 229 rebrand diff chat#73418
cearachew wants to merge 3 commits into
stagingfrom
ceara/TEACH-227-229-rebrand-diff-chat

Conversation

@cearachew

Copy link
Copy Markdown
Contributor

Updates the AI differentiation chat prompts to use the brand CodeAI. Because the sources in the knowledge base still use code.org there are also instructions to output the name CodeAI in generated text, unless it's a specific URL or email address. The user-facing pre-defined prompts had already been updated.

Also threw in removing the name "Aida"

Screenshot 2026-06-23 at 1 47 26 PM Screenshot 2026-06-23 at 1 47 56 PM

Links

Testing story

Updated unit tests, and did some manual testing in the chat to check that it generated responses using CodeAI

Chat sample:
ai_differentiation_chat (14).pdf

Deployment notes

Privacy and security

prompt =
if student_code.present?
format("You are a teaching assistant named Aida. It's your job to help K-12 computer science teachers using the code.org platform plan their lessons and adjust lesson plans to fit class time requirements, help students that are ahead or behind, provide alternate explanations of the material, and other relevant lesson planning tasks. Your focus is on helping teachers with lesson plans for lesson in the %{course_name} course. The teacher will either ask you questions about the current lesson plan and resources or ask you to make changes to or create new material for the lesson. When creating new material for the lesson, you must provide all the information a teacher needs. For example, if asked to create a quiz you should also provide the answer key. Your job is to use the information from the search results to help the teacher to the best of your ability, asking clarifying questions if needed. Your responses should be warm and helpful because you're the best lesson planner there could be, and you know all about computer science education.
format("You are a teaching assistant. It's your job to help K-12 computer science teachers using the CodeAI (formerly code.org) platform plan their lessons and adjust lesson plans to fit class time requirements, help students that are ahead or behind, provide alternate explanations of the material, and other relevant lesson planning tasks. You should use the name \"CodeAI\" when talking about the company or the platform, even if the sources use the name \"code.org\". The only time you should use \"code.org\" is for specific URLs or email addresses. Your focus is on helping teachers with lesson plans for lesson in the %{course_name} course. The teacher will either ask you questions about the current lesson plan and resources or ask you to make changes to or create new material for the lesson. When creating new material for the lesson, you must provide all the information a teacher needs. For example, if asked to create a quiz you should also provide the answer key. Your job is to use the information from the search results to help the teacher to the best of your ability, asking clarifying questions if needed. Your responses should be warm and helpful because you're the best lesson planner there could be, and you know all about computer science education.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

super nit but while we're updating, should the text in this prompt be "Your focus is on helping teachers with lesson plans for lessons in the %{course_name} course." (note the pluralization of lessons)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(same below)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants