> For the complete documentation index, see [llms.txt](https://book.kamimind.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://book.kamimind.ai/featured/huong-dan-su-dung-tro-ly-ai-cho-lap-trinh.md).

# Hướng dẫn sử dụng "Trợ lý AI cho lập trình"

> Hãy để “Trợ lý AI cho lập trình” trên KamiMind giúp bạn học lập trình và làm phần mềm

**Kami Store** -> Gõ vào ô tìm kiếm **“Lập trình”** -> Chọn AI **“Trợ lý AI cho lập trình”**

<figure><img src="https://blog.kamimind.ai/wp-content/uploads/2024/01/image-7-1024x696.png" alt=""><figcaption></figcaption></figure>

**Trò chuyện** -> Chọn **“Trợ lý AI cho lập trình”** để tương tác.

**Ví dụ 1**: Chương trình phân tích thừa số nguyên tố bằng Python

<figure><img src="/files/nnBJioyMQwM4c4ZKItwL" alt=""><figcaption></figcaption></figure>

Bạn có thể thay Python bằng các ngôn ngữ lập trình phổ biến khác. Các bạn có thể sao chép mã chương trình do Trợ lý AI tạo sinh vào colab để kiểm tra.

**Ví dụ 2:** Sửa lỗi chương trình

<figure><img src="/files/sREuL0x682wxvPJ8c5wV" alt=""><figcaption></figcaption></figure>

Lưu ý: Khi tương tác với Trợ lý AI bạn hãy sử dụng các Kỹ thuật *gợi ý* (prompt), khai thác tối đa khả năng học theo ngữ cảnh của Trợ lý AI để nhận được kết quả như mong đợi. Trong một số trường hợp mã chương trình được tạo sinh phát sinh lỗi, bạn hãy đưa lỗi đó cho Trợ lý AI chỉnh sửa.

**Ví dụ 3**: Hỏi về kiểu dữ liệu

<figure><img src="https://blog.kamimind.ai/wp-content/uploads/2024/01/image-8.png" alt=""><figcaption></figcaption></figure>

**Ví dụ 4**: Yêu cầu xây dựng mạng nơ-ron nhân tạo

<figure><img src="/files/5KlF2DDBUuY2Ghk0Nn6w" alt=""><figcaption></figcaption></figure>

Bạn cũng có tự thể tạo Trợ lý AI cho lập trình của riêng mình dùng bất kỳ mô hình AI siêu lớn nào có trên KamiMind.

Link đến các ví dụ nêu trên: <https://kamimind.ai/chat/share/4d81a0652ee24e27977c0662f9f75547>

**Xem thêm video hướng dẫn trên Youtube:** [**https://www.youtube.com/@kamimind-ai**](https://www.youtube.com/@kamimind-ai)

**Sau đây là một ví dụ về tạo Trợ lý AI cho lập trình trên KamiMind:**

KamiMind cho phép bạn tạo Trợ lý AI riêng cho mình. Bạn chỉ mất chưa đầy 10 giây là đã tạo được một trợ lý AI cho riêng mình.

<figure><img src="https://blog.kamimind.ai/wp-content/uploads/2024/01/image-9.png" alt=""><figcaption></figcaption></figure>

**Trò chuyện với Trợ lý AI vừa tạo tại mục “Trò chuyện”**

<figure><img src="/files/4RF4NHSdHWb27uISppkp" alt=""><figcaption></figcaption></figure>

**Xem trả lời đầy đủ ở link này:** [**https://kamimind.ai/chat/share/6fc1339e1e974dc0828767be3d01cf2b**](https://kamimind.ai/chat/share/6fc1339e1e974dc0828767be3d01cf2b)


---

# 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://book.kamimind.ai/featured/huong-dan-su-dung-tro-ly-ai-cho-lap-trinh.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.
