﻿# 2026.5.15-鏃ユ姤-寮犲鎸痋n
## 宸ヤ綔鍐呭姒傝堪

1銆佸涔犲苟瀹炶返鍒朵綔鐭ヨ瘑搴揬n
---

<callout emoji="馃槃">
鏄ㄦ棩鏃佸惉浜嗗崈灞遍」鐩粍鍚屼簨鍏充簬鐭ヨ瘑搴撶殑鍒嗕韩锛屾敹鑾烽涓般€傝鍒掑€熷姪 Cursor 宸ュ叿鍔ㄦ墜寮€鍙戜竴娆剧煡璇嗗簱搴旂敤锛屽湪瀹炶返涓悊瑙ｇ煡璇嗗簱鐨勬瀯寤轰笌搴旂敤娴佺▼銆俓n</callout>

## 涓€銆丷AG 绯荤粺绠€杩癨n
RAG 鍦ㄧ煡璇嗗簱涓殑浣滅敤鏄細灏嗗ぇ璇█妯″瀷涓庡閮ㄧ煡璇嗘绱㈢浉缁撳悎锛屼娇鐭ヨ瘑搴撲粠琚姩瀛樺偍鍗囩骇涓鸿兘澶熶富鍔ㄧ悊瑙ｉ棶棰樸€佸疄鏃跺彫鍥炵浉鍏充俊鎭苟鐢熸垚鏈夋嵁鍙緷鐨勭簿鍑嗙瓟妗堢殑鏅鸿兘绯荤粺銆俓n
**RAG锛圧etrieval-Augmented Generation锛屾绱㈠寮虹敓鎴愶級**鏄竴绉嶈澶фā鍨嬪湪鍥炵瓟闂鍓嶅厛浠庡閮ㄧ煡璇嗗簱妫€绱㈢浉鍏充俊鎭殑鏋舵瀯銆傚叾鏍稿績娴佺▼涓猴細鐢ㄦ埛鎻愰棶 鈫?浠庣煡璇嗗簱妫€绱㈢浉鍏冲唴瀹?鈫?灏嗛棶棰樺拰妫€绱㈢粨鏋滄嫾鎺ユ垚 Prompt 鈫?澶фā鍨嬬敓鎴愮瓟妗堛€俓n
RAG 鐨勬牳蹇冧环鍊煎湪浜庤В鍐冲ぇ妯″瀷鐨勪袱涓眬闄愶細鐭ヨ瘑鎴鏃ユ湡闂鍜屽够瑙夐棶棰樸€傞€氳繃澶栨寕鐭ヨ瘑搴擄紝妯″瀷鏃犻渶閲嶆柊璁粌灏辫兘璁块棶鏈€鏂版垨绉佹湁鐨勭煡璇嗭紝涓斿洖绛旀湁鎹彲鏌ャ€俓n
## 浜屻€丷AG 绯荤粺缁勬垚

1. **鏁版嵁鎽勫彇灞?*锛氭敮鎸佸绉嶆牸寮忔枃妗ｇ殑瑙ｆ瀽鍜屽姞杞斤紙PDF銆丮arkdown銆佺綉椤电瓑锛夈€俓n2. **鏂囨湰鍒囩墖**锛氬皢闀挎枃妗ｆ寜璇箟鎴栭暱搴﹀垏鎴愬皬鍧楋紝淇濊瘉姣忓潡淇℃伅瀹屾暣涓斾究浜庢绱€俓n3. **Embedding 妯″瀷**锛氬皢鏂囨湰鍧楄浆鎹负鍚戦噺锛屽疄鐜拌涔夌骇鐞嗚В銆俓n4. **鍚戦噺鐭ヨ瘑搴?*锛氬瓨鍌ㄥ拰妫€绱?Embedding 鍚戦噺锛屾敮鎸佽涔夋悳绱€俓n5. **鍏ㄦ枃妫€绱㈠紩鎿?*锛氬熀浜庡叧閿瘝鍖归厤鐨勬悳绱㈣兘鍔涳紝琛ヨ冻鍚戦噺妫€绱㈢殑鐭澘銆俓n6. **澶ц瑷€妯″瀷**锛氬熀浜庢绱㈢粨鏋滅敓鎴愭渶缁堝洖绛斻€俓n7. **缂栨帓灞?*锛氫覆鑱旀绱㈠拰鐢熸垚娴佺▼锛屽鐞嗕氦浜掗€昏緫銆俓n
### (涓€) Embedding 妯″瀷

**鑳藉皢鏂囨湰銆佸浘鐗囩瓑闈炵粨鏋勫寲鏁版嵁杞崲鎴愬浐瀹氶暱搴︽暟瀛楀悜閲忥紙涓€涓叉暟瀛楋級鐨勭缁忕綉缁滄ā鍨?*銆傝繖涓悜閲忓彲浠ョ湅浣滄暟鎹殑鈥滆涔夊潗鏍団€濓紝鎰忔€濈浉杩戠殑鏂囨湰锛屽叾鍚戦噺鍦ㄦ暟瀛︾┖闂翠腑鐨勮窛绂讳篃鎺ヨ繎銆俓n
**鑳藉共浠€涔?*

1. **璇箟鎼滅储**锛氫笉渚濊禆鍏抽敭璇嶅瓧闈㈠尮閰嶏紝鐢ㄦ埛杈撳叆鈥滄垜鎯冲悆姘存灉鈥濊兘鎵惧埌鈥滄垜鍚冭嫻鏋溾€濈殑绗旇銆俓n2. **鏂囨湰鑱氱被涓庡垎绫?*锛氳嚜鍔ㄥ皢鐩镐技鍐呭鐨勭瑪璁板綊鍒颁竴璧枫€俓n3. **浣滀负澶фā鍨嬬殑杈撳叆鍩虹**锛氭墍鏈夊ぇ璇█妯″瀷鍐呴儴閮藉湪浣跨敤 Embedding 鏉ョ悊瑙ｆ枃瀛楋紝RAG 涓绱㈠嚭鐨勬枃鏈潡鏈€缁堜篃浠ユ褰㈠紡鍙備笌鍚庣画鐢熸垚銆俓n
**鐭ヨ瘑搴撲腑鐨勪綔鐢?*

Embedding 妯″瀷璐熻矗灏嗙瑪璁板唴瀹瑰拰鐢ㄦ埛闂杞寲涓哄悜閲忥紝瀛樺叆 Chroma 鍚戦噺鏁版嵁搴撱€傜敤鎴锋彁闂椂锛岀郴缁熺敤鍚屼竴妯″瀷灏嗛棶棰樺悜閲忓寲锛屽啀鐢?Chroma 閫氳繃鍚戦噺璺濈妫€绱㈠嚭鏈€鐩稿叧鐨勭瑪璁扮墖娈碉紝鏈€缁堜氦缁欏ぇ妯″瀷鐢熸垚绛旀銆傚畠鏄暣涓涔夋绱㈢幆鑺傜殑鏍稿績寮曟搸銆俓n
### (浜? 鍚戦噺鐭ヨ瘑搴擄紙璇箟鎼滅储锛塡n
**鑳藉皢鏂囨湰銆佸浘鐗囩瓑鏁版嵁杞崲鎴愮殑鍚戦噺瀛樺偍璧锋潵锛屽苟鎻愪緵楂樻晥鐩镐技鍚戦噺妫€绱㈣兘鍔涚殑鏁版嵁搴撶郴缁?*銆備笌浼犵粺鐨勭簿鍑嗗尮閰嶆煡璇笉鍚岋紝瀹冮€氳繃璁＄畻鍚戦噺涔嬮棿鐨勮窛绂绘潵瀵绘壘璇箟涓婃渶鐩歌繎鐨勫唴瀹广€俓n
**鑳藉共浠€涔?*

1. **璇箟鎼滅储**锛氭牴鎹棶棰樺惈涔夋壘鍒扮浉鍏虫枃妗ｏ紝鍗充娇瀛楅潰瀹屽叏涓嶅悓鐨勨€滄按鏋溾€濆拰鈥滆嫻鏋溾€濅篃鑳界浉浜掑懡涓€俓n2. **鎺ㄨ崘涓庡幓閲?*锛氬熀浜庡悜閲忚窛绂诲垽鏂唴瀹圭浉浼煎害锛屽彲鐢ㄤ簬鐩稿叧鎺ㄨ崘鎴栭噸澶嶅唴瀹硅瘑鍒€俓n3. **澶氭ā鎬佹绱?*锛氭敮鎸佷互鍥炬悳鍥俱€佷互鏂囨悳鍥剧瓑锛屽洜涓轰笉鍚屾ā鎬佺殑鏁版嵁鍙互鏄犲皠鍒板悓涓€鍚戦噺绌洪棿銆俓n4. **鏀拺澶фā鍨嬭蹇?*锛氫负 RAG 绯荤粺鎻愪緵澶栭儴鐭ヨ瘑瀛樺偍锛屼娇澶фā鍨嬭兘鈥滃洖蹇嗏€濊捣鏈缁冭繃鐨勭鏈夋垨鏈€鏂版暟鎹€俓n
**鐭ヨ瘑搴撲腑鐨勪綔鐢?*

Embedding 妯″瀷灏嗙瑪璁拌浆鎹负鍚戦噺鍚庡瓨鍏ュ悜閲忓簱銆傜敤鎴锋彁闂椂锛岄棶棰樺悓鏍疯浆涓哄悜閲忥紝鐢卞悜閲忓簱蹇€熸壘鍑轰笌涔嬭窛绂绘渶杩戠殑绗旇鐗囨锛屽疄鐜板熀浜庤涔夌殑鐩稿叧鍐呭鍙洖銆俓n
### (涓? 鍏ㄦ枃妫€绱n
**涓€绉嶅熀浜庡叧閿瘝鍜岃瘝姹囧尮閰嶇殑鎼滅储鎶€鏈紝閫氳繃鍊掓帓绱㈠紩蹇€熷畾浣嶅寘鍚寚瀹氳瘝璇殑鏂囨。**銆傚畠鍏虫敞鐨勬槸鏂囨湰涓槸鍚﹀嚭鐜般€佸嚭鐜颁簡澶氬皯娆℃煡璇㈣瘝锛屼互鍙婅瘝鐨勭簿纭尮閰嶅叧绯汇€俓n
**鑳藉共浠€涔?*

1. **绮剧‘鍛戒腑**锛氭悳绱㈢壒瀹氭湳璇紙濡?IP 鍦板潃銆佸嚱鏁板悕銆侀敊璇爜锛夋椂鑳藉噯纭壘鍒版墍鏈夊寘鍚璇嶇殑鏂囨。銆俓n2. **缁撴瀯鍖栨煡璇?*锛氭敮鎸佸竷灏旀搷浣溿€佺煭璇尮閰嶃€佸墠缂€鎼滅储銆佹嫾鍐欏閿欑瓑绮剧‘鎺у埗銆俓n3. **鍙В閲婃帓搴?*锛氬熀浜庤瘝棰戙€佷綅缃瓑纭寚鏍囨帓搴忥紝缁撴灉纭畾鎬у己锛岀敤鎴疯兘棰勫垽鍝簺鏂囨。浼氭帓鍦ㄥ墠鍒椼€俓n4. **杞婚噺鏄撶淮鎶?*锛氬儚 MeiliSearch銆丼QLite FTS5 绛夊叏鏂囧紩鎿庨儴缃茬畝鍗曪紝璧勬簮鍗犵敤浣庯紝閫傚悎蹇€熼泦鎴愩€俓n
**鍦ㄧ煡璇嗗簱椤圭洰涓殑浣滅敤**

灏嗙瑪璁板唴瀹瑰悓姝ヨ嚦鍏ㄦ枃绱㈠紩銆傚綋鐢ㄦ埛鎻愰棶鏃讹紝鍚屾椂鎵ц鍏抽敭璇嶆悳绱紝涓庡悜閲忔悳绱㈢粨鏋滃悎骞跺幓閲嶏紝寮ヨˉ璇箟鎼滅储鍦ㄧ簿纭湳璇笂鐨勪笉瓒筹紝褰㈡垚鈥滆涔夌悊瑙?+ 绮剧‘鍛戒腑鈥濈殑娣峰悎妫€绱㈣兘鍔涖€俓n
### (鍥? 璇箟鎼滅储涓庡叏鏂囨绱㈠悎骞朵笂涓嬫枃

鍘婚噸銆佷紭閫夈€佹暣鐞嗗嚭涓€浠介珮璐ㄩ噺涓斾笉鍐椾綑鐨勫弬鑰冧笂涓嬫枃锛屼緵澶фā鍨嬬敓鎴愮簿鍑嗙瓟妗堛€俓n
浜屻€佸悎骞朵笂涓嬫枃鐨勫叧閿楠n
1. **鍘婚噸**  
涓ょ妫€绱㈠彲鑳藉懡涓悓涓€鏉＄瑪璁帮紝棣栧厛鎸夌瑪璁板敮涓€鏍囪瘑锛圛D锛夎繘琛屽幓閲嶏紝**鐣欎俊鎭洿瀹屾暣鐨勯偅涓€浠?*锛岄伩鍏嶅悓涓€鍐呭閲嶅鍑虹幇鍗犵敤瀹濊吹鐨勪笂涓嬫枃绐楀彛銆俓n2. **铻嶅悎鎺掑簭**  
灏嗚涔夋绱㈠拰鍏抽敭璇嶆绱㈢殑缁撴灉锛屾寜瀹冧滑鍚勮嚜鐨勯噸瑕佺▼搴﹂噸鏂扮患鍚堟帓搴忥紝褰㈡垚涓€涓叏灞€浼樺厛绾э紝纭繚鏈€鐩稿叧鐨勫唴瀹规帓鍦ㄥ墠闈€俓n3. **鎴柇涓庣粍鍚?*  
鏍规嵁澶фā鍨嬬殑涓婁笅鏂囬暱搴﹂檺鍒讹紝瀵规帓搴忓悗鐨勭墖娈佃繘琛岄€傚綋鎴柇锛屾寜鈥滄爣棰?+ 鍐呭鎽樿鈥濇牸寮忔嫾鎺ユ垚缁撴瀯鍖栫殑鍙傝€冩枃妗ｅ潡銆俓n
| 鍦烘櫙 | 璇箟妫€绱㈣兘鍔?| 鍏ㄦ枃妫€绱㈣兘鍔?| 鏈€浣虫柟妗?|
|-|-|-|-|
| 鍚屼箟璇?妯＄硦鎰忓浘锛堟按鏋溾啋鑻规灉锛?| 寮?| 寮?| 璇箟 |
| 绮剧‘鎶€鏈湳璇€佷唬鐮併€両P | 寮?| 寮?| 鍏ㄦ枃 |
| 闀挎枃妗ｄ腑鐨勭粏鑺?| 涓?| 寮?| 鍏ㄦ枃 + 璇箟 |
| 鎺掑簭鐨勭‘瀹氭€э紙瑕佹壘鍖呭惈鏌愪釜璇嶇殑锛?| 涓嶇ǔ瀹?| 绋冲畾 | 鍏ㄦ枃 |

<whiteboard token="RHpywCknvhPRLTbtdwZcCh4hnmc"></whiteboard>



![](https://internal-api-drive-stream.feishu.cn/space/api/box/stream/download/authcode/?code=OGJmMTI5MTFmZDYwODJjZGUyNjZhNmVlY2U3ZDYwYzdfYjE4M2IzOTg2NGY2YzY1ODBiYTcwNDVjN2MxNDc0ZGVfSUQ6NzY0MDA4MTU1NDEzOTcxMjcyNF8xNzc5MTc2MTI1OjE3NzkxNzk3MjVfVjM)

![](https://internal-api-drive-stream.feishu.cn/space/api/box/stream/download/authcode/?code=YTRhMmNiYmE4YmZlYzE5MGE3ZWM3MTEzMTAyYzE4YjBfMDc5YWU5YTQ1NWRjM2ZmNDBjNzhkMGNlYjhkY2FjNGNfSUQ6NzY0MDA3OTEwNTE2OTc4ODEyMl8xNzc5MTc2MTI1OjE3NzkxNzk3MjVfVjM)

![](https://internal-api-drive-stream.feishu.cn/space/api/box/stream/download/authcode/?code=ODk4ZmE3ZmFjNzEyZjIwN2Y2OGI4OTNkODY0NTY4MTNfZjRiZDVlOTExMzY2ZmZiNjQ2NDRhNzJiYTdkNWIxYjNfSUQ6NzY0MDA4MjIzOTE1NTExMjkxNl8xNzc5MTc2MTI1OjE3NzkxNzk3MjVfVjM)

![](https://internal-api-drive-stream.feishu.cn/space/api/box/stream/download/authcode/?code=N2Y5YTNkZDU5MTdmMzRjOTFjMzA0OGExZTdiOWVhNGNfN2ZiNDkxZTg4OTM3ZjEwZmYyNDIyNjkwZDNjYzQxOGFfSUQ6NzY0MDA3OTIwNjI5NjI3NjE4OF8xNzc5MTc2MTI1OjE3NzkxNzk3MjVfVjM)

![](https://internal-api-drive-stream.feishu.cn/space/api/box/stream/download/authcode/?code=NWNhYzkxZWYzOGEzMDBiNTUxNzcwMzA3MmRkNDgyYTZfZTE2NzUxMmZmOGQyMjViYTJkNTRhYmY0NDc2YjVjYjFfSUQ6NzY0MDA4MTY4OTM0MzExODUzMV8xNzc5MTc2MTI1OjE3NzkxNzk3MjVfVjM)

<callout emoji="馃">
鎴戣寰楋紝鏈潵鎶€鏈煡璇嗕綋绯婚噷锛屽箍搴﹀彲鑳芥瘮娣卞害閲嶈寰楀銆傝兘鏇村揩鍦颁簡瑙ｆ渶鏂扮殑 AI 鍙婄浉鍏崇煡璇嗭紝蹇€熶綋浼氥€佸揩閫熷疄楠岋紝鏇村揩鍦版妸瀹冪撼鍏ヨ嚜宸辩殑鎶€鑳戒綋绯汇€傝櫧鐒惰繕鏈夊緢澶氶鍩熸繁搴︿緷鐒朵笉鍙浛浠ｏ紝浣嗗湪澶ч噺鈥滀腑闂村湴甯︹€濈殑寮€鍙戝伐浣滀笂锛岃交閲忋€佸揩閫熴€佸箍瑕嗙洊姝ｅ湪鎴愪负鏂扮殑鏍稿績绔炰簤鍔涖€俓n</callout>
