惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Martin Fowler
Martin Fowler
Blog — PlanetScale
Blog — PlanetScale
Vercel News
Vercel News
L
LangChain Blog
Google DeepMind News
Google DeepMind News
H
Hackread – Cybersecurity News, Data Breaches, AI and More
F
Fortinet All Blogs
The GitHub Blog
The GitHub Blog
Recent Announcements
Recent Announcements
D
DataBreaches.Net
云风的 BLOG
云风的 BLOG
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
A
About on SuperTechFans
博客园_首页
N
Netflix TechBlog - Medium
Y
Y Combinator Blog
Hugging Face - Blog
Hugging Face - Blog
Last Week in AI
Last Week in AI
酷 壳 – CoolShell
酷 壳 – CoolShell
B
Blog
Apple Machine Learning Research
Apple Machine Learning Research
罗磊的独立博客
美团技术团队
V
V2EX

MDN Blog

Introducing the MDN MCP server | MDN Blog Under the hood of MDN's new frontend | MDN Blog Image formats: Codecs and compression tools | MDN Blog A beginner-friendly guide to view transitions in CSS | MDN Blog Launching MDN's new front end | MDN Blog Image formats: Pixel data from encoders to decoders | MDN Blog Celebrating 20 years of MDN | MDN Blog Image formats: Color models for humans and devices | MDN Blog Default styles for h1 elements are changing | MDN Blog Implications of Global Privacy Control | MDN Blog JavaScript Temporal is coming | MDN Blog Fix your website's Largest Contentful Paint by optimizing image loading | MDN Blog MDN 2024 content projects | MDN Blog A new learning experience on MDN | MDN Blog Countdown to the holidays with daily coding challenges | MDN Blog Monitoring and optimizing website performance | MDN Blog How to land your first developer job | MDN Blog Introducing the new MDN Community page | MDN Blog Fixing your website's JavaScript performance | MDN Blog Get back to school! Supercharge your learning with MDN and Scrimba | MDN Blog Efficient data handling with the Streams API | MDN Blog Locale-sensitive text segmentation in JavaScript with Intl.Segmenter | MDN Blog Optimize your workflow with Git stash | MDN Blog How to debug mobile apps across devices | MDN Blog Exclusive accordions using the HTML details element | MDN Blog Exploring the Broadcast Channel API for cross-tab communication | MDN Blog MDN partners with Scrimba to enhance web development learning | MDN Blog Introducing the MDN HTTP Observatory | MDN Blog Static Site Generation (SSG) with Next.js | MDN Blog New JavaScript Set methods | MDN Blog
Introducing AI Help (Beta): Your Companion for Web Develo...
Hermina Condei June 27, 2023 3 minutes read · 2023-06-27 · via MDN Blog

Hello, developers!

We're thrilled to announce the latest addition to MDN: AI Help (currently in Beta), developed in collaboration with our partners at Supabase. AI Help is only available to logged-in users, i.e. it requires you to create an MDN Plus account.

AI Help is not just a new tool—it's your new problem-solving companion. It is designed to optimize your search processes, making it quick and easy to find the information you need. Here's how it works: simply ask a question on MDN and AI Help gets to work.

The aim? To streamline your interaction with our website and get you back to coding faster, equipped with the insights you were looking for. We're excited for you to try AI Help and look forward to your feedback on this new feature!

Screenshot showing AI Help feature

Key features

Quick Access to Knowledge: AI Help connects you to the expansive MDN database, offering quick answers to your queries or coding best practices. The tool is currently limited to the MDN documentation only.

Screenshot showing quick access to knowledge example

Learning Support: More than a Q&A tool, AI Help offers examples to help you grasp more complex concepts. AI Help also displays links to the articles that were consulted for offering the answer.

Screenshot showing learning support example

Under the Hood

AI Help leverages two technologies that work well together:

Firstly, we generate embeddings for every section of our MDN articles. In the realm of data science, embeddings refer to the transformation of high-dimensional data into a lower-dimensional space. Each embedding, typically a vector, encapsulates certain characteristics or features of the original data. These embeddings capture both semantic and syntactic relationships among words or sentences, positioning them within a continuous vector space. This placement allows the model to comprehend contextual and relational nuances among the words. For instance, words or sentences bearing similar meanings or those frequently appearing together tend to have proximate vector representations. We store these embeddings in a PostgreSQL database, hosted by Supabase, with the pgvector extension installed. Once we receive a user's question, we generate another embedding for that query. This allows us to perform a similarity search (a distance search in the embedding space) to identify the most relevant sections within the MDN.

Adding Generative AI

Having identified a question and the related content, we can then streamline the process of finding an answer. Instead of making the user read all the content and extract an answer themselves, we utilize OpenAI's Chat API to craft a prompt. This prompt includes several system-level instructions about the desired tone and other related considerations, along with more technical guidelines, such as the requirement to always reply in markdown. We then use the previously related content as a context for the Chat API and ask the user's question on their behalf. This process enables a more efficient interaction, leveraging AI to help users access the information they need.

Try AI Help today!

We invite you to try it today and see the difference it can make. Just create a free MDN Plus account to get started. Please keep in mind that we are launching this feature in Beta: some answers can be incomplete or wrong, and we strongly encourage you to also check the MDN article links that we'll provide. As we refine this feature, we look forward to delivering faster, more accurate responses, and an even better user experience. Your feedback is critical to our progress, helping us tailor AI Help to better meet your needs.

Thank you for being a part of this exciting step forward. Together, let's revolutionize the web development journey. Create a free MDN Plus account today!

*Find out more about Supabase Clippy, that we have used as inspiration for our own integration.

Updated July 8th: Updated blog post to avoid setting wrong expectations. Added clarifications about the feature being beta and only available to logged-in users.