Home
Categories
EXPLORE
True Crime
Comedy
Society & Culture
Business
History
TV & Film
Technology
About Us
Contact Us
Copyright
© 2024 PodJoint
US
00:00 / 00:00
Sign in
Continue with Google
or
Sign me in
Don't have an account?
Sign up
Forgot password
给我整 growgen
宫不上
103 episodes
1 week ago
Subscribe
我是一个旅居泰国的中国程序员,我在这里分享每周的编程经验和生活经历,内容是宁滥勿缺,所以想听的听,不想听的别听。
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
给我整一个浏览器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 系统实现了一个
智能音乐播放器/演奏辅助工具
。
👋 本期就到这里,下周继续更新。
Back to Episodes
给我整 growgen
我是一个旅居泰国的中国程序员,我在这里分享每周的编程经验和生活经历,内容是宁滥勿缺,所以想听的听,不想听的别听。