Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -381,3 +381,5 @@ This project is licensed under a custom non-commercial license - see the [LICENS

Keywords: Prompt Engineering, AI, Machine Learning, Natural Language Processing, LLM, Language Models, NLP, Conversational AI, Zero-Shot Learning, Few-Shot Learning, Chain of Thought

![](https://europe-west1-prompt-eng-views-tracker.cloudfunctions.net/prompt-eng-tracker?notebook=main-readme)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Add explicit tracking disclosure for the README view pixel.

Line 384 introduces passive analytics collection from a remote endpoint. Please add a short privacy notice in the README (what is collected, purpose, and how users can avoid it) so this is transparent and compliant with common OSS privacy expectations.

🧰 Tools
🪛 markdownlint-cli2 (0.22.1)

[warning] 384-384: Images should have alternate text (alt text)

(MD045, no-alt-text)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@README.md` at line 384, Add a short privacy disclosure immediately adjacent
to the README pixel line (the image URL containing
"https://europe-west1-prompt-eng-views-tracker.cloudfunctions.net/prompt-eng-tracker?notebook=main-readme")
explaining that the remote endpoint receives a passive view ping (e.g.,
timestamp, viewer IP/referrer/agent or a basic view count), the purpose
(aggregate README view metrics), and how to avoid it (disable remote image
loading, block that domain, or remove the image line). Place this as a one- or
two-sentence "Privacy" note next to the existing image tag so readers see it
where the tracking pixel is embedded.

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Provide alt text for the tracker image.

Line 384 uses an image with empty alt text; this fails markdown accessibility linting and is easy to fix.

Proposed fix
-![](https://europe-west1-prompt-eng-views-tracker.cloudfunctions.net/prompt-eng-tracker?notebook=main-readme)
+![README view tracker pixel](https://europe-west1-prompt-eng-views-tracker.cloudfunctions.net/prompt-eng-tracker?notebook=main-readme)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
![](https://europe-west1-prompt-eng-views-tracker.cloudfunctions.net/prompt-eng-tracker?notebook=main-readme)
![README view tracker pixel](https://europe-west1-prompt-eng-views-tracker.cloudfunctions.net/prompt-eng-tracker?notebook=main-readme)
🧰 Tools
🪛 markdownlint-cli2 (0.22.1)

[warning] 384-384: Images should have alternate text (alt text)

(MD045, no-alt-text)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@README.md` at line 384, The tracker image tag currently has empty alt text;
update the image markdown to include a concise, descriptive alt attribute (e.g.,
"Prompt engineering views tracker") so it passes accessibility linting—locate
the image markdown line containing the tracker URL and replace the empty alt
(the ![] part) with meaningful alt text inside the brackets.

Source: Linters/SAST tools


7 changes: 7 additions & 0 deletions all_prompt_engineering_techniques/ambiguity-clarity.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,13 @@
" print(f\"Improved: {improved_prompt}\")\n",
" print(\"-\" * 50)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"![](https://europe-west1-prompt-eng-views-tracker.cloudfunctions.net/prompt-eng-tracker?notebook=all-prompt-engineering-techniques--ambiguity-clarity)"
]
}
],
"metadata": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,13 @@
"\n",
"Understanding these different prompt structures allows you to choose the most appropriate approach for various tasks and create more effective interactions with AI language models."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"![](https://europe-west1-prompt-eng-views-tracker.cloudfunctions.net/prompt-eng-tracker?notebook=all-prompt-engineering-techniques--basic-prompt-structures)"
]
}
],
"metadata": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,13 @@
"output = chain.invoke(input_variables).content\n",
"display_output(output)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"![](https://europe-west1-prompt-eng-views-tracker.cloudfunctions.net/prompt-eng-tracker?notebook=all-prompt-engineering-techniques--constrained-guided-generation)"
]
}
],
"metadata": {
Expand Down
7 changes: 7 additions & 0 deletions all_prompt_engineering_techniques/cot-prompting.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,13 @@
"metadata": {},
"outputs": [],
"source": "llm = ChatOpenAI(model=\"gpt-4o\")\n\nlogical_reasoning_prompt = PromptTemplate(\n input_variables=[\"scenario\"],\n template=\"\"\"Analyze the following logical puzzle thoroughly. Follow these steps in your analysis:\n\nList the Facts:\n\nSummarize all the given information and statements clearly.\nIdentify all the characters or elements involved.\nIdentify Possible Roles or Conditions:\n\nDetermine all possible roles, behaviors, or states applicable to the characters or elements (e.g., truth-teller, liar, alternator).\nNote the Constraints:\n\nOutline any rules, constraints, or relationships specified in the puzzle.\nGenerate Possible Scenarios:\n\nSystematically consider all possible combinations of roles or conditions for the characters or elements.\nEnsure that all permutations are accounted for.\nTest Each Scenario:\n\nFor each possible scenario:\nAssume the roles or conditions you've assigned.\nAnalyze each statement based on these assumptions.\nCheck for consistency or contradictions within the scenario.\nEliminate Inconsistent Scenarios:\n\nDiscard any scenarios that lead to contradictions or violate the constraints.\nKeep track of the reasoning for eliminating each scenario.\nConclude the Solution:\n\nIdentify the scenario(s) that remain consistent after testing.\nSummarize the findings.\nProvide a Clear Answer:\n\nState definitively the role or condition of each character or element.\nExplain why this is the only possible solution based on your analysis.\nScenario:\n\n{scenario}\n\nAnalysis:\"\"\")\n\nlogical_reasoning_chain = logical_reasoning_prompt | llm\n\nlogical_puzzle = \"\"\"In a room, there are three people: Amy, Bob, and Charlie. \nOne of them always tells the truth, one always lies, and one alternates between truth and lies. \nAmy says, 'Bob is a liar.' \nBob says, 'Charlie alternates between truth and lies.' \nCharlie says, 'Amy and I are both liars.' \nDetermine the nature (truth-teller, liar, or alternator) of each person.\"\"\"\n\nlogical_reasoning_response = logical_reasoning_chain.invoke(logical_puzzle).content\nprint(logical_reasoning_response)"
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"![](https://europe-west1-prompt-eng-views-tracker.cloudfunctions.net/prompt-eng-tracker?notebook=all-prompt-engineering-techniques--cot-prompting)"
]
}
],
"metadata": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,13 @@
"print(\"\\nFairness evaluation of improved response:\")\n",
"print(fairness_score)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"![](https://europe-west1-prompt-eng-views-tracker.cloudfunctions.net/prompt-eng-tracker?notebook=all-prompt-engineering-techniques--ethical-prompt-engineering)"
]
}
],
"metadata": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,13 @@
"expected_content = \"Overfitting occurs when a model learns the training data too well, including its noise and fluctuations, leading to poor generalization on new, unseen data.\"\n",
"evaluate_prompt(prompt, expected_content)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"![](https://europe-west1-prompt-eng-views-tracker.cloudfunctions.net/prompt-eng-tracker?notebook=all-prompt-engineering-techniques--evaluating-prompt-effectiveness)"
]
}
],
"metadata": {
Expand Down
7 changes: 7 additions & 0 deletions all_prompt_engineering_techniques/few-shot-learning.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,13 @@
"accuracy = evaluate_model(few_shot_sentiment_classification, test_cases)\n",
"print(f\"Model Accuracy: {accuracy:.2f}\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"![](https://europe-west1-prompt-eng-views-tracker.cloudfunctions.net/prompt-eng-tracker?notebook=all-prompt-engineering-techniques--few-shot-learning)"
]
}
],
"metadata": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,13 @@
"print(\"Final Instruction Output:\")\n",
"print(get_completion(final_instruction))"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"![](https://europe-west1-prompt-eng-views-tracker.cloudfunctions.net/prompt-eng-tracker?notebook=all-prompt-engineering-techniques--instruction-engineering-notebook)"
]
Comment on lines +452 to +457

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major | 🏗️ Heavy lift

Add explicit tracking disclosure/consent before embedding remote view pixels.

Line 456 introduces a third-party tracking request on notebook render, which can collect visitor metadata (e.g., IP/user-agent/referrer) without an explicit notice. Please add a visible privacy disclosure (and ideally an opt-out mechanism) where these pixels are introduced, or gate tracking behind explicit consent.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@all_prompt_engineering_techniques/instruction-engineering-notebook.ipynb`
around lines 452 - 457, The notebook currently embeds a remote tracking pixel
via the markdown image URL
("https://europe-west1-prompt-eng-views-tracker.cloudfunctions.net/prompt-eng-tracker?notebook=all-prompt-engineering-techniques--instruction-engineering-notebook")
which issues third-party requests on render; add a visible privacy disclosure
directly above that markdown cell describing what metadata may be collected and
why, and gate the pixel behind explicit consent (e.g., replace the direct image
with a consent button or toggle that, when enabled by the user, loads the
external image), or proxy/replace the external call so no third‑party request
fires without consent; ensure the disclosure is prominent, includes an opt-out,
and that the image URL is not requested until consent is granted.

}
],
"metadata": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,13 @@
"chain = problem_solving_prompt | llm\n",
"print(chain.invoke(\"Calculate the compound interest on $1000 invested for 5 years at an annual rate of 5%, compounded annually.\").content)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"![](https://europe-west1-prompt-eng-views-tracker.cloudfunctions.net/prompt-eng-tracker?notebook=all-prompt-engineering-techniques--intro-prompt-engineering-lesson)"
]
}
],
"metadata": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,13 @@
" print_response(response)\n",
" print()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"![](https://europe-west1-prompt-eng-views-tracker.cloudfunctions.net/prompt-eng-tracker?notebook=all-prompt-engineering-techniques--multilingual-prompting)"
]
}
],
"metadata": {
Expand Down
7 changes: 7 additions & 0 deletions all_prompt_engineering_techniques/negative-prompting.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,13 @@
" refined_evaluation = evaluate_output(refined_response, constraints)\n",
" print(\"\\nRefined evaluation results:\", refined_evaluation)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"![](https://europe-west1-prompt-eng-views-tracker.cloudfunctions.net/prompt-eng-tracker?notebook=all-prompt-engineering-techniques--negative-prompting)"
]
}
],
"metadata": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,13 @@
"result = robust_number_generation(topic)\n",
"print(f\"Final result for topic '{topic}': {result}\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"![](https://europe-west1-prompt-eng-views-tracker.cloudfunctions.net/prompt-eng-tracker?notebook=all-prompt-engineering-techniques--prompt-chaining-sequencing)"
]
}
],
"metadata": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,13 @@
" print(f\"Prompt {i}:\")\n",
" get_response(prompt)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"![](https://europe-west1-prompt-eng-views-tracker.cloudfunctions.net/prompt-eng-tracker?notebook=all-prompt-engineering-techniques--prompt-formatting-structure)"
]
}
],
"metadata": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,13 @@
"tips = llm.invoke(tips_prompt).content\n",
"print(tips)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"![](https://europe-west1-prompt-eng-views-tracker.cloudfunctions.net/prompt-eng-tracker?notebook=all-prompt-engineering-techniques--prompt-length-complexity-management)"
]
}
],
"metadata": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,13 @@
"print(f\"Refined prompt score: {refined_score:.2f}\")\n",
"print(f\"Improvement: {(refined_score - original_score):.2f} points\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"![](https://europe-west1-prompt-eng-views-tracker.cloudfunctions.net/prompt-eng-tracker?notebook=all-prompt-engineering-techniques--prompt-optimization-techniques)"
]
}
],
"metadata": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,13 @@
"\n",
"run_security_tests()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"![](https://europe-west1-prompt-eng-views-tracker.cloudfunctions.net/prompt-eng-tracker?notebook=all-prompt-engineering-techniques--prompt-security-and-safety)"
]
Comment on lines +417 to +422

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Add explicit disclosure/consent for passive tracking pixels.

This hidden pixel causes automatic outbound requests on notebook render and can collect user metadata (e.g., IP/UA/referrer) without an in-repo disclosure or opt-out path. Please add a visible privacy notice and documented opt-out before rollout.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@all_prompt_engineering_techniques/prompt-security-and-safety.ipynb` around
lines 417 - 422, The notebook contains a passive tracking pixel embedded as the
markdown image reference
"![](https://europe-west1-prompt-eng-views-tracker.cloudfunctions.net/prompt-eng-tracker?notebook=all-prompt-engineering-techniques--prompt-security-and-safety)";
replace or augment this with a visible privacy disclosure and an opt-out/opt-in
mechanism: add a short markdown notice above the image explaining what metadata
the pixel collects and why, provide a documented opt-out option (e.g.,
remove/replace the image URL or toggle to disable tracking) and link to
documentation that records the opt-out procedure, and ensure the image is not
requested automatically without explicit consent (e.g., remove the image tag or
conditionally render it after consent) so the pixel cannot fire on notebook
render.

}
],
"metadata": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,13 @@
")\n",
"print(get_completion(prompt))"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"![](https://europe-west1-prompt-eng-views-tracker.cloudfunctions.net/prompt-eng-tracker?notebook=all-prompt-engineering-techniques--prompt-templates-variables-jinja2)"
]
}
],
"metadata": {
Expand Down
7 changes: 7 additions & 0 deletions all_prompt_engineering_techniques/role-prompting.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,13 @@
" print(response.content)\n",
" print(\"-\" * 50)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"![](https://europe-west1-prompt-eng-views-tracker.cloudfunctions.net/prompt-eng-tracker?notebook=all-prompt-engineering-techniques--role-prompting)"
]
}
],
"metadata": {
Expand Down
7 changes: 7 additions & 0 deletions all_prompt_engineering_techniques/self-consistency.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -685,6 +685,13 @@
" print(\"\\nConsistency Evaluation:\\n\", evaluation)\n",
" print(\"\\n\" + \"-\"*50 + \"\\n\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"![](https://europe-west1-prompt-eng-views-tracker.cloudfunctions.net/prompt-eng-tracker?notebook=all-prompt-engineering-techniques--self-consistency)"
]
}
],
"metadata": {
Expand Down
7 changes: 7 additions & 0 deletions all_prompt_engineering_techniques/specific-task-prompts.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,13 @@
"print(\"Generated Story:\")\n",
"print(story)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"![](https://europe-west1-prompt-eng-views-tracker.cloudfunctions.net/prompt-eng-tracker?notebook=all-prompt-engineering-techniques--specific-task-prompts)"
]
}
],
"metadata": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,13 @@
"overall_analysis = integrate_results(profitability_analysis, liquidity_analysis, cash_flow_analysis)\n",
"print(\"Overall Financial Health Analysis:\\n\", overall_analysis)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"![](https://europe-west1-prompt-eng-views-tracker.cloudfunctions.net/prompt-eng-tracker?notebook=all-prompt-engineering-techniques--task-decomposition-prompts)"
]
}
],
"metadata": {
Expand Down
7 changes: 7 additions & 0 deletions all_prompt_engineering_techniques/zero-shot-prompting.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,13 @@
"\n",
"compare_prompts(task, prompt_templates)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"![](https://europe-west1-prompt-eng-views-tracker.cloudfunctions.net/prompt-eng-tracker?notebook=all-prompt-engineering-techniques--zero-shot-prompting)"
]
}
],
"metadata": {
Expand Down