Closed3

LangSmithのテレメトリ関連機能を試した

君津君津

LangSmithでもプロンプトのバージョン管理ができる

プロンプトの登録

プロンプトを利用したコードをトレースする

client = Client()


@traceable  # Auto-trace this function
def pipeline(question: str, context: str):
    chain = client.pull_prompt("rag", include_model=True)
    result = chain.invoke({"question": question, "context": context})

    return result


print(pipeline(question="Are cats cute? Or are they scary?", context="Cats are cute."))

メタデータとしてプロンプトの情報が追加される

君津君津

自動評価もできる

ルールの追加

評価器の設定

評価結果がトレースに紐づく

このスクラップは11日前にクローズされました