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

intermediate Published 18 Apr 2026
Action Steps
  1. Reverse-engineer ChatGPT and Claude to understand their inline citation implementation
  2. Use the prompt from Part 1 to generate clean markers like 【1】 or 【2】
  3. Apply the knowledge gained to improve your own AI models
  4. Experiment with different citation styles and formats
  5. 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------------------)

![Image 1](https://miro.medium.com/v2/resize:fill:32:32/1*dmbNkD5D-u45r44go_cf0g.png)

# How Leading AI Apps Implement Inline Citations: What Reverse-Engineering ChatGPT and Claude Revealed (Part 2)

[![Image 2: Lukas Flaig](https://miro.medium.com/v2/resize:fill:32:32/1*Vk3dk7iBG9ROokVrkWtejg.png)](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

![Image 3](https://miro.medium.com/v2/resize:fit:700/1*9UMeX0f0qHF6LBT7hyz4sg.png)

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'
Read full article → ← Back to Reads

Related Videos

5 Levels of AI Agents - From Simple LLM Calls to Multi-Agent Systems
5 Levels of AI Agents - From Simple LLM Calls to Multi-Agent Systems
Dave Ebbelaar (LLM Eng)
Notebook LLM vs PoppyAI #ai #productivity #chatgpt
Notebook LLM vs PoppyAI #ai #productivity #chatgpt
Poppy AI
NEW GPT 5.6 Models and ChatGPT Work App
NEW GPT 5.6 Models and ChatGPT Work App
Tech Friend AJ
10-Phase Generative AI Roadmap 2026 | LLMs & AI Agents | #shorts
10-Phase Generative AI Roadmap 2026 | LLMs & AI Agents | #shorts
SCALER
5-Step Artificial Intelligence Roadmap 2026 | 12-Month AI Guide | #shorts
5-Step Artificial Intelligence Roadmap 2026 | 12-Month AI Guide | #shorts
SCALER
8-Phase NLP Roadmap 2026 | AI & Machine Learning | #shorts
8-Phase NLP Roadmap 2026 | AI & Machine Learning | #shorts
SCALER