From 9de54baaf6a624027d473c84cd929f1db7f5ee12 Mon Sep 17 00:00:00 2001 From: Jaewook Lee <11328376+jaewooklee93@users.noreply.github.com> Date: Thu, 11 Jul 2024 10:10:26 +0900 Subject: [PATCH] add prompt example --- llama-cpp-logits/README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/llama-cpp-logits/README.md b/llama-cpp-logits/README.md index 6cd5665..ecd2369 100644 --- a/llama-cpp-logits/README.md +++ b/llama-cpp-logits/README.md @@ -73,6 +73,19 @@ pip install requests polars import requests import polars as pl pl.Config.set_tbl_rows(40) + +prompt = """A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions. +Human: 한국의 수도는 어디인가요? 아래 선택지 중 골라주세요. + +(A) 경성 +(B) 부산 +(C) 평양 +(D) 서울 +(E) 전주 +Assistant: + +정답은 (""" + response = requests.post( 'http://localhost:8080/completion', json={"prompt": prompt,