From 7d845f6015bc8e4b3192480a81f51f97d2456d69 Mon Sep 17 00:00:00 2001 From: Choonghyun Ryu Date: Fri, 14 Apr 2023 07:52:46 +0900 Subject: [PATCH] renewal packagedown docs --- docs/reference/create_completion.html | 13 +++++++++---- docs/reference/create_embeddings.html | 10 +++++----- docs/reference/index.html | 2 +- docs/reference/show.messages.html | 9 +++++++-- 4 files changed, 22 insertions(+), 12 deletions(-) diff --git a/docs/reference/create_completion.html b/docs/reference/create_completion.html index 5ce3cec..19512c7 100644 --- a/docs/reference/create_completion.html +++ b/docs/reference/create_completion.html @@ -17,7 +17,7 @@ bitGPT - 0.3.2.9000 + 0.3.7.9000 @@ -193,16 +193,20 @@

References

Examples

if (FALSE) {
+prompt_en <- "Tell us the best way to learn R. Include data analysis theories and important R packages to learn."
+prompt_kr <- "최고의 R 학습 방법을 알려주세요. 학습해야할 데이터 분석 이론과 중요한 R 패키지를 포함해 주세요."
 # 텍스트로 반환
 create_completion(
   model = "text-davinci-003",
-  prompt = "나는 R을 이용해서 데이터분석을 가르칩니다."
+  max_tokens = 150,
+  prompt = prompt_kr
 )
 
 create_completion(
   model = "text-davinci-003",
-  prompt = "I teach data analysis using R.",
+  prompt = prompt_kr,
   ko2en = FALSE,
+  max_tokens = 150,
   type = "console"
 )
 
@@ -213,9 +217,10 @@ 

Examples

create_completion( model = "text-davinci-002", - prompt = "나는 R을 이용해서 데이터분석을 가르칩니다.", + prompt = prompt_kr, n = 4, best_of = 4, + max_tokens = 150, logit_bias = logit_bias ) } diff --git a/docs/reference/create_embeddings.html b/docs/reference/create_embeddings.html index 0336c8d..dc8c461 100644 --- a/docs/reference/create_embeddings.html +++ b/docs/reference/create_embeddings.html @@ -17,7 +17,7 @@ bitGPT - 0.3.4.9000 + 0.3.7.9000
@@ -112,13 +112,13 @@

Examples

"목마는 주인을 버리고 거저 방울 소리만 울리며 가을 속으로 떠났다 술병에서 별이 떨어진다 상심한 별은 내 가슴에 가벼웁게 부서진다" ) -poem_embddings <- create_embeddings(model = "text-embedding-ada-002", input = poem) +poem_embeddings <- create_embeddings(model = "text-embedding-ada-002", input = poem) -dim(poem_embddings) -head(poem_embddings) +dim(poem_embeddings) +head(poem_embeddings) # 코사인 유사도 계산 -poem_embddings %>% +poem_embeddings %>% lsa::cosine() }
diff --git a/docs/reference/index.html b/docs/reference/index.html index eafd4e6..fbc3a42 100644 --- a/docs/reference/index.html +++ b/docs/reference/index.html @@ -17,7 +17,7 @@ bitGPT - 0.3.6.9001 + 0.3.7.9000 diff --git a/docs/reference/show.messages.html b/docs/reference/show.messages.html index d66285b..aa1234a 100644 --- a/docs/reference/show.messages.html +++ b/docs/reference/show.messages.html @@ -17,7 +17,7 @@ bitGPT - 0.3.2.9000 + 0.3.7.9000 @@ -54,7 +54,7 @@

Show chat messages object

# S3 method for messages
-show(messages, type = c("console", "viewer"), ...)
+show(messages, type = c("console", "viewer"), is_browse = TRUE, ...)
@@ -68,6 +68,11 @@

Arguments

기본값인 "console"는 R 콘솔에 프린트 아웃되며, "viewer"는 HTML 포맷으로 브라우저에 출력됨. 만약 결과에 R 코드가 chunk로 포함되어 있다면, 코드가 실행된 결과도 HTML 문서에 포함됨.

+ +
is_browse
+

logical. type 인수가 TRUE일 경우에, is_browse가 TRUE이면 +브라우저에 결과가 브라우징되고, FALSE이면 브라우징되지 않음.

+