> For the complete documentation index, see [llms.txt](https://docs.docbits.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.docbits.com/chinese/guan-li-yu-she-zhi/settings/global-settings/document-types/model-training/best-practices.md).

# 最佳实践

## 持续模型训练的最佳实践，例如训练频率、样本文档的选择以及模型性能指标的监控。

**以下是持续模型训练的一些最佳实践：**

**定期训练：**

* 定期进行训练，以确保模型保持最新，并能适应数据和需求的变化。
* 训练频率可能因数据类型和训练进度而异，但定期训练对于保持模型性能至关重要。

**使用最新的样本文档：**

* 使用近期的样本文档，这些文档应能代表模型将要处理的数据。
* 这可能包括添加新文档、移除过时文档或编辑元数据，以确保训练数据保持最新且相关。

**选择多样化的样本：**

* 确保训练数据涵盖各种场景和用例，以保证模型具有稳健性和灵活性。
* 考虑布局、语言、格式和内容方面的不同变化，以确保模型在不同情况下都能良好运行。

**监控模型性能：**

* 使用准确率、精确率和召回率等相关指标定期监控模型性能。
* 分析分类测试和验证检查的结果，以找出薄弱环节并发现改进机会。

**纳入持续反馈：**

* 纳入用户和专家的反馈，持续改进模型。
* 收集有关错误分类或结果不理想的反馈，并利用这些信息调整和优化模型。

**自动化训练流程：**

* 自动化训练流程，以提高效率并尽量减少人为错误。
* 使用工具和脚本，在有新数据或需要变更时自动执行模型训练、评估和更新。

通过实施这些持续模型训练的最佳实践，您可以确保模型不断改进并达到最佳性能，以满足您的用例需求。


---

# 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://docs.docbits.com/chinese/guan-li-yu-she-zhi/settings/global-settings/document-types/model-training/best-practices.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.
