OperateGPT:涓€琛岄渶姹傚畬鎴愯繍钀?/h2>
绔嬪嵆浣撻獙
馃敟馃敟[GITHUB] OperateGPT Release Version:V0.0.1
涓撲笟鍚嶈瘝
Agent:鑷富鐞嗚В銆佽鍒掋€佹墽琛屽鏉備换鍔$殑绯荤粺
Multi-Agents:澶氫釜Agents鍏变韩璁板繂锛岃嚜涓诲畬鎴愪换鍔$殑绯荤粺
Embeddings:鏂囨湰宓屽叆锛屽皢鏂囨湰杞寲涓哄悜閲忓瓨鍌ㄥ埌鍚戦噺鏁版嵁搴擄紝瀹炵幇鏂囨鍐呭鐩镐技搴︽悳绱?/p>
Connections:鏁版嵁婧愯繛鎺ワ紝濡傝繛鎺ヤ笉鍚岀被鍨嬫暟鎹簱鐨勬柟寮忋€佽幏鍙杙df, ppt,excel鏂囨。淇℃伅鐨勬柟寮?/p>
OperateEngine:杩愯惀鍐呭鐢熸垚prompt銆佹眹鎬籹ummary銆佸鏍稿拰杩愯惀骞冲彴鍙戝竷绛夊伐绋嬪疄鐜?/p>
鏋舵瀯
OperateGPT宸ヤ綔鍘熺悊
鍒╃敤澶ц瑷€妯″瀷鍜屽鏅鸿兘浣撴妧鏈紝閫氳繃涓€鍙ヨ瘽闇€姹傝嚜鍔ㄧ敓鎴愯繍钀ユ枃妗堛€佸浘鐗囧拰瑙嗛锛屼竴閿€傞厤鍙戦€佸涓钩鍙板疄鐜板揩閫熻繍钀ャ€?/b>
鏁版嵁婧?/h3>
鏍规嵁鐢ㄦ埛闇€姹傝嚜鍔ㄨ瘑鍒暟鎹簮锛屽彲鑳芥潵婧愪簬涓嬮潰鍚勭鏁版嵁锛?/p>
1. 鍥犵壒缃戯細鍥犵壒缃戜笂鐨勬墍鏈夎兘璁块棶缃戦〉璧勬簮锛岄兘鍙互閫氳繃鐩稿叧鎬ф悳绱㈡煡璇紝浣滀负榛樿璇嗗埆鐨勬暟鎹簮
2. 鏁版嵁搴擄細鐢ㄦ埛鏁版嵁搴撴暟鎹綔涓虹鏈夋暟鎹紝缁撳悎鐢ㄦ埛杩愯惀闇€姹傚畬鎴愭櫤鑳紹I锛岀敓鎴愬垎鏋愬浘琛?/p>
3. 闊?瑙嗛锛氱粨鍚堣繍钀ラ渶姹傚満鏅浉鍏虫€э紝鍙嚜鍔ㄥ祵鍏ュ埌杩愯惀鎶ュ憡涓?/p>
4. 鍥剧墖锛氱粨鍚堣繍钀ラ渶姹傚満鏅浉鍏虫€э紝鍙嚜鍔ㄥ祵鍏ヨ繍钀ユ姤鍛?/p>
5. 鏈湴鏂囨。锛氭湰鍦版枃妗h祫鏂橢mbedding涔嬪悗瀛樺偍鑷冲悜閲忔暟鎹簱锛屾敮鎸佺煡璇嗗簱闂瓟,涔熷彲浠ヤ綔涓鸿繍钀ョ殑閲嶈姹囨€绘暟鎹潵婧?/p>
鏁版嵁姹囨€?/h3>
鏍规嵁杩愯惀闇€姹傦紝浠庡悇涓暟鎹簮涓煡璇㈢浉鍏虫暟鎹仛杩涗竴姝ュ垎鏋愬拰姹囨€汇€?/p>
1. URL鏁版嵁锛氬彲浠ヤ粠google锛岀櫨搴︼紝bing绛夌綉绔欏拰骞冲彴鏌ヨ鐩稿叧鎬ц緝寮虹殑top缃戦〉鏁版嵁锛岄€氳繃灏嗚繖浜涙暟鎹垏鍒嗘垚鍧椾箣鍚嶦mbedding锛岀敓鎴愬悜閲忔暟鎹紝鍐嶉€氳繃鐩镐技搴︽悳绱㈡煡璇㈠叧绯诲瀷鏈€寮虹殑涓€浜涘唴瀹逛綔涓烘枃妗堢敓鎴愮殑鍩虹鏁版嵁銆?/p>
2. 鏁版嵁搴擄細缁撳悎杩愯惀闇€姹備笌涓氬姟鍦烘櫙锛岀敓鎴怱QL浠嶳DB/NoSQL鏁版嵁搴撲腑鏌ヨ鐩稿叧鏁版嵁鐢熸垚鎶ヨ〃锛屾姤琛ㄦ暟鎹皢浣滀负杩愯惀鏁版嵁鐨勪竴閮ㄥ垎宓屽叆
3. 鏈湴鏂囨。锛氫粠鍚戦噺鏁版嵁搴撴悳绱?/p>
鍐呭鐢熸垚
1. 閫氳繃Prompt宸ョ▼浠庢眹鎬绘暟鎹彁鍙栦竴閮ㄥ垎浜嬬墿鍜屽満鏅互鍙婂叾鍏峰鐨勪竴浜涚壒鎬э紝鐢盨tableDiffusion鎴栬€匨idjourney鐢熸垚鍥剧墖锛屼粠Gen-2鎴栧紑婧愯棰戞ā鍨嬬瓑鐢熸垚瑙嗛鍐呭
2. 閫氳繃Prompt宸ョ▼灏嗙幇鏈夌殑杩愯惀姹囨€诲唴瀹广€佸垎鏋愭姤琛ㄣ€佸浘鐗囥€佽棰戞櫤鑳界粍鍚堬紝蹇€熺敓鎴愮鍚堣繍钀ラ渶姹傜殑鏂囩珷/瑙嗛/缃戦〉绛?/p>
3. 缁撳悎骞冲彴鐗规€у鐢熸垚鍐呭鍋氬亸鍚戣皟鏁达紝渚嬪B绔欍€佹姈闊崇瓑瑙嗛娴侀噺骞冲彴涓撴敞浜庤棰戠敓鎴愶紝灏嗚繍钀ュ唴瀹瑰祵鍏ュ埌瑙嗛涓紱鐭ヤ箮銆丆SDN绛夊钩鍙板缁撳悎鍥炬枃鍐呭鐢熸垚鏂囨
鍐呭瀹℃牳
杩愯惀鏁版嵁闇€瑕佸鏍告墠鑳藉彂甯冿紝鏈€绠€鍗曠殑瀹℃牳鏂规硶灏辨槸璁㎜LM瀛︿範鍐呭瀹℃牳鏉$害瀹炵幇鏅鸿兘瀹℃牳
1. 鍐呭璐ㄩ噺瀹℃牳
2. 鍐呭鍚堟硶鍚堣瀹℃牳
3. 鏁忔劅鏁版嵁瀹℃牳
骞冲彴鎺ㄩ€?/h3>
1. 涓€閿帹閫佸骞冲彴
2. 璐﹀彿绠$悊
瀹夎閮ㄧ讲
绾枃瀛楄繍钀ユ枃妗?/b>
```
git clone https://github.com/xuyuan23/operateGPT.git
pip install -r requirements.txt
# 宓屽叆妯″瀷涓嬭浇
mkdir models & cd models
git lfs install
git clone https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2
# 閰嶇疆, 澶嶅埗浠ヤ笅鍐呭骞朵慨鏀筄PEN_AI_KEY={your-openai-key}
cp .env.template .env
# 鍚姩
python main.py "鎴愰兘鏃呮父鎺ㄨ崘"
```
鍚獳I鐢熸垚鍥惧儚鐨勬枃妗堬紝闇€瑕佽ˉ鍏呬笅闈㈡湇鍔?/b>
```
# 16GB鍐呭瓨鎴栬€呮樉瀛橈紝鍙湰鍦拌繍琛?/p>
git lfs install
git clone https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0
python operategpt/providers/stablediffusion.py
## 鎴栬€呬簯绔儴缃蹭唬鐞? https://github.com/xuyuan23/stablediffusion-proxy
```
鍚獳I瑙嗛鐨勬枃妗堬紝闇€瑕佽ˉ鍏呬笅闈㈡湇鍔?/b>
```
git lfs install
git clone https://huggingface.co/cerspense/zeroscope_v2_576w
python operategpt/providers/text2video.py
## 鎴栬€呬簯绔儴缃蹭唬鐞? https://github.com/xuyuan23/Text2Video
```