2023-10-01から1ヶ月間の記事一覧

プロンプト

qiita.com

ChatPro

app.chatpro.jp

LangChainチュートリアル

py -m pip install langchain py -m pip install openai import os os.environ["OPENAI_API_KEY"] = "API KEY" from langchain.llms import OpenAI # LLMラッパーを初期化 llm = OpenAI(temperature=0.9) # 会社名を生成する質問を作成 text = "カラフルなソ…

ブレストプロンプト

techblog.ap-com.co.jp role:system 与えられたインプットに対し、以下の一連の処理をシーケンシャルに実行してください。 次の処理に進む際ですが、作業を止めフィードバックを要求してください。 # 処理 ## 処理1 以下の問題を分析し、どのような観点で議…

プロンプト

あなたは優秀なプログラマです。 GPT4 APIを使った新しいプログラムを考えたいと思います。 そこで、あなたにお願いがあります。お願いは以下の1~6のプロセスからなります。 まずGPT4 APIの強みを言語化して教えてください その強みを活かしやすい応用方法…

傾いた写真を正面からの写真に変えるツールPicFront

www.vector.co.jp

Claude 2

news.yahoo.co.jp claude.ai

構造化プロンプト

japan.cnet.com 私は日本のIT企業、LINEヤフーの社員です。LINEヤフーはLINEとヤフーが合併して生まれた新しい会社です。LINEとヤフーの強みの両方を活かした、新しい事業を考えたいと思います。 そこで、あなたにお願いがあります。お願いは以下の1~6のプ…

ChatGPT自動生成

import os import openai # APIキーの設定 openai.api_key = 'API KEY' # GPT-3モデルの指定 model_engine = "gpt-3.5-turbo" messages = [{"role": "system", "content": "You are a helpful assistant."}] def gpt(user_input): messages.append({"role": …

ChatGPTとPythonの組み合わせ

note.com from gpt3z import gpt a=gpt("AIについて本を書こうと思う。五章構成で英語の目次と各章の概要を書け") b=gpt(f"{a} この目次の第一章を日本語で書け") c=gpt(f"{a} この目次の第二章を日本語で書け") d=gpt(f"{a} この目次の第三章を日本語で書け…

いつの間にかGPT4 APIが解放されていた

import os import openai # APIキーの設定 openai.api_key = 'API KEY' # GPT-4モデルの指定 #model_engine = "gpt-3.5-turbo" model_engine = "gpt-4" messages = [{"role": "system", "content": "You are a helpful assistant."}] def gptChat(user_input…

動いたChatコード

import os import openai # APIキーの設定 openai.api_key = 'API KEY' # GPT-3モデルの指定 model_engine = "gpt-3.5-turbo" messages = [{"role": "system", "content": "You are a helpful assistant."}] def gptChat(user_input): messages.append({"rol…

しゃべるGPT

togetter.com

斜めになった写真を補正する

PerspectiveImageCorrection whitebreath.hatenablog.com

ChatGPT-4V

qiita.com

AIによる新しい字

business.nikkei.com

脳を3Dプリント

levtech.jp

DALL-E3が来た

DALL3

note.com A young girl is enjoying a new trendy lunch menu, a 'Tofu and Vegetable Stir-fry Bowl', at a popular cafe in Tokyo. The cafe is bustling with people, and the girl's face lights up with delight as she takes her first bite. The scen…

gpt4V

pythonで標準入出力

import sys count = 0 for line in sys.stdin: count = count + 1 print(count) import sys dic={} for line in sys.stdin: col = line.split(",") print(col[1]) if col[1] not in dic.keys(): dic[col[1]] = 1 else: dic[col[1]] += 1 print(dic) import s…