edsl
1.0.0

予想されるParrotドメイン固有の言語(EDSL)パッケージを使用すると、AIで計算社会科学と市場調査を実施できます。それを使用して、調査と実験を設計し、大規模な言語モデルで応答をシミュレートし、データのラベル付けやその他の研究タスクを実行します。結果は指定されたデータセットとしてフォーマットされ、分析、視覚化、共有のための組み込みの方法が付属しています。
簡単な例:
# Import a question type
from edsl import QuestionMultipleChoice
# Construct a question using the question type template
q = QuestionMultipleChoice (
question_name = "example_question" ,
question_text = "How do you feel today?" ,
question_options = [ "Bad" , "OK" , "Good" ]
)
# Run it with the default language model
results = q . run ()
# Inspect the results in a dataset
results . select ( "example_question" ). print ()出力:
┏━━━━━━━━━━━━━━━━━━━┓
┃ answer ┃
┃ . example_question ┃
┡━━━━━━━━━━━━━━━━━━━┩
│ Good │
└───────────────────┘.envファイルに保存されている、使用する大規模な言語モデル用のAPIキー。 APIキーの保存に関する指示を参照してください。 貢献に興味がありますか?新しい機能を追加してほしいですか?私たちがつぶしてくれるバグを見つけましたか? [email protected]にメールを送信するか、Discordチャンネルでメッセージを送信してください。