> For the complete documentation index, see [llms.txt](https://contentsprout-ai.gitbook.io/ai-content/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://contentsprout-ai.gitbook.io/ai-content/articles/gpt.md).

# GPT

GPT is an alpha feature that allows you to use custom prompts to ask questions about your article. We use GPT-4-1106 Preview (the most advanced model in the world) and it has the context of your entire article (unless you deselect it).

CS AI aims to enable agile teams. Your writers and editors never need to leave the tool. You can prompt inside of the editor using the most advanced model of GPT. By advanced, we mean that you can only access the latest and greatest if your a dev shop that spends thousands of dollars a month on credits.&#x20;

The current model is GPT-Turbo-Preview {1/25/24}. It has a 128k Context Window.

<figure><img src="https://2004518248-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZqsXvA0cuJHriyQTzVjk%2Fuploads%2F89RASbYQewgxtCQNhqf4%2FGPT.png?alt=media&amp;token=067c91be-2225-416e-ab58-f6170be16765" alt=""><figcaption></figcaption></figure>

Check the box if you want the entire article to be the context. If you choose this option, the responses will take MUCH longer, but the benefit is that the system knows exactly what has been written.\
\
We recommend using it like this.\
\
Copy the section you want to talk about. Do not use article as context.&#x20;

<figure><img src="https://2004518248-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZqsXvA0cuJHriyQTzVjk%2Fuploads%2FyfeOvIIZr2bug7fWbVaK%2FGPT%202.png?alt=media&amp;token=944cc0ce-4c9a-4d3f-bb57-5f0ec8a566b3" alt=""><figcaption></figcaption></figure>

The result looks like this ->

<figure><img src="https://2004518248-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZqsXvA0cuJHriyQTzVjk%2Fuploads%2FUzZvgdyZMbMp3vOXTgFb%2FGPT%203.png?alt=media&amp;token=9ee98b42-2e33-4d06-b2e3-834a71550680" alt=""><figcaption></figcaption></figure>

As you can see, the result that I pasted into the article is unformatted. While the writing is better, the current output does not format exactly how you'd want. We will work on this.

After we edit the text, it looks pretty good.

<figure><img src="https://2004518248-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZqsXvA0cuJHriyQTzVjk%2Fuploads%2FFwzhPZEuePoJ1vUv5CxT%2FGPT%20Final.png?alt=media&amp;token=c1908720-0b40-4fb0-9a22-db7416d2dc50" alt=""><figcaption></figcaption></figure>

We'll let you decide which one you like better.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://contentsprout-ai.gitbook.io/ai-content/articles/gpt.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
