Discourse AI - AI 검색

:bookmark: 이 가이드는 Discourse AI 플러그인의 일부인 AI 검색 기능을 활성화하고 구성하는 방법을 설명합니다.

:person_raising_hand: 필요한 사용자 권한: 관리자

관련 주제와 유사하게, AI 검색은 전통적인 검색에서 사용되는 정확한 키워드 매칭을 넘어 의미론적 텍스트 유사도를 기반으로 가장 관련성 높은 주제를 찾는 데 도움을 줍니다. 이를 통해 정확한 일치 항목은 아니지만 초기 검색과 여전히 관련이 있는 주제를 발견할 수 있습니다. 찾고 있는 것을 찾지 못할 때 AI 검색이 도움이 됩니다!

기능

  • 의미론적 텍스트 유사도: 단순한 키워드 매칭을 넘어 의미론적 분석을 사용하여 텍스트 유사도를 찾습니다.
  • AI 빠른 검색: 일반 검색 결과가 적을 때 검색 메뉴 팝업에 AI 결과를 자동으로 추가합니다 (ai_embeddings_semantic_quick_search_enabled로 활성화).
  • 전체 페이지 검색에서 AI 검색 켜기/끄기 토글.
  • 선택 사항 HyDE (가상 문서 임베딩): 더 나은 결과를 위해 LLM을 사용하여 쿼리를 확장합니다.
  • :sparkles: 아이콘으로 결과를 표시합니다.
  • 익명 사용자 및 로그인된 사용자 모두에게 적용됩니다.

AI 검색 활성화

사전 요구 사항

AI 검색을 사용하려면 임베딩(Embeddings)이 구성되어야 합니다. 검색 품질을 향상시키기 위해 HyDE(가상 문서 임베딩)를 활성화하는 경우 대規模 언어 모델(LLM)이 선택적으로 필요합니다.

임베딩(Embeddings)

당사의 호스팅을 사용 중인 경우 기본 옵션을 제공합니다. 자체 호스팅 사용자는 Discourse AI - Embeddings 가이드를 따르세요.

대규모 언어 모델 (LLM) (선택 사항 — HyDE용)

LLM은 검색 쿼리에서 가상 문서를 생성한 후 이를 임베딩하기 위해 ai_embeddings_semantic_search_use_hyde 설정을 활성화하는 경우에만 필요합니다. 이는 결과 품질을 향상시킬 수 있지만 지연 시간과 비용을 증가시킵니다.

시작하려면 Discourse AI - 대규모 언어 모델 (LLM) 설정 페이지를 통해 구성할 수 있습니다.

구성

  1. 관리자플러그인Discourse AI기능임베딩으로 이동하여 모든 AI 검색 설정을 확인하세요.
  2. 임베딩을 위해 ai_embeddings_enabled을 활성화하세요.
  3. 전체 페이지 검색에서 AI 검색을 활성화하려면 ai_embeddings_semantic_search_enabled을 활성화하세요.
  4. 검색 메뉴 팝업에 AI 결과를 추가하려면 ai_embeddings_semantic_quick_search_enabled을 선택적으로 활성화하세요.
  5. 더 나은 결과를 위해 HyDE를 사용하려면 ai_embeddings_semantic_search_use_hyde을 선택적으로 활성화하세요 (LLM 필요).

기술 FAQ

[details=“AI 검색 로직 개요 (HyDE 활성화) 보기”]

mermaid height=255,auto
sequenceDiagram
    User->>+Discourse: "gamification" 검색 
    Discourse->>+LLM: "Discourse, 오픈소스 인터넷 포럼 시스템"에 대한 포럼에서<br> "gamification"에 대한 기사를 작성하세요.
    LLM->>+Discourse: 게이미피케이션은 게임이 아닌 맥락에 포인트, 배지,<br> 레벨, 리더보드와 같은 게임 디자인 요소를 적용하는 것입니다...
    Discourse->>+EmbeddingsAPI: "게이미피케이션은 게임 디자인 적용...
6개의 좋아요

I noticed a minor UI bug for ai embeddings semantic search hyde model. Steps to replicate

  1. Install AI Discourse plugin
  2. Open settings → Configure Gemini key
  3. Enable i embeddings semantic search enabled
  4. ai embeddings semantic search hyde model shows Google - gemini-pro (not configured)

The not configured doesn’t go away until after all the configurations are enabled and the page is refreshed thereafter.

2개의 좋아요

I think this is a limitation of our site settings page so apologies for that and glad you were able to get it sorted out

1개의 좋아요

A question about semantics. In some AI modules I see a reference to using Gemini while in others I see a reference to Gemini-Pro. Are these referring to different models (Gemini Nano, Pro and Ultra) or do they refer to the same LLM? If so then what does Gemini itself refer to and does it matter if one has a paid or a free subscription to Gemini?

1개의 좋아요

There are different Gemini models such as the ones you’ve pointed out. Depending on the one you have (likely to pro since its free right now) you would just plugin the API key in the relevant setting. The setting is for whatever Gemini model you have

This would depend on you and how you want to use Gemini, but either should work

More on this here

1개의 좋아요

Is there a way that I can inject something into the initial prompt to the LLM or manipulate the embeddings before they are passed off to the regular search?

I’m trying to boost (or possibly split out) staff responses (more authoritative) from community responses.

2개의 좋아요

현재 AI 검색에서는 사용자 정의 LLM 프롬프트 주입을 지원하지 않습니다. 다만, 향후 이 기능이 추가될 수 있습니다.

Contribute > Feature 요청을 만드는 것을 권장합니다!

2개의 좋아요

AI 검색을 막 시작했는데, 지금까지 꽤 마음에 듭니다. 항상 사용하는 데 불편한 점이 전혀 없네요. AI 결과만 표시하는 방법이 있을까요? (CSS를 사용하여 .fps-result는 숨기고 .ai-result는 표시하는 방법 말고요)

또한 빠른 검색(quick search)을 어디서 찾을 수 있는지 자세히 설명해 주실 수 있을까요?

1개의 좋아요

네, 그것은 실험 목적으로 Meta에서만 일시적으로 제공되던 기능입니다. 원문에서 제거했습니다. 알려주셔서 감사합니다.

현재 헤더의 자동완성 검색에 Discourse Algolia Search를 사용하고 있습니다. Discourse AI - AI 검색을 계속 사용할 수 있을까요?

게시글이 새 주제로 분리되었습니다: Discourse AI 사용자 설정 패널이 보이지 않음