# アップロードされたドキュメントからの直接回答

MRC機能を利用することで、ユーザーからQ\&Aに登録されていない質問があった際に、アップロードされているドキュメント内に回答が記載されている場合、Alliが直接回答することができるようになりました。 ※MRC（機械読解AI）については[**こちら**](https://docs.allganize.ai/alli-userguide/knowledge-base/document/document)を参照してください。

この機能を使用するには、\[ナレッジベース]メニューの\[ドキュメント]をクリックし、サポートしているファイルタイプ（.txt、.docx、.doc、.ppt、.pptx、.pdfTxt、docx、pdf）のドキュメントをアップロードを行ってください。

<figure><img src="https://i0.wp.com/guide.allganize.ai/wp-content/uploads/2022/05/QAfromdocs1-1.png?resize=577%2C204&#x26;ssl=1" alt=""><figcaption></figcaption></figure>

Q\&Aから回答ノード内でこの機能の設定を行います。 有効に設定するにはQ\&Aから回答ノード内の\[Q\&Aより類似質問がなかった場合、ドキュメントから直接答えます。]のチェックボックスをオンにします。 ドキュメントから回答後に別のチャットフローへの移行を設定する場合は、\[ドキュメントから答えが出た場合のアクション指定]のチェックボックスをオンにします。

<figure><img src="https://i0.wp.com/guide.allganize.ai/wp-content/uploads/2022/05/QAfromdocx.png?resize=264%2C350&#x26;ssl=1" alt=""><figcaption></figcaption></figure>

\[注意] **Q\&Aから応答については既存のQ\&Aデータベースが優先されます。**\
ドキュメントからAlliの回答をより頻繁に表示したい場合は、\[Q\&A品質設定]をクリックし、\
\[１．質問の類似性基準値]の閾値をデフォルト値の”0.4”より少し高く設定することをおすすめします。\
※この設定よりも信頼度が高いQ\&A候補がある場合、この機能はトリガーされず、そのQ\&A候補が表示されます。

<figure><img src="https://i0.wp.com/guide.allganize.ai/wp-content/uploads/2022/05/%E7%9B%B4%E6%8E%A5%E5%9B%9E%E7%AD%94%E3%82%92%E4%BD%9C%E6%88%902.png?resize=703%2C86&#x26;ssl=1" alt=""><figcaption></figcaption></figure>

<figure><img src="https://i0.wp.com/guide.allganize.ai/wp-content/uploads/2022/05/QAfromdocs4.png?resize=272%2C267&#x26;ssl=1" alt=""><figcaption></figcaption></figure>

上記記載の設定によってAlliは、関連するQ\&Aペアがない場合にアップロードされたドキュメントから回答を抽出し、参照元ドキュメントのリンクを含む結果が表示されます。

<figure><img src="https://i0.wp.com/guide.allganize.ai/wp-content/uploads/2022/05/QAfromdocs5.png?resize=335%2C589&#x26;ssl=1" alt="" width="375"><figcaption></figcaption></figure>

この質問と回答は\[未回答の質問リスト]タブに追加されますので、\[+]をクリックするだけで、簡単にQ\&Aに追加することができます。

<figure><img src="https://i0.wp.com/guide.allganize.ai/wp-content/uploads/2022/05/QAfromdocs6.png?resize=800%2C329&#x26;ssl=1" alt=""><figcaption></figcaption></figure>

なお、Q\&Aノードを介さず、ドキュメントから回答を検索する場合には以下のノードを活用してください。[”文章から回答”ノード](https://docs.allganize.ai/alli-userguide/knowledge-base/document/document)


---

# 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://docs.allganize.ai/alliyzgaido/knowledge-base/document/direct-answers-from-document-search.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.
