Home
Categories
EXPLORE
True Crime
Comedy
Society & Culture
Business
History
TV & Film
Technology
About Us
Contact Us
Copyright
© 2024 PodJoint
00:00 / 00:00
Sign in

or

Don't have an account?
Sign up
Forgot password
https://is1-ssl.mzstatic.com/image/thumb/Podcasts221/v4/b9/96/9a/b9969a13-1c2e-7465-6ec8-df9d85dbfc1d/mza_14827924900968624561.jpg/600x600bb.jpg
给我整 growgen
宫不上
103 episodes
1 week ago
我是一个旅居泰国的中国程序员,我在这里分享每周的编程经验和生活经历,内容是宁滥勿缺,所以想听的听,不想听的别听。
Show more...
Hobbies
Leisure
RSS
All content for 给我整 growgen is the property of 宫不上 and is served directly from their servers with no modification, redirects, or rehosting. The podcast is not affiliated with or endorsed by Podjoint in any way.
我是一个旅居泰国的中国程序员,我在这里分享每周的编程经验和生活经历,内容是宁滥勿缺,所以想听的听,不想听的别听。
Show more...
Hobbies
Leisure
https://d3t3ozftmdmh3i.cloudfront.net/staging/podcast_uploaded_episode/40922820/40922820-1763730106236-ebeb8df5b2065.jpg
给我整一个浏览器RAG
给我整 growgen
8 minutes 55 seconds
1 month ago
给我整一个浏览器RAG

播客 Show Notes(简短版)

  • 时间:2025/11/21,第 48 周
  • 状态:感冒还没好 🤧
  • 主要进展:本周把博客做成了一个纯浏览器端的“RAG 智能网站导览系统”,无需服务器。

技术要点

  • 使用 Chrome Canary 新的 Prompt API(原 window.ai 已弃用)。
  • 浏览器端向量数据库:EntityDB(基于 IndexedDB)。
  • 使用 Python + LangChain 文本分割,将 800+ 篇文章按句拆分。
  • 选用 HuggingFace 的 all-MiniLM-L6 模型生成嵌入向量(384维)。
  • 向量数据先转为二进制再压缩,大幅缩小体积。
  • 浏览器端 RAG 调用不稳定,暂时需要→ AI 返回 JSON→ 手动调用函数查询向量。

实践成果

  • 实现了一个纯前端、可离线运行的知识检索 + AI 问答系统。
  • 使用 Streamdown 流式渲染 Markdown 输出。

额外尝试

  • 音乐编程语言 Strudel:比 Sonic Pi 更现代、更易网页展示。
  • 结合 RAG 系统实现了一个智能音乐播放器/演奏辅助工具。

👋 本期就到这里,下周继续更新。

给我整 growgen
我是一个旅居泰国的中国程序员,我在这里分享每周的编程经验和生活经历,内容是宁滥勿缺,所以想听的听,不想听的别听。