How Leading AI Apps Implement Inline Citations: What Reverse-Engineering ChatGPT and Claude…
📰 Medium · LLM
Learn how leading AI apps implement inline citations by reverse-engineering ChatGPT and Claude, and apply this knowledge to improve your own AI models
Action Steps
- Reverse-engineer ChatGPT and Claude to understand their inline citation implementation
- Use the prompt from Part 1 to generate clean markers like 【1】 or 【2】
- Apply the knowledge gained to improve your own AI models
- Experiment with different citation styles and formats
- Evaluate the performance of your AI model with inline citations
Who Needs to Know This
AI engineers and researchers can benefit from understanding how inline citations are implemented in leading AI apps, and apply this knowledge to improve their own models
Key Insight
💡 Reverse-engineering leading AI apps can reveal valuable insights into their implementation of inline citations, which can be applied to improve your own AI models
Share This
🤖 Learn how leading AI apps implement inline citations and improve your own AI models! 📚
Key Takeaways
Learn how leading AI apps implement inline citations by reverse-engineering ChatGPT and Claude, and apply this knowledge to improve your own AI models
Full Article
Title: How Leading AI Apps Implement Inline Citations: What Reverse-Engineering ChatGPT and Claude…
URL Source: https://medium.com/@lukas.flaig/how-leading-ai-apps-implement-inline-citations-what-reverse-engineering-chatgpt-and-claude-da8ee5d2a11c?source=rss------llm-5
Published Time: 2026-04-18T16:58:54Z
Markdown Content:
# How Leading AI Apps Implement Inline Citations: What Reverse-Engineering ChatGPT and Claude Revealed (Part 2) | by Lukas Flaig | Apr, 2026 | Medium
[Sitemap](https://medium.com/sitemap/sitemap.xml)
[Open in app](https://play.google.com/store/apps/details?id=com.medium.reader&referrer=utm_source%3DmobileNavBar&source=post_page---top_nav_layout_nav-----------------------------------------)
Sign up
[Sign in](https://medium.com/m/signin?operation=login&redirect=https%3A%2F%2Fmedium.com%2F%40lukas.flaig%2Fhow-leading-ai-apps-implement-inline-citations-what-reverse-engineering-chatgpt-and-claude-da8ee5d2a11c&source=post_page---top_nav_layout_nav-----------------------global_nav------------------)
[](https://medium.com/?source=post_page---top_nav_layout_nav-----------------------------------------)
Get app
[Write](https://medium.com/m/signin?operation=register&redirect=https%3A%2F%2Fmedium.com%2Fnew-story&source=---top_nav_layout_nav-----------------------new_post_topnav------------------)
[Search](https://medium.com/search?source=post_page---top_nav_layout_nav-----------------------------------------)
Sign up
[Sign in](https://medium.com/m/signin?operation=login&redirect=https%3A%2F%2Fmedium.com%2F%40lukas.flaig%2Fhow-leading-ai-apps-implement-inline-citations-what-reverse-engineering-chatgpt-and-claude-da8ee5d2a11c&source=post_page---top_nav_layout_nav-----------------------global_nav------------------)

# How Leading AI Apps Implement Inline Citations: What Reverse-Engineering ChatGPT and Claude Revealed (Part 2)
[](https://medium.com/@lukas.flaig?source=post_page---byline--da8ee5d2a11c---------------------------------------)
[Lukas Flaig](https://medium.com/@lukas.flaig?source=post_page---byline--da8ee5d2a11c---------------------------------------)
Follow
10 min read
·
Just now
[](https://medium.com/m/signin?actionUrl=https%3A%2F%2Fmedium.com%2F_%2Fvote%2Fp%2Fda8ee5d2a11c&operation=register&redirect=https%3A%2F%2Fmedium.com%2F%40lukas.flaig%2Fhow-leading-ai-apps-implement-inline-citations-what-reverse-engineering-chatgpt-and-claude-da8ee5d2a11c&user=Lukas+Flaig&userId=41bd706ff2d0&source=---header_actions--da8ee5d2a11c---------------------clap_footer------------------)
[](https://medium.com/m/signin?actionUrl=https%3A%2F%2Fmedium.com%2F_%2Fbookmark%2Fp%2Fda8ee5d2a11c&operation=register&redirect=https%3A%2F%2Fmedium.com%2F%40lukas.flaig%2Fhow-leading-ai-apps-implement-inline-citations-what-reverse-engineering-chatgpt-and-claude-da8ee5d2a11c&source=---header_actions--da8ee5d2a11c---------------------bookmark_footer------------------)
[Listen](https://medium.com/m/signin?actionUrl=https%3A%2F%2Fmedium.com%2Fplans%3Fdimension%3Dpost_audio_button%26postId%3Dda8ee5d2a11c&operation=register&redirect=https%3A%2F%2Fmedium.com%2F%40lukas.flaig%2Fhow-leading-ai-apps-implement-inline-citations-what-reverse-engineering-chatgpt-and-claude-da8ee5d2a11c&source=---header_actions--da8ee5d2a11c---------------------post_audio_button------------------)
Share
Press enter or click to view image in full size

In [Part 1](https://medium.com/@lukas.flaig/why-inline-citations-are-harder-than-they-look-what-reverse-engineering-chatgpt-and-claude-revealed-5afa0609f15c), I dissected how ChatGPT, Claude, Gemini, and Perplexity generate inline citations, and ended with a prompt that gets models to produce clean markers like `【1】` or `【2】`. If you haven'
URL Source: https://medium.com/@lukas.flaig/how-leading-ai-apps-implement-inline-citations-what-reverse-engineering-chatgpt-and-claude-da8ee5d2a11c?source=rss------llm-5
Published Time: 2026-04-18T16:58:54Z
Markdown Content:
# How Leading AI Apps Implement Inline Citations: What Reverse-Engineering ChatGPT and Claude Revealed (Part 2) | by Lukas Flaig | Apr, 2026 | Medium
[Sitemap](https://medium.com/sitemap/sitemap.xml)
[Open in app](https://play.google.com/store/apps/details?id=com.medium.reader&referrer=utm_source%3DmobileNavBar&source=post_page---top_nav_layout_nav-----------------------------------------)
Sign up
[Sign in](https://medium.com/m/signin?operation=login&redirect=https%3A%2F%2Fmedium.com%2F%40lukas.flaig%2Fhow-leading-ai-apps-implement-inline-citations-what-reverse-engineering-chatgpt-and-claude-da8ee5d2a11c&source=post_page---top_nav_layout_nav-----------------------global_nav------------------)
[](https://medium.com/?source=post_page---top_nav_layout_nav-----------------------------------------)
Get app
[Write](https://medium.com/m/signin?operation=register&redirect=https%3A%2F%2Fmedium.com%2Fnew-story&source=---top_nav_layout_nav-----------------------new_post_topnav------------------)
[Search](https://medium.com/search?source=post_page---top_nav_layout_nav-----------------------------------------)
Sign up
[Sign in](https://medium.com/m/signin?operation=login&redirect=https%3A%2F%2Fmedium.com%2F%40lukas.flaig%2Fhow-leading-ai-apps-implement-inline-citations-what-reverse-engineering-chatgpt-and-claude-da8ee5d2a11c&source=post_page---top_nav_layout_nav-----------------------global_nav------------------)

# How Leading AI Apps Implement Inline Citations: What Reverse-Engineering ChatGPT and Claude Revealed (Part 2)
[](https://medium.com/@lukas.flaig?source=post_page---byline--da8ee5d2a11c---------------------------------------)
[Lukas Flaig](https://medium.com/@lukas.flaig?source=post_page---byline--da8ee5d2a11c---------------------------------------)
Follow
10 min read
·
Just now
[](https://medium.com/m/signin?actionUrl=https%3A%2F%2Fmedium.com%2F_%2Fvote%2Fp%2Fda8ee5d2a11c&operation=register&redirect=https%3A%2F%2Fmedium.com%2F%40lukas.flaig%2Fhow-leading-ai-apps-implement-inline-citations-what-reverse-engineering-chatgpt-and-claude-da8ee5d2a11c&user=Lukas+Flaig&userId=41bd706ff2d0&source=---header_actions--da8ee5d2a11c---------------------clap_footer------------------)
[](https://medium.com/m/signin?actionUrl=https%3A%2F%2Fmedium.com%2F_%2Fbookmark%2Fp%2Fda8ee5d2a11c&operation=register&redirect=https%3A%2F%2Fmedium.com%2F%40lukas.flaig%2Fhow-leading-ai-apps-implement-inline-citations-what-reverse-engineering-chatgpt-and-claude-da8ee5d2a11c&source=---header_actions--da8ee5d2a11c---------------------bookmark_footer------------------)
[Listen](https://medium.com/m/signin?actionUrl=https%3A%2F%2Fmedium.com%2Fplans%3Fdimension%3Dpost_audio_button%26postId%3Dda8ee5d2a11c&operation=register&redirect=https%3A%2F%2Fmedium.com%2F%40lukas.flaig%2Fhow-leading-ai-apps-implement-inline-citations-what-reverse-engineering-chatgpt-and-claude-da8ee5d2a11c&source=---header_actions--da8ee5d2a11c---------------------post_audio_button------------------)
Share
Press enter or click to view image in full size

In [Part 1](https://medium.com/@lukas.flaig/why-inline-citations-are-harder-than-they-look-what-reverse-engineering-chatgpt-and-claude-revealed-5afa0609f15c), I dissected how ChatGPT, Claude, Gemini, and Perplexity generate inline citations, and ended with a prompt that gets models to produce clean markers like `【1】` or `【2】`. If you haven'
DeepCamp AI