GPTwitter
LangChain Blog に掲載されたゲスト記事は、ユーザーの「いいね」履歴から学習して独自に投稿を生成するパーソナライズ型 AI ソーシャルメディア「GPTwitter」の実装とコンセプトを紹介している。
キーポイント
GPTwitter の核心機能
ユーザーの過去の「いいね」履歴を学習し、明示的な指示なしで、ユーザーが好むトピックや文体に合わせたツイートを自動的に生成するプラットフォーム。
バブル内での継続的利用
フォローしているアカウントが投稿を停止しても、AI が代替コンテンツを生み出すことで、ユーザーを常に「情報バブル」の中に留めることを目的としている。
LangChain による実装事例
LangChain のブログで取り上げられたゲスト投稿であり、LLM を活用した新規アプリケーションの構築事例として紹介されている。
重要な引用
GPTwitter is a social media platform that learns from your like history and generates personalized tweets just for you, so that you never have to leave the safety of your social media bubble.
If Elon Musk isn't posting, GPT-3 is probably good enough!
We intend to highlight novel applications building on top of LangChain.
影響分析・編集コメントを表示
影響分析
この記事は、LLM が単なるツールから、ユーザーの嗜好を学習し代替コンテンツを生み出す自律的なエージェントへと進化しつつあることを示唆しています。特に「情報バブル」の強化という倫理的・社会的側面を含意しており、AI ソーシャルメディアの実用化における技術的ポテンシャルと潜在的なリスクの両方を浮き彫りにしています。
編集コメント
LLM を活用した「情報バブル」の完全自動化という、皮肉かつ先鋭的なアイデアが実装された事例です。技術的には LangChain の応用可能性を示す良い例ですが、社会的影響を考慮すると注意深い議論が必要です。

[編集者注]: これは、おそらく多くのゲスト投稿の最初のものです。私たちは LangChain を基盤とした革新的なアプリケーションを特集する予定です。このような投稿で一緒に作業することに興味がある場合は、harrison@langchain.dev までご連絡ください。
この投稿は Akash Samant によるもので、彼らが「ユーザーレベルのパーソナライゼーションを、革新的で再現可能かつまだ十分に探求されていない方法で達成している」と信じるアプリケーションを紹介しています。
GPTwitter: 最初のパーソナライズされた AI 生成ソーシャルメディアプラットフォーム。こちらからアクセスしてください:https://gptwitter-neon.vercel.app/
最近では、誰もが自分のメディアフィードを個人的なバブルのように感じています。おそらくあなたのフィードには、あなたが楽しもうとするあらゆるトピック、ポップカルチャーの参照、あるいはオンライン上の有名人がすべて含まれているでしょう。そしてあなたはそれを確かに楽しんでいるはずです(おそらく)。しかし、このコンテンツは限られています。それは有限であり、あなたや私がフォローしている人々が突然投稿を止めてしまったらどうなるでしょうか?私は*希望*して、その時はスマートフォンを下ろし、影響を受けないように立ち直るだろうと思います。しかし、それが本当にできるかどうかは確信が持てず、また、多くの皆さんも同じことができるようには思えません。
過去一週間、Sean、Bagatur、そして私はこの「世界終末」シナリオについて考え、大規模言語モデル(LLM)を使ってどうすればこれを修正できるか模索してきました。つまり、Elon Musk が投稿していないなら、GPT-3 で十分なのです!私たちは特に、ユーザーとのインタラクションから学習し、明示的な個人的な指示なしに、自分自身のフィードで見られるようなツイートを生み出す体験を作りたいと考えていました。そこで、半ディストピア的な思索の産物である「GPTwitter」をご紹介できることを嬉しく思います。
GPTwitter とは何か?
GPTwitter は、あなたのいいね履歴から学習し、あなた専用のパーソナライズされたツイートを生成するソーシャルメディアプラットフォームです。これにより、あなたはソーシャルメディアのバブルという安全圏を離れる必要がなくなります。
ログインすると、ツイートを作成したり、いいねをしたり、共有したりできます。私たちのツイートにいいねをすると、今後のツイートはあなたの興味により特化して調整されます。しかし注意してください – 同じようなツイートやトピックの穴(ラビットホール)にはまり込んでしまうかもしれません。
きっと楽しめるものなので心配はいりませんが、もし脱出したいなら、*リセットボタンを押すだけ*です。ただし、そうしてしまったことに少し悲しくなるかもしれませんが。
真面目に、私たちが学んだこと
クリエイティブ目的での大規模言語モデル(LLM)の利用は、機能的・実用的な目的とは非常に異なり、即興性、多様性、一貫性を求められますが、これら三つの要素はモデルの出力においてきれいに調和しません。Langchain AI を用いた GPTwitter での実験は、それぞれこれらの要素に焦点を当てたものであり、その結果を皆様と共有したく存じます。
#1: すべて潜在空間にある
当初、私たちは個々のトピックやスタイルから断片的にツイートを生成する手法を見送ることにしました。これらは往々にして意味不明な結果を生み、生成されたツイート間の相関もほとんど見られませんでした。そこで、私たちは潜在空間(latent space)から直接サンプリングすることに決めました。GPTwitter の構築に用いたプロンプトは、以前に生成されたツイートのテキストのみを用いて新しいツイートを作成するものです。結果がどうなるかは不明でしたが、この決定は最終的には読者次第です。しかし、私たちが驚かされたのは、GPT-3 が、そのツイート独自性を構成するすべての要素(長さ、参照スタイル、トピック、ハッシュタグの使用法、トーンなど)を、一貫して推論している点です。
具体的には、LangChain の用語法を用いると、例示ツイートを確率的に選択する カスタム例セレクター を使用することでこれを達成しました。ユーザーの初期プロフィールには 100 件のツイートがシードされ、それぞれに関連付けられた重みが付与されています。生成される各ツイートに対して、その重みに比例する確率で一定数の限定的なツイート(2〜5 件)が選択されます。生成されたツイートが「いいね」されると、それは選択可能なツイートのリストに追加され、そのツイート生成に使用されたツイートの重みが増加します。このようにして、例セレクターは時間とともに、過去にユーザーが「いいね」したものをより代表的(何らかの形で)反映するツイートを選択するようになります。
余談ですが、すべてを潜在空間内で行うことに決める前に、例示ツイートのスタイルと内容を明示的に指定することで、より制御された方法でツイートを生成する実験を行いました。通常、モデルに供給するデータが何らかの形で制限されている場合に最も良い結果が得られました。つまり、使用した参照ツイートが類似している場合(例えばスタイルやトピック)、または限定的な数のツイート(2〜5 件)のみを使用した場合です。これらのシナリオでは、LLM はパターンをより容易に外挿・特定することができ、トピックやスタイルを面白いマッシュアップへと紡ぎ出しました。
最も良い結果のいくつかは、ポップカルチャーへの言及を混ぜることで得られました。例えば、『バック・トゥ・ザ・フューチャー』を参照した以下のツイートなどです:

制御がない状態では、非常に不安定で意味の通らない結果が得られることがわかりました。通常、互いに整合性の取れないトピックを無理やり組み合わせるような結果になります。
これらの課題は、私たちがより多くの実験を行うことに興奮している領域を示しています。具体的には、参照データのコパス(コーパス)をより大きく活用して、*より一貫性のある* 結果を生み出すことです。
#2: ハルシネーションも有用である可能性がある
LLM の一貫性を非難する一方で、ハルシネーションや LLM の不整合性は、出力の多様性と独自性の面白い源泉であることを発見しました。一般的に、ハルシネーションは事実情報として機能しないため、ほとんどのアプリケーションでは有用ではありません。そのため、これを制限することへの懸念を理解しています。
GPTwitter が事実を扱うサイトではないのは幸いでした。なぜなら、私たちはモデルの温度パラメータ(temperature)を最大値の 1.0 に設定したからです。これは出力のばらつきを改善するための標準的な手法であり、過去のツイートから新しい生成物を生み出すのにうまく機能しました。
税金や暗号資産に関するツイートに対して GPT-3 が応答を作成した素晴らしい例をご紹介します:

一般的に、ハルシネーション(幻覚)は過小評価されていると考えられています。これは大規模言語モデル(LLM)が創造的な出力能力を持っていることを示しており、創造的なワークフローにおいては非常に有用です。私たちが直面した問題の一つは、より価値のあるハルシネーションを生み出すこと、つまりより高い分散と高品質なツイートをより高い頻度で生成することでした。私たちの妥協案は選定プロセスを厳格化することでしたが、すべての選択肢を探求したわけでも、理想的な解決策に到達したわけではありません。将来的には、他の問題解決領域で使用されている「思考の連鎖(chains of thought)」を誘発し、創造的プロセスに合わせて調整することが興味深いアプローチとなる可能性があります。
結びの言葉
GPTwitter を構築する過程で楽しい時間を過ごし、皆様にも私たちが味わったほどの楽しさを感じていただければ幸いです。
LLM テクノロジーの開発に伴い進行中のあらゆる変化について考えるのはワクワクします。私たちは引き続き LLM の応用を実験し、個人の創造的プロセスを補強・改善していく予定です。Twitter では Bagatur、Sean、または Akash をフォローできます。
最後に、私たちが最もお気に入りの生成されたインスピレーションツイートを以下にご紹介します:

関連コンテンツ

ディープエージェント
エージェントアーキテクチャ
オープンソース
異なるモデルと連携して効果的に動作するようにディープエージェントを調整する


V. Trivedy,
M. Daugherty
2026 年 4 月 29 日
5 分
image.png)
エージェントアーキテクチャ
LangSmith
オープンソース
EU AI 法(EU Artificial Intelligence Act)の要件を満たすために LangSmith と LangChain OSS がどのように役立つか


J. Talbot,
B. Weng
2026 年 4 月 27 日
7 分
image.png)
エージェントアーキテクチャ
パートナー
エージェントエンジニアリング:AI エージェントの群れがソフトウェアエンジニアリングをどのように再定義しているか


R. クマール、
P. ラマゴパル
2026 年 4 月 17 日
6
分
エージェントが実際に何をしているかを確認する
エージェントエンジニアリングプラットフォームの LangSmith は、開発者がすべてのエージェントの意思決定をデバッグし、変更の評価を行い、ワンクリックでデプロイできるように支援します。
原文を表示

[Editor's Note]: This is the first of hopefully many guest posts. We intend to highlight novel applications building on top of LangChain. If you are interested in working with us on such a post, please reach out to harrison@langchain.dev.
This post by Akash Samant highlights an application that we believe achieves user-level personalization in a novel, reproducible, and under-explored way.
GPTwitter: The first personalized AI generated Social Media Platform. Access it here: https://gptwitter-neon.vercel.app/
Nowadays everyone’s media feed feels like a personal bubble– yours is probably comprised of every topic, pop culture reference, or online personality that you might think to enjoy. And you do enjoy it (probably). But all this content is limited. It’s finite, and if everyone that you or I followed suddenly stopped posting – what would you do? I would *hope* that I would put my phone back down and pick up unaffected, but I’m not sure I *could* do that, and I’m not convinced most of you would either.
Over the past week, Sean, Bagatur, and I have been thinking about this “end-of-the-world” scenario and how we could do something to fix it with Large Language Models (LLMs). I mean, if Elon Musk isn’t posting, GPT-3 is probably good enough! We’ve been especially interested in creating an experience that learns from your interactions and produces tweets like those you would see on your own feed – all without any explicit personal guidance. We’re happy to present GPTwitter – the product of our semi-dystopian ruminations.
What is GPTwitter?
GPTwitter is a social media platform that learns from your like history and generates personalized tweets just for you, so that you never have to leave the safety of your social media bubble.
Once you login, you can generate tweets, like them, and share them. After you like one of our tweets we’ll make sure to tailor our future ones a bit more specifically to your interests. But watch out – you might end up down a rabbit hole of identical tweets and topics.
It’s likely something you’ll enjoy, so don’t worry, but if you want to escape – *just hit the reset button*, although you might be sad that you did.
In All Seriousness, What Have We Learned?
Working with LLMs for creative purposes is very different from functional, practical purposes – it demands spontaneity, diversity, and consistency– three things which don’t fit together neatly in model output. Our experiments with GPTwitter, using Langchain AI, revolved around each of these, and we’d like to share them with you.
#1: It’s all in the latent space
Early on, we decided to scrap piecemeal methods of generating tweets from discrete topics and styles. They often lead to nonsensical results with little correlation between generated tweets. Instead, we decided to sample directly from the latent space. The prompts we built GPTwitter with only use text from previously generated tweets to create new ones. We were unsure what the result would be – the decision is still up to you, but we’ve been pleasantly surprised with how consistently all the pieces of a tweet that* *would make it unique – length, reference style, topics, hashtag usage, tone, etc. – are inferred by GPT-3.
Specifically, using LangChain terminology, we achieved this by using a custom example selector that selected example tweets probabilistically. A user's initial profile is seeded with 100 tweets, each with an associated weight. For each generated tweet, a certain limited number of tweets (2-5) are selected with probability proportional to their weight. If a generated tweet is liked, we add it to the list of possible tweets to be selected, and increase the weight of the tweets that were used to generate that tweet. In this way, the example selector over time selects tweets that are more representative (in some way) of what you've liked in the past.
As an aside, before deciding to do everything in the latent space, we experimented with generating the tweets in a more controlled manner by specifying the style and content of the example tweets explicitly. Typically, the best results occurred when the data we fed to the model was limited in some way – if the reference tweets we used were similar eg. style, topic, or if we only used a limited number of tweets (2-5). In these scenarios, the LLM was able to extrapolate and identify patterns more easily – spinning topics and styles into interesting mashups.
Some of the best results came from mixing pop culture reference, like this tweet that references Back to the Future:

In the absence of control, we found very erratic nonsensical results – typically mashing topics that wouldn’t make sense with one another.
These issues highlight areas that we’re excited to experiment more with. Specifically, leveraging larger corpuses of reference data to produce *more consistent* results.
#2: Hallucinations can be useful
Despite our disparagement of LLM consistency, we’ve found hallucinations and LLM inconsistency to be interesting sources of output and diversity. Broadly speaking, hallucinations are not useful in most applications because they are not useful as factual pieces of information, so we understand the concern around limiting them.
It’s a good thing GPTwitter isn’t a factual site because we turned the temperature up on our models all the way to 1.0. This is a standard technique for improving output variance and it worked well in producing novel generations from previous tweets.
Here’s a great example of GPT-3 crafting a response from tweets about taxes and crypto:

In general, we think that hallucinations are underused. They indicate that LLMs have creative output capabilities, and for creative workflows, they can be incredibly useful. One of the problems we faced was producing more valuable hallucinations – higher variance, higher quality tweets at a higher frequency. Our compromise was to tighten our selection process, but we haven’t explored all our options nor arrived at our ideal solution. We think inducing *chains of thought* used in other problem-solving areas, perhaps tailored for the creative process, could be an interesting avenue to look to in the future.
Final Thoughts
We had a fun time building GPTwitter, and we hope you enjoy it as much as we have.
It’s exciting to think of all the changes that are underway as LLM technologies develop – we’ll be continuing to experiment with applications of LLMs, to augment and improve the personal creative process. You can find Bagatur, Sean, or Akashon Twitter.
We’ll leave you with one of our favorite generated inspirational tweets below:

Related content

Deep Agents
Agent Architecture
Open Source
Tuning Deep Agents to Work Well with Different Models


V. Trivedy,
M. Daugherty
April 29, 2026
5
min
.png)
Agent Architecture
LangSmith
Open Source
How LangSmith and LangChain OSS Help You Meet EU AI Act Requirements


J. Talbot,
B. Weng
April 27, 2026
7
min
.png)
Agent Architecture
Partner
Agentic Engineering: How Swarms of AI Agents Are Redefining Software Engineering


R. Kumar,
P. Ramagopal
April 17, 2026
6
min
See what your agent is really doing
LangSmith, our agent engineering platform, helps developers debug every agent decision, eval changes, and deploy in one click.
関連記事
今日のまとめ
AI日報で今日の重要ニュースをまとめ読み