# Giskard - Tech Teacher (Level 3)

* [Link to challenge](https://red.giskard.ai/challenges/off-topic/tech-teacher-3)

## Instructions

![Instructions](https://1679624655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEkk28J0B2BeDMuesRMr1%2Fuploads%2Fgit-blob-1414799ccb2e2bad5f8abb7678199969f890e4f2%2F2025-08-18-08-18-41.png?alt=media)

## Resolution

If you ask her which word she does not like, you will get something like this:

![test 1](https://1679624655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEkk28J0B2BeDMuesRMr1%2Fuploads%2Fgit-blob-ee8fdae5b709aa68eac68e30047db9b782010227%2F2025-08-18-08-22-38.png?alt=media)

But for some words, she will mention them like this:

![test 2](https://1679624655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEkk28J0B2BeDMuesRMr1%2Fuploads%2Fgit-blob-cae829a2f6a32db46372cc9f31b354c0acb83e0b%2F2025-08-18-08-23-30.png?alt=media)

So it seems like this is a way to find out which specific words she does not like.

So far I found out that she does not like: list, python, code

I tried this and had another answer than her usual "I don't like that word!"

![test 3](https://1679624655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEkk28J0B2BeDMuesRMr1%2Fuploads%2Fgit-blob-9f6bb8b873d78281a16e971b20711d410b1683ee%2F2025-08-18-08-25-13.png?alt=media)

And of course if we question her about advanced python topics we get another answer.

![test 4](https://1679624655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEkk28J0B2BeDMuesRMr1%2Fuploads%2Fgit-blob-3753f43cdf16e9b3ff51684540af8b5f5b40ac2d%2F2025-08-18-10-50-53.png?alt=media)

My previous assumption on how to detect banned words was wrong. It turns out that even when it does not mention the word before saying I dont like that word, does not mean that the word is not bad.\
The next thing I tried was these following tests:\
![generator](https://1679624655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEkk28J0B2BeDMuesRMr1%2Fuploads%2Fgit-blob-8b01c5b6be5d2bd7cda043ad81ad0c827827ed0f%2F2025-08-18-12-00-14.png?alt=media)\
![walk](https://1679624655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEkk28J0B2BeDMuesRMr1%2Fuploads%2Fgit-blob-b4fedfcd2d3279520ea4ae7f4a3764f9c7c53f46%2F2025-08-18-12-00-40.png?alt=media)\
![use](https://1679624655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEkk28J0B2BeDMuesRMr1%2Fuploads%2Fgit-blob-77db3b0b003b0951f1831f2f93f7fc93d9523739%2F2025-08-18-12-01-00.png?alt=media)

And so on.

Another interesting thing here, is that when I tried to send her off topic, I got an answer but the challenges was not validated. Probably because she used python code and advanced concepts in her answer:

![test off topic](https://1679624655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEkk28J0B2BeDMuesRMr1%2Fuploads%2Fgit-blob-32218171c7ef06b9ef1015a200baf36f25dacee1%2F2025-08-18-12-03-15.png?alt=media)

Finally, what worked was using the "I don't like that word!" sort of bypass and putting something right after it.\
In other words we are using some sort of state-flip trigger + very constrained off-topic output.

![Working prompt](https://1679624655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEkk28J0B2BeDMuesRMr1%2Fuploads%2Fgit-blob-240b782a21b7d2307a9c5ea6d10f5cbab01a8aad%2F2025-08-18-14-31-42.png?alt=media)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://csbygb.gitbook.io/pentips/writeups/giskard-red/giskard-tech-teacher3.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
