Skip to content

week1 day1 exercise - #1586

Open
kavyahj04 wants to merge 4 commits into
ed-donner:mainfrom
kavyahj04:main
Open

week1 day1 exercise#1586
kavyahj04 wants to merge 4 commits into
ed-donner:mainfrom
kavyahj04:main

Conversation

@kavyahj04

Copy link
Copy Markdown

No description provided.

Copilot AI lite review requested due to automatic review settings August 30, 2026 20:02

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

The notebook as added won’t run cleanly in a fresh kernel (missing client/init) and includes malformed prompt strings that will produce incorrect instructions/output.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Adds a new Day 1 exercise notebook under 1_foundations/community_contributions/ to demonstrate multi-step prompting (business area → pain point → agentic solution) using sequential LLM calls.

Changes:

  • Introduces a new day1.ipynb notebook with an exercise prompt and two code cells that chain multiple openai.chat.completions.create(...) calls.
  • Formats the final result for notebook display via Markdown.
File summaries
File Description
1_foundations/community_contributions/kavyahj04/week01/day1.ipynb New notebook implementing a chained LLM exercise (idea → pain point → solution).
Review details

Suppressed comments (2)

1_foundations/community_contributions/kavyahj04/week01/day1.ipynb:60

  • This prompt is missing punctuation between {business_area} and the instruction, which makes the user message harder to read and can reduce output quality.
    "messages = [{\"role\": \"user\", \"content\": f\"Here is the business area: {business_area} present a pain point in this industry.\"}]\n",

1_foundations/community_contributions/kavyahj04/week01/day1.ipynb:67

  • The final prompt concatenates industry{pain_point} without a separator and also misses a space in solution.While, producing a malformed instruction string. Include the retrieved pain_point with clear separators and spacing.
    "messages = [{\"role\": \"user\", \"content\": f\"Here is the business area: {business_area} present a pain point in this industry{pain_point}, propose the Agentic AI solution.While proposing follow this structure. 1. Business Area 2. Pain Point 3. Agentic AI solution\"}]\n",
  • Files reviewed: 1/1 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +34 to +40
"# First create the messages:\n",
"message = \"You are a helpful assistant who pick a business area that might be worth exploring for an Agentic AI opportunity.\"\n",
"messages = [{\"role\": \"user\", \"content\": \"Something here\"}]\n",
"\n",
"# Then make the first call:\n",
"\n",
"response = openai.chat.completions.create(model=\"gpt-5.4-mini\", messages=messages)\n",
Comment on lines +15 to +16
" Finally have 3 third LLM call propose the Agentic AI solution. <br/>\n",
" We will cover this at up-coming labs, so don't worry if you're unsure.. just give it a try!\n",
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