> For the complete documentation index, see [llms.txt](https://docs.allganize.ai/alli-llm-app-market/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.allganize.ai/alli-llm-app-market/manual/for_admin/default-apps/other/appurdoshitadokyumentokarafaqdtacsv.md).

# アップロードしたドキュメントからFAQデータ生成(CSV形式出力)

アップロードしたドキュメントからQ\&Aデータを作成し、CSV形式で出力します。

## フローの全体図 <a href="#overall" id="overall"></a>

<figure><img src="https://3244404108-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FR2CRA2CisD1pVQUgqd1g%2Fuploads%2Fa9gxB3dt8AgO6gJvedKv%2Fimage.png?alt=media&amp;token=3b9550ed-2512-4516-883d-992531ebd6f5" alt=""><figcaption></figcaption></figure>

## 概要 <a href="#overall" id="overall"></a>

アップロードしたドキュメントからFAQデータ生成(CSV形式出力)アプリでは、アップロードしたドキュメントからCSV形式でFAQを生成します。

生成されたデータをExcelへのインポートする際に、整理された状態で出力するよう形式を整えます。

### ドキュメントをアップロード（LLMインプットノード） <a href="#ga-node" id="ga-node"></a>

LLMインプットノードでユーザーがアップロードしたドキュメントの内容を下記の変数に保存しています。

変数：@DOC1

* 変数種別：ユーザ変数
* タイプ：ドキュメント

<figure><img src="https://3244404108-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FR2CRA2CisD1pVQUgqd1g%2Fuploads%2FJel4qjlYsmheFvXNKodS%2Fimage.png?alt=media&amp;token=3d350f32-e0ce-4567-a450-b096ea37c8e1" alt="" width="562"><figcaption></figcaption></figure>

### ドキュメントからCSV形式でFAQを生成（LLM実行ノード） <a href="#ga-node" id="ga-node"></a>

このLLM実行ノードでは、ユーザーがアップロードしたドキュメントの内容を保存した変数情報(@DOC1)をプロンプトで指定し実行しています。

* ベースモデル：OPENAI GPT-4o MINI
* プロンプト：【Alli専用】アップロードしたドキュメントからQAデータを作成しCSV形式にする

生成結果は下記の変数に保存しています。

変数：@ANSER

* 変数種別：会話変数
* タイプ：文字列

<figure><img src="https://3244404108-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FR2CRA2CisD1pVQUgqd1g%2Fuploads%2FiiwZJgTAzJD77PRyVVIB%2Fimage.png?alt=media&amp;token=ffaada2a-6e04-40c9-b2f0-ccc85dc25fd3" alt="" width="563"><figcaption></figcaption></figure>

<figure><img src="https://3244404108-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FR2CRA2CisD1pVQUgqd1g%2Fuploads%2Fmhr6T2lTo0KPyfnDmLsf%2Fimage.png?alt=media&amp;token=6cf05d81-6f6b-478d-bcdb-a2ff59a13c5d" alt="" width="563"><figcaption></figcaption></figure>

### CSV形式を整える（LLM実行ノード） <a href="#ga-node" id="ga-node"></a>

このLLM実行ノードでは、1つ前のLLM実行ノードで保存された変数情報(@ANSER)をプロンプトで指定し実行しています。

* ベースモデル：GEMINI 1.5 PRO
* プロンプト：アップロードしたドキュメントから作成したQAデータのCSV形式を整える

<figure><img src="https://3244404108-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FR2CRA2CisD1pVQUgqd1g%2Fuploads%2FQLCNM4yO1BjN0ZlXniYp%2Fimage.png?alt=media&amp;token=1111e779-166f-465b-b0b2-7d5da2dd4654" alt="" width="563"><figcaption></figcaption></figure>

<figure><img src="https://3244404108-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FR2CRA2CisD1pVQUgqd1g%2Fuploads%2Fowkzry0rewTFxZ0cYsfa%2Fimage.png?alt=media&amp;token=9fb2377e-db23-4efd-bf39-111db2af1915" alt="" width="563"><figcaption></figcaption></figure>


---

# 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.allganize.ai/alli-llm-app-market/manual/for_admin/default-apps/other/appurdoshitadokyumentokarafaqdtacsv.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.
