:::

離開抱抱臉: 讓Dify擁抱Ollama / Leaving Hugging Face: Embracing Ollama with Dify

布丁布丁吃布丁

離開抱抱臉: 讓Dify擁抱Ollama / Leaving Hugging Face: Embracing Ollama with Dify

2024-1203-195243.png

在「自行架設大型語言模式應用程式:Dify」這篇我講到我在Dify裡面使用Hugging Face API作文字嵌入(embedding),但啟動等待跟限速的限制降低了使用效率。這次我們把文字嵌入的工作交給自行架設的Ollama,讓我們來看看自行架設到底可以帶來什麼效益吧。

In the article "Self-Hosting a Large Language Model Application: Dify," I discussed using the Hugging Face API for text embedding within Dify. However, startup latency and rate limiting reduced efficiency. This time, we'll offload the text embedding task to a self-hosted Ollama instance. Let's explore the benefits of self-hosting.

(more...)

雜談:來自架Dify v0.12.1吧! / TALK: Let's Self-Host Dify v0.12.1!

布丁布丁吃布丁

雜談:來自架Dify v0.12.1吧! / TALK: Let's Self-Host Dify v0.12.1!

2024-1203-163113.png

自從上次講到想要從Dify v0.6.14升級之後,這次就來試著安裝看看吧。

(more...)

希希助教祝大家聖誕快樂 / TA. Sissi Wishes Everyone a Merry Christmas

布丁布丁吃布丁

0 Comments

希希助教祝大家聖誕快樂 / TA. Sissi Wishes Everyone a Merry Christmas

-_Merry_Christmas_-_image6.png

希希助教在教室之外為各位同學的期末獻上祝福。祝大家聖誕快樂!

如果順利的話,希希助教應該會在節日的時候定期出來跟大家打聲招呼吧。你對希希助教有什麼看法呢?歡迎在下面留言喔。

(more...)

檢索擴增生成(RAG)技術的發展現況與文本知識提取的應用 / Retrieval Augmented Generation (RAG) and Its Application in Text Knowledge Extraction

布丁布丁吃布丁

檢索擴增生成(RAG)技術的發展現況與文本知識提取的應用 / Retrieval Augmented Generation (RAG) and Its Application in Text Knowledge Extraction

2024-1203-203403.png

檢索擴增生成(RAG)現在已經是大型語言模型領域裡的新寵兒,而且是屬於易懂難經的技術。這篇文章內容是我在計劃書裡對於檢索擴增生成(RAG)技術的內涵和相關應用的介紹。在這個部落格也留存一份記錄吧。

Retrieval Augmented Generation (RAG) has become the new darling of the large language model domain, and it's one of those technologies that are easier to understand than to master. This post contains the introduction to RAG's core concepts and applications that I wrote for a proposal. I'm also keeping a copy here on the blog.

(more...)

雜談:用Make設定了RSS傳送到Threads / TALK: Forword the RSS Feed to Threads in Make

布丁布丁吃布丁

雜談:用Make設定了RSS傳送到Threads / TALK: Forword the RSS Feed to Threads in Make

2024-1202-013534.png

在我寫完「RSS自動轉發到Threads跟X (Twitter):使用dlvr.it」之後,dlvr.it就轉變成完全收費的制度,因此自動轉發也跟著無以後繼。最近我總算能騰出時間來撰寫Blog,同時也把Threads API整合到Make平臺裡,讓「布丁布丁吃什麼?」的新文章能夠自動轉發到Threads裡面。至於這個方法是否能夠成功,就要等時間來驗證了。以下就記錄我大致上的做法。

(more...)

Home Assistant自動化的限制:無法偵測長時間狀態 / Limitations of Home Assistant Automation: Inability to Detect Long-Duration States

布丁布丁吃布丁

Home Assistant自動化的限制:無法偵測長時間狀態 / Limitations of Home Assistant Automation: Inability to Detect Long-Duration States

2024-1201-172230.png

我本來想在Home Assistant設定自動化「如果實體的狀態維持[關閉]超過24小時,就把它設為[開啟]」,結果HA卻一直沒能觸發自動化。最後我把條件改成時間模式定期檢查、觸發,然後把條件設定在「且如果」裡面,這樣自動化才能夠正常運作。

I was trying to set up an automation in Home Assistant that would turn an entity [on] if its state remained [off] for more than 24 hours. However, the automation never triggered. I eventually got it working by changing it to a time-based automation that checks periodically and then using an condition to check the entity's state.

(more...)

雜談:是時候該來處理一下Dify的問題了 / TALK: It's Time to Address the Issues with Dify

布丁布丁吃布丁

雜談:是時候該來處理一下Dify的問題了 / TALK: It's Time to Address the Issues with Dify

2024-1203-115859.png

在「自行架設大型語言模式應用程式:Dify」這篇裡面,我用Dify在筆電架設了可客製化、具備RAG的大型語言模型應用程式。但這段期間用下來還是遭遇了很多問題。以下就稍微列舉一下我遭遇的狀況。

(more...)