> For the complete documentation index, see [llms.txt](https://docs.gdf.ai/gdf-full-stack-engineering/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gdf.ai/gdf-full-stack-engineering/troubleshooting/documentation.md).

# Documentation

Troubleshooting software issues can be a challenging task, and often developers turn to existing documentation for guidance. Generative AI tools like ChatGPT can assist in this process by considering the provided documentation while offering solutions. In this article, we will discuss how to read and use existing documentation, feed it into ChatGPT, and the benefits of using generative AI to help troubleshoot issues based on the latest documentation.

## Reading and using existing documentation

* Start by identifying the relevant sections of the documentation for the issue you're facing.
* Understand the concepts, syntax, and examples provided in the documentation.
* Compare the expected behavior described in the documentation with the actual behavior in your application to pinpoint discrepancies.
* Use the documentation as a reference for modifying your code to resolve the issue.

## Feeding existing documentation into ChatGPT:

* Extract relevant parts of the documentation as context to provide to ChatGPT.
* Include a clear description of the issue you are facing along with the relevant code snippet.
* Ask ChatGPT specific questions or request solutions based on the provided context, ensuring it considers the documentation when generating a response.

## Example prompt

{% code overflow="wrap" %}

```
Consider the following documentation excerpt about the XYZ library:

[Insert relevant documentation excerpt here]

I'm facing an issue with my code that uses the XYZ library:

[Insert code snippet here]

The expected behavior is [describe expected behavior], but the actual behavior is [describe actual behavior]. How can I fix this issue based on the documentation provided?
```

{% endcode %}

## Benefits of having generative AI read updated documentation for troubleshooting:

* Saves time by quickly providing suggestions based on the latest documentation, reducing the time spent searching for relevant information.
* Ensures the provided solutions adhere to the current best practices and recommendations outlined in the documentation.
* Facilitates continuous learning and adaptation by considering the most up-to-date information in the rapidly evolving world of software development.
* Reduces the risk of implementing outdated or deprecated solutions, as generative AI considers the latest documentation when generating responses.

## Conclusion

Leveraging generative AI and existing documentation for troubleshooting can be a powerful approach to resolving software issues. It allows developers to benefit from the latest knowledge and best practices while reducing the time and effort spent on troubleshooting. By effectively feeding documentation into ChatGPT and using its generated responses, developers can efficiently resolve issues and ensure their applications follow the most up-to-date guidelines and recommendations.


---

# 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 dynamically by asking a question.

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

```
GET https://docs.gdf.ai/gdf-full-stack-engineering/troubleshooting/documentation.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
