Keyboard shortcuts

Press ← or → to navigate between chapters

Press ? to show this help

Press Esc to hide this help

텍스트 임베딩

항목값
화면 이름Text to embeddings
식별자textToEmbeddingsV2
지원 실행 방식Batch
범주문자열 (String)
반환 자료형Embedded vector

텍스트를 임베딩으로 변환합니다.

입력 인자

이름지정 여부자료형의미와 조건
Model필수Model변환에 사용할 임베딩 모델입니다.
Text column필수Expression<String>지정한 모델로 임베딩할 텍스트 열입니다.
Output mode선택Enum<Simple, With errors>단순 결과 또는 오류를 함께 담은 결과 중 출력 방식을 선택합니다.

입출력 예시

예시 1: 기본 동작

palantir 단어의 임베딩 예시입니다.

인자 값:

  • Model:
    ada002Embedding(

    )
  • Text column: text
  • Output mode: null
text출력
palantir[ -0.019182289, -0.02127992, 0.009529043, -0.008066221, -0.0014429842, 0.019154688, -0.023556953, -0...

예시 2: 기본 동작

Ada가 아닌 모델로 만든 palantir 단어의 임베딩 예시입니다.

인자 값:

  • Model:
    instructorLargeEmbedding(

    )
  • Text column: text
  • Output mode: null
text출력
palantir[ -0.019182289, -0.02127992, 0.009529043, -0.008066221, -0.0014429842, 0.019154688, -0.023556953, -0...

예시 3: null 처리

null 입력은 null을 반환합니다.

인자 값:

  • Model:
    ada002Embedding(

    )
  • Text column: text
  • Output mode: null
text출력
nullnull

예시 4: 경계 조건

빈 입력 문자열은 null을 반환합니다.

인자 값:

  • Model:
    ada002Embedding(

    )
  • Text column: text
  • Output mode: null
text출력
empty stringnull

예시 5: 경계 조건

OpenAI Ada의 토큰 한도를 넘는 입력 문자열은 null을 반환합니다.

인자 값:

  • Model:
    ada002Embedding(

    )
  • Text column: text
  • Output mode: null
text출력
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...null

예시 6: 경계 조건

OpenAI Ada의 토큰 한도를 넘는 입력 문자열은 null을 반환합니다.

인자 값:

  • Model:
    instructorLargeEmbedding(

    )
  • Text column: text
  • Output mode: SIMPLE
text출력
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...{
 error: Context limit exceeded.,
 ok: null,
}

긴 구조값 안의 줄임표는 생략한 내용을 나타냅니다.