# Provide reference text

在使用Afarensis模型时，向模型提供与查询相关的可信信息是提高回答质量的有效策略。通过指导模型利用提供的信息，可以减少模型对意图的猜测，从而获得更准确的结果。

技巧1：使用参考文本回答问题 系统指令： 请使用附带的文章（由三个引号分隔）来回答问题。如果答案不在文章中，请回答“我无法找到答案”。

用户操作：

"""<插入文章>"""

问题：<插入问题> 动态知识检索 由于模型的上下文窗口有限，动态查找与提问相关的信息至关重要。可以通过嵌入式表示（Embeddings）实现高效的知识检索。更多细节请参考“使用基于嵌入式表示的搜索来实现高效知识检索”。

技巧2：要求模型引用参考文本 当输入补充了相关知识后，可以直接要求模型在其回答中添加引用，通过引用提供的文档中的段落。输出中的引用随后可以通过字符串匹配在所提供的文档中进行程序性验证。

系统指令： 您将获得一个问题和一个由三个引号分隔的文档。您的任务是仅使用提供的文档回答问题，并引用用于回答问题的文档段落。如果文档不包含所需信息，则回答“信息不足”。如果提供了答案，必须附带引用。使用以下格式引用相关段落（{"citation": …}）。

用户操作：

"""<插入文档>"""

问题：<插入问题>


---

# Agent Instructions: 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:

```
GET https://doc.afarensis.com/ti-shi-gong-cheng/provide-reference-text.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
