# FAQ가 있는 RAG 구성 (v1.6.3\~)

**FAQ 기반 RAG 워크플로우 동영상 \[**[**바로가기**](https://youtu.be/4ZrvRPWq-5Y)**]**

### 기본 RAG 워크플로우

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

* 위 그림은 기본 RAG 워크플로우 화면입니다. 이 섹션에서는 기본 워크플로우에 FAQ를 추가하는 방식을 소개합니다.
* 기본 워크플로우 만드는것은 [RAG 워크플로우 만들기](/default/v1.7.5/basic-tutorials/guides/workflow/openapi.md)주세요.

### FAQ 벡터 DB 추가

* 벡터 DB 메뉴에서 FAQ타입을 생성합니다.

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

* 아래와 같은 FAQ CSV 파일을 만듭니다.
* 단건 추가도 가능합니다.

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

* v1.5.3 이전 까지는 질문과 답변 pair 가 된 컬럼이 필요합니다.

<figure><img src="/files/1dRBtn5xQo92Wnk8FjrV" alt=""><figcaption></figcaption></figure>

* 업로드 버튼을 누르고, csv 파일로 추가를 누르고, 적재시 사용할 임베딩 모델을 선택합니다.
* 파일을 선택하고 추가합니다.

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

* 적재가 완료 되면 위와 같은 데이터가 표시됩니다.

### 워크플로우 수정

* 워크플로우 수정을 누릅니다.

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

1. 위 그림과 같이 딥서핑 노드를 추가하고, 추가하였던 FAQ DB를 선택합니다.
2. 임베딩 노드를 딥서핑 노드의 `Embeddings`에 연결합니다.
3. 딥서핑 노드의 Output을 `Weaviate Vector Store`로 변경합니다.
4. Similarity Score Threshold Retriever 노드를 추가하고, 딥서핑 노드를 Similarity Score Threshold Retriever 노드의 `Vector Store`와 연결합니다.
5. Similarity Score Threshold Retriever 노드와 Unified RAG 노드의 `FAQ Retriver`와 연결합니다.

### 테스트

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

* Flowise chat 아이콘을 눌러 FAQ 질문을 입력후 답변을 확인합니다.

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

* 기존 RAG 의 대상이 되는 벡터DB의 질의 응답도 정상인지 확인합니다.


---

# 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://genos-docs.gitbook.io/default/v1.7.5/basic-tutorials/guides/workflow/faq-rag-v1.6.3.0.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.
