# I am the Watcher. I am your guide through this vast new twtiverse.
# 
# Usage:
#     https://watcher.sour.is/api/plain/users              View list of users and latest twt date.
#     https://watcher.sour.is/api/plain/twt                View all twts.
#     https://watcher.sour.is/api/plain/mentions?uri=:uri  View all mentions for uri.
#     https://watcher.sour.is/api/plain/conv/:hash         View all twts for a conversation subject.
# 
# Options:
#     uri     Filter to show a specific users twts.
#     offset  Start index for quey.
#     limit   Count of items to return (going back in time).
# 
# twt range = 1 1
# self = https://watcher.sour.is/conv/qtb7rrq
實戰: 使用 LangChainGo - Gin 實現流式 AI 問答系統**
在本篇文章中,我們將使用 LangChainGo + Gin 框架,結合 Ollama 大語言模型,實現一個流式 AI 問答系統。最終,我們還會使用 curl 進行測試,由於是實戰例子所以我會提供一個簡單的 html+css+js 的前端來實時顯示 AI 的回答。流式響應的意義在傳統 API 調用中,我們往往要等到大語言模型(LLM) 計算完成後,才能返回完整的回答。這會導致:等待時間長:用戶需要 ⌘ Read more