:::
顯示具有 Docker 標籤的文章。 顯示所有文章

自行架設Dify使用的重排序模型:Text Embeddings Inference / Self-Hosting a Dify Reranking Model: Text Embeddings Inference

布丁布丁吃布丁

自行架設Dify使用的重排序模型:Text Embeddings Inference / Self-Hosting a Dify Reranking Model: Text Embeddings Inference

2025-0109-003246.png

隨著在Dify使用的知識庫越來越多,傳統的用相似度來計算權重分數的做法已經不敷使用,而使用重排序模型來排序檢索結果順序的做法也越來越受歡迎。這次我們來架設HuggingFace推出的Text Embeddings Inference,並讓Dify能用它來做重排序吧。

As the knowledge base used in Dify grows, the traditional method of calculating weight scores based on similarity is becoming inadequate.  Using reranking models to reorder retrieval results is gaining popularity.  Let's set up HuggingFace's Text Embeddings Inference and integrate it into Dify for reranking.

(more...)

雜談:總算把架設了Stable Diffusion WebUI Forge / TALK: Finally Set Up Stable Diffusion WebUI Forge

雜談:總算把架設了Stable Diffusion WebUI Forge / TALK: Finally Set Up Stable Diffusion WebUI Forge

2024-1223-160139.png

由於之前硬碟毀損,導致我用來做AI繪圖的Stable Diffusion環境全部消失。這次乾脆全部重來,用Stable Diffusion WebUI Forge重建整個繪圖環境吧。

(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...)

為什麼我放在Docker Hub的映像檔不能用了? / Why My Docker Image on Docker Hub Cannot Be Used?

布丁布丁吃布丁

為什麼我放在Docker Hub的映像檔不能用了? / Why My Docker Image on Docker Hub Cannot Be Used?

2024-0808-022125.png

我們現在能開心地使用各種Docker環境,都是多虧了Docker Hub保存了這些Docker映像檔。Docker Hub也可以稱得上是賽博菩薩了吧?但這免費資源可不是讓你毫無限制的使用喔!

We can now happily use various Docker environments thanks to Docker Hub saving all these Docker images. You could say Docker Hub is like a Cyber Bodhisattva, right? However, this free resource is not for you to use without limit!

(more...)

雜談:GitHub Action的Docker映像檔分層快取不能用了... / TALK:  GitHub Action's Docker Image Layer Caching Is Broken...

布丁布丁吃布丁

雜談:GitHub Action的Docker映像檔分層快取不能用了... / TALK:  GitHub Action's Docker Image Layer Caching Is Broken...

2024-0806-024325.png

我在GitHub Action執行CI/CD的時候所使用的Docker映像檔分層快取功能「satackey/action-docker-layer-caching@v0.0.11」,現在已經不能使用了啊。怎麽辦好呢?

(more...)

如何使用Docker APP? / How to Use Docker APP?

布丁布丁吃布丁

如何使用Docker APP? / How to Use Docker APP?

2024-0119-235133.png

你可以在線上透過Colab使用Docker APP,也可以在本機端使用Docker APP喔。

(more...)

在Docker舊版Debian裡安裝套件 / How to Handle the "Failed to fetch" Error When Running "apt-get update"?

布丁布丁吃布丁

在Docker舊版Debian裡安裝套件 / How to Handle the "Failed to fetch" Error When Running "apt-get update"?

2023-0513-180401.png

差點忘了編譯Docker映像檔的時候也是要安裝套件。

(more...)

用Docker建置具備HTTPS的NGINX反向代理伺服器:docker-HTTPS-Reverse-Proxy / Build a NGINX Reverse Proxy with HTTPS in Docker: docker-HTTPS-Reverse-Proxy

布丁布丁吃布丁

用Docker建置具備HTTPS的NGINX反向代理伺服器:docker-HTTPS-Reverse-Proxy / Build a NGINX Reverse Proxy with HTTPS in Docker: docker-HTTPS-Reverse-Proxy

2023-0410-003622.png

直接設定NGINX實在是太複雜了,那我們用Docker把複雜的內容都包裝起來,只追求最簡單的設定即可。

(more...)

在Docker中定期執行指令 / Run a Scheduled Job Inside a Docker Container

布丁布丁吃布丁

在Docker中定期執行指令 / Run a Scheduled Job Inside a Docker Container

2023-0409-204459.png

總不會全天下只有我不能在Docker容器裡面執行crontab吧?

(more...)

Nginx的PageSpeed安裝失敗記錄 / Install NGINX PageSpeed Module failed

布丁布丁吃布丁

Nginx的PageSpeed安裝失敗記錄 / Install NGINX PageSpeed Module failed

2023-0409-160629.png

結論是放棄了。

(more...)

在Ubuntu安裝Stable Diffusion Web UI / Install Stable Diffusion Web UI in Ubuntu

布丁布丁吃布丁

在Ubuntu安裝Stable Diffusion Web UI / Install Stable Diffusion Web UI in Ubuntu

2023-0319-125054.png

要當魔法師比我想象中的還要辛苦。

(more...)

Docker的rootless模式特別麻煩 / Take More Careful When You Running Docker in Rootless Mode

布丁布丁吃布丁

Docker的rootless模式特別麻煩 / Take More Careful When You Running Docker in Rootless Mode

2023-0319-112709.png

host網路不能連?開啟與關閉指令不能用?gpu抓不到?那大概都是rootless的問題。

(more...)

使用GitHub做定期爬蟲、保存與提供資料 / Building a Scheduled Crawler and Storing as Accessible Data by GitHub Action and Pages

布丁布丁吃布丁

使用GitHub做定期爬蟲、保存與提供資料 / Building a Scheduled Crawler and Storing as Accessible Data by GitHub Action and Pages

2023-0207-213215.png

網路爬蟲的教學很多,但要怎麼定期執行爬蟲、又要把爬完的資料保存後供人取用,則是一個大問題。

(more...)

Docker網路問題 / Network Issue in Docker

布丁布丁吃布丁

Docker網路問題 / Network Issue in Docker

2023-0124-071428.png

執行Docker的時候出現了「ERROR: could not find an available, non-overlapping IPv4 address pool among the defaults to assign to the network」錯誤訊息,該怎麼處理好呢?

(more...)