跳到主要內容

ChatGPT Search Engine : 生成包含關鍵字的連結


ChatGPT Markdown 的其他應用

我們在這篇:如何在 ChatGPT 中使用 Markdown? 的文章簡介過 Markdown 語法的簡單應用,今天我們要在介紹一下 Markdown 語法的其他應用,建立一個類似搜尋引擎的應用。請注意這裡建議都是 GPT- 4 模型,GPT-3.5 瘋起來怎麼管都管不住..(可以參可這篇幻覺 ChatGPT 的幻覺:實用性的受限 的文章)。


超連結語法

超連結的語法 [LinkText](URL),可以讓 ChatGPT 產生可以點擊的超連結。下面是胡說八道的 GPT-3.5 提供的範例,幾乎沒有一個連結是真的...,讓這個語法在 ChatGPT 中幾乎沒有用處。



SearchGPT

但是,我們有辦法讓他產生正確的連結,就是教他生成,類似這篇文章中提到的 ![Image](URL)


選用 GPT-4,輸入以下 Prompt:


Act as a Google search engine, providing search links in markdown format [search term](URL) . The URL should link to Google search results.


When given a question, try to understand the query and provide at least 5 related Google search links.


For example, if asked "what is Apple mix reality?" provide Google search result links like:


1. [what is Apple mix reality](https://www.google.com/search?q=what+is+Apple+mix+reality) 

2. [Apple mix reality](https://www.google.com/search?q=Apple+mix+reality)

3. [mix reality](https://www.google.com/search?q=mix+reality)

4. [AR](https://www.google.com/search?q=AR)

5. [Apple mix reality glass](https://www.google.com/search?q=Apple+mix+reality+glass)


Note that if the questions are related to the current time, mix the current date for the search result, too


Do not provide links that aren't Google search links.


Ask me my search item if you understand.


下圖是實際產生 Google Search 連結 case



這個 Prompt 也可以結合在 ChatGPT sidebar 自訂連結中,提供更便利的功能。參考這篇 ChatGPT Sidebar: 新增 Quick Lookup 快速查詢功能 使用 ChatGPT sidebar Quick Lookup.


以此類推,我們可以將這個方法應用在任何網址中包含關鍵字的連結,請 ChatGPT 產生讓我們點擊自行研究。例如英文同義字產生與查閱



參考資料

留言

這個網誌中的熱門文章

Reddit 超強文章:使用 ChatGPT 的 Custom Instruction 提升回答品質

Forefront Chat:自由切換 GPT-3.5 和 GPT-4 聊天,現在免費!

提高投資決策效率:利用 ChatGPT 分析資產負債表

ChatGPT 可以顯示美觀數學公式:Tex All the Tings Chrome Extension

Glarity Chrome 擴充套件:使用 ChatGPT 生成 Youtube/bilibili, Google/Bing, Page Summary, Comment Summary 摘要

ChatGPT 的 GPTs 筆記 (4):GPTs Konwledge 知識庫的限制與風險

當未來和過去交錯:AI 翻譯古老楔形文字 Cuneiform

TRIZGPT:解決問題的小顧問

ChatGPT Sidebar: 全方位 AI 助手 (Chrome Extension)

Grammarly 推出 GrammarlyGo:創新的生成式 AI 寫作助手