Merged
Conversation
Author
|
some results in my end below: config.yaml (snip)
language: "ja"
best_llm_model: "gpt-4o-mini"
(snip)from memobase import MemoBaseClient, ChatBlob
mb_client = MemoBaseClient(
project_url="http://localhost:8019",
api_key="secret",
)
uid = mb_client.add_user()
u = mb_client.get_user(uid)
sample_messages = [
{
"role": "user",
"content": "はじめまして。私は太郎といいます。普段はエンジニアをやっています。よろしくお願いします。",
},
{
"role": "assistant",
"content": "太郎さん、はじめまして。こちらこそよろしくお願いします。ご機嫌いかがですか?"
},
{
"role": "user",
"content": "明日は、競馬観戦に行く予定なんだよね。楽しみ〜。お天気はどうかな?"
},
{
"role": "assistant",
"content": "すごく楽しそうですね!明日の阪神競馬場の天気は晴れで、最高の観戦日和になると思いますよ!"
},
{
"role": "user",
"content": "それはうれしい。実は西宮市に住んでいて、阪神競馬場まで電車で10分くらいなんだ。"
},
{
"role": "assistant",
"content": "近いですね!混む時間を避けたいなら少し早めに入るのがおすすめです。初観戦ですか?それとも何度か行ったことがありますか?"
},
{
"role": "user",
"content": "観戦は2回目かな。勝ち負けより雰囲気を楽しみたい派。普段はフルリモートでソフトウェアエンジニアをしてるから、週末に外に出るのがいい気分転換。"
},
{
"role": "assistant",
"content": "リモートワークなんですね。気分転換にちょうど良さそうです。観戦のお供に、好きな飲み物やフードはありますか?"
},
{
"role": "user",
"content": "コーヒーが好きで、自家焙煎を始めたところ。浅めの中煎りが好み。そういえば来月、妻と3歳の娘と一緒に札幌の実家へ2日ほど帰省する予定もあるんだ。"
},
{
"role": "assistant",
"content": "ご家族で札幌へ帰省、楽しみですね!お土産に自家焙煎のコーヒー豆を持っていくのも喜ばれそう。旅行の計画や、焙煎のラベルづくりの相談も手伝えますよ。まずは明日の観戦、日差し対策と水分補給だけお忘れなく!"
}
]
u.insert(ChatBlob(messages=sample_messages))
u.flush()print(u.context()) |
Author
|
I'm not sure whether this is the right approach for adding a new language support better to use |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Notes:
docs/site/flat_docs.pyrewritesDOC.mdwith lots of unrelated updates, so just editeddocs/site/references/local_config.mdxfor now.Let me know if there’s anything further I should cover.