mdn
收藏资源简介:
该数据集是一个预处理的LanceDB集合,包含来自MDN Web Docs的50,000多行数据,主要用于与配套的RAG-MCP服务器结合使用,支持语义搜索和混合向量(1024维)与全文(BM25)检索。数据集涵盖了MDN核心文档部分,包括Web API、JavaScript、HTML、CSS、SVG和HTTP。原始内容以自定义Markdown格式存储,经过处理转化为结构化纯文本,并分割为有意义的独立块。数据嵌入使用了BGE-M3模型(1024维,8192 tokens)。数据集作为MDN Web Docs的衍生作品,遵循复杂的许可协议:散文内容采用CC-BY-SA-2.5许可,2010年8月20日及之后添加的代码示例和片段为公共领域(CC0),之前的则采用MIT许可。所有代码示例在分块过程中未作修改,按原样提供。
This dataset is a preprocessed LanceDB collection containing over 50,000 rows of data sourced from MDN Web Docs. It is primarily intended for use with the accompanying RAG-MCP server, supporting semantic search and hybrid retrieval that combines 1024-dimensional vector search and full-text (BM25) retrieval. The dataset covers core sections of MDN documentation, including Web API, JavaScript, HTML, CSS, SVG, and HTTP. The original content was stored in a custom Markdown format, processed into structured plain text, and split into semantically meaningful independent chunks. Data embeddings were generated using the BGE-M3 model (1024 dimensions, 8192 tokens). As a derivative work of MDN Web Docs, this dataset is governed by complex licensing terms: prose content is licensed under CC-BY-SA-2.5, code examples and snippets added on or after August 20, 2010 are released into the public domain (CC0), while those added prior to this date are licensed under MIT. All code examples remained unmodified during the chunking process and are provided as-is.
数据集概述
基本信息
- 数据集名称: deepsweet/mdn
- 许可证: 其他 (基于原始MDN Web Docs内容的复杂许可证)
- 许可证链接: https://github.com/mdn/content/blob/main/LICENSE.md
- 语言: 英语 (en)
- 标签: rag, embeddings, lancedb
数据内容与来源
- 数据来源: MDN Web Docs (https://developer.mozilla.org/)
- 数据形态: 预构建的LanceDB数据库,包含超过50,000行数据。
- 覆盖内容: 核心MDN文档部分,包括:
- Web API
- JavaScript
- HTML
- CSS
- SVG
- HTTP
- 数据处理: 原始的自定义Markdown格式内容经过处理,转换为结构化的纯文本,并进行语义分块,形成有意义的独立文本块。分块过程没有严格的令牌限制或重叠。
技术细节
- 嵌入模型: BGE-M3 (1024维,8192令牌)
- 模型版本: 量化版本 Q4_K_M GGUF (https://huggingface.co/deepsweet/bge-m3-GGUF-Q4_K_M)
- 检索支持: 支持混合向量(1024维)和全文(BM25)检索的语义搜索。
- 使用建议: 为获得正确的相似度,在查询嵌入时强烈建议使用完全相同的模型。
主要用途
- 主要设计用于配套的RAG-MCP服务器 (https://github.com/deepsweet/mdn),以实现语义搜索。
- 其他符合许可证要求的用途也欢迎。
许可证说明
- 本数据集是基于原始MDN Web Docs内容的“衍生作品”。
- 原始内容许可证复杂,包含多种条款:
- “散文”内容采用CC-BY-SA-2.5许可证。
- 2010年8月20日或之后添加的代码示例和片段属于公共领域 (CC0)。
- 2010年8月20日之前添加的代码示例和片段采用MIT许可证。
- 代码示例在分块步骤中未作显式修改,按原样提供。
- 本数据集整体遵循相同条款提供,不主张新的版权。
更多信息
- 详细使用说明请参阅GitHub上的开发仓库:https://github.com/deepsweet/mdn




