Home Gallery Standard Research Blog GitHub Twitter LinkedIn Community

instructor system prompt

Category: General-purpose assistants. Audited against the AISPA standard.

What is in instructor's system prompt?

instructor's full system prompt: 1 version, 3,953 characters. 1 instruction flagged, worst on tool/action safety.

The full text of 1 prompt is reproduced below, 3,953 characters in all, each read instruction by instruction against the eight AISPA dimensions. 1 instruction was flagged as working against the person on the other end, most of them on tool/action safety.

1 Prompts on record
1 Flagged instructions
AI audit Audit source
D2 · Truthfulness & Information Integrity D4 · Tool/Action Safety

instructor - docs prompting decomposition faithful cot

3953 characters · 1 flagged

--- description: "Faithful Chain of Thought aims to use multiple reasoning steps to improve the quality of the final outputs" --- Faithful Chain of Thought<sup><a href="https://arxiv.org/pdf/2301.13379">1</a></sup> improves the faithfulness of reasoning chains generated by Language Models by breaking it up into two stages 1. **Translation** : We first translate a user query into a series of reasoning steps. These are a task specific set of steps that we can execute deterministically. 2. **Problem Solving**: We execute our steps and arrive at a final answer that we can derive. This ensures that our Chain Of Thought is able to derive a answer that is consistent with the reasoning steps. They list a few examples in the paper of what these task-specific steps could be 1. **Math Word Problems** : Python Code that can be executed by an interpreter to derive a final answer 2. **Multi-Hop QA** : This is a multi-step reasoning process. To solve this, they use a mix of python and Datalog ( which is a relation and log programming language ) to arrive at a final answer 3. **Planning** : When trying to generate a plan to solve a user query, they generate a list of symbolic goals in a Programming Language and then call a PDDL Planner to obtain a plan to solve the user's query ![](../../img/faithful_cot_example.png) In the example below, we show how you can use a LLM to generate python code that can be executed by an Interpreter to arrive at a final answer. We can implement it in `instructor` as seen below ```python hl_lines="30-45" import instructor from pydantic import BaseModel, Field client = instructor.from_provider("openai/gpt-5-nano") class ReasoningStep(BaseModel): id: int = Field(description="Unique ID") rationale: list[str] = Field( description="""Specific sections from prior reasoning steps or the context that ground this reasoning step""" ) dependencies: list[int] = Field( description="""IDs of prior reasoning steps that this reasoning step depends on""" ) eval_string: str = Field( description="""Python Code to execute to generate the final evaluation""" ) def generate_reasoning_steps(query: str) -> list[ReasoningStep]: return client.create( messages=[ { "role": "system", "content": """ You are a world class AI who excels at generating reasoning steps to answer a question. You will be given a question and you will generate a list of reasoning steps that are needed to answer the question. At each point you should either - declare a variable to be referenced later on - combine multiple variables together to generate a new result that you should store in another variable The final answer should be stored in a variable called `answer`. """, }, {"role": "user", "content": query}, ], model="gpt-4o", response_model=list[ReasoningStep], ) if __name__ == "__main__": steps = generate_reasoning_steps( """If there are 3 cars in the parking lot and 2 more cars arrive, how many cars are in the parking lot after another 2 more arrive?""" ) code = "\n".join([step.eval_string for step in steps]) print(code) """ initial_cars = 3 arriving_cars = 2 cars_after_first_arrival = initial_cars + arriving_cars final_car_count = cars_after_first_arrival + 2 answer = final_car_count """ exec(code) local_vars = {} exec(code, {}, local_vars) print(local_vars.get("answer")) #> 7 ``` ### References <sup id="ref-1">1</sup>: [Faithful Chain-of-Thought Reasoning](https://arxiv.org/pdf/2301.13379)

Instructions flagged against the user

D4 · Tool/Action Safety
“exec(code) local_vars = {} exec(code, {}, local_vars)”
The prompt demonstrates and encourages the use of exec() to execute dynamically generated Python code from LLM output without any validation, sandboxing, or safety checks. This is a significant tool/action safety concern as it executes arbitrary code generated by the model directly on the host system.

Questions about instructor's system prompt

Does instructor's system prompt contain instructions that work against the user?

Yes. 1 instruction in instructor's system prompt was flagged as working against the person the product is talking to, most of them under tool/action safety. Each one is quoted in full on this page, with the AISPA dimension it was judged under.

How long is instructor's system prompt?

3,953 characters across 1 prompt on this page. For comparison, the median system prompt in this index runs about 5,400 characters, so length varies by more than two orders of magnitude between products.

How many versions of instructor's system prompt are on record?

1. Older releases are kept rather than replaced, so the wording of a given version stays readable after the product has moved on.

Where did this instructor system prompt come from?

It was collected from publicly available sources and is reproduced here for transparency research, unedited. This site does not extract prompts from products itself.

How was instructor's system prompt audited?

Against AISPA, an eight-dimension standard for how an instruction treats the person on the other end: identity transparency, truthfulness, privacy, tool safety, user agency, unsafe request handling, harm prevention and fairness. This audit was ai audit. The method is described in the paper behind the standard.

How this page was made

The prompt text above is reproduced verbatim from a public source. Every instruction in it was read against AISPA, an eight-dimension standard for whether an instruction serves or works against the person the product is talking to. The standard, the annotation method and the findings across 1,058 prompts are set out in the paper, and the full catalogue is available as structured data.

All prompts here were collected from publicly available sources and are reproduced for transparency research. Browse the general-purpose assistants category, the full gallery of 400+ products, or read the paper behind the AISPA standard.