Try   HackMD

FlowiseAI 使用文件

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

快速開始

建立一份屬於自己的機器人聊天流程 (跳過安裝步驟 http://140.115.8.60:3000/)

使用文件:
https://www.cnblogs.com/tommywow/p/18117365

如何在 http://140.115.8.60:8000/flow_robot 使用 flowise?

http://140.115.8.60:3000/
一、 新增一個機器人
可以找一個機器人,使用右上方[setting] 鈕,按下【Duplicate Chatflow】

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

或是完全新建一個 "https://www.cnblogs.com/tommywow/p/18117365" ,可參考這個網址

二、設定API Key 權限功能

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

選擇 Create Key 按鈕,新增你所需要的權限

三、 為你的機器人綁定使用權限

  1. Step1 => 選取你要使用的流程,並且選取 </> 按鈕打開embed in website or use as API
  2. 選擇使用的權限
    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →

四、 替用戶設定機器人權限:

http://140.115.8.60:8000/flow_robot

  1. 至【成員管理】新增用戶
  2. 必須選擇用戶只能使用的機器人
    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →

五、 建立對話機器人:

http://140.115.8.60:8000/flow_robot

  1. 先登入剛剛建立後的帳號,新增一個對話窗
  2. 選擇你剛剛的設定的【對話流程名稱】
    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →
  3. 設定完成後就可以正常聊天了
    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →

本文開始

簡介

Flowwise,這是一個開源工具,它使用易於使用的使用者介面,使原型化Lang chain(鍊式語言)應用程式變得簡單。 Flowwise 可以讓我們使用簡單的拖放介面來建立AI 應用程序,可以免費使用,可以在本地機器上使用,也可以部署到Web 伺服器上進行線上存取。

Flowwise 是什麼

Flowwise 是一個開源工具,用於原型化Lang chain(鍊式語言)應用程式。它提供了一個易於使用的使用者介面,可以幫助我們在不需要編碼經驗的情況下創建AI 應用程式。 Flowwise 可以透過拖放介面來建立AI 應用程式的流程,而無需編寫任何程式碼。它還允許我們直接從應用程式中與Flowwise 流程進行交互,透過暴露API 端點的方式使用Flowwise。

Flowwise 的功能

Flowwise 提供了許多功能,讓我們能夠輕鬆建立和管理AI 應用程式。以下是Flowwise 的一些主要功能:

  • 創建AI 應用程式的拖放介面
  • 可以建立代理人、鏈條、聊天模型和文件載入器等元件
  • 可以使用搜尋來尋找元件
  • 可以儲存和匯出Chat Flow
  • 可以使用API​​ Keys 進行應用程式的存取控制
  • 支援自訂Chat Flow
  • 可以在本機上啟動Flowwise Server

Chatflows
Marketplaces
Tools
Assistants
Credentials
Variables
API Keys


使用Flowwise 建立AI 應用

在Flowwise 的儀表板中,我們可以執行以下操作:

ChatflowsPage:

  1. 擊"Add New" 按鈕建立一個新的Chat Flow

    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →

  2. 使用左側的按鈕新增組件

    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →

  3. 使用搜尋框查找元件

  4. 使用儲存按鈕儲存Chat Flow

  5. 使用設定按鈕配置Chat Flow

  6. 使用Chat 按鈕與應用程式進行交互

儲存和匯出Chat Flow

在Flowwise 的儀表板中,我們可以儲存Chat Flow,並將其匯出為可供其他應用程式使用的格式。點擊"Settings" 按鈕,然後選擇"API Endpoint",我們可以取得嵌入Chatbot 的程式碼,並可使用JavaScript import 或Python 程式碼來使用Chat Flow。


API Keys

Flowwise 允許我們使用API​​ Keys 來控制對應用程式的存取權。我們可以在Flowwise 的“Settings”選單中找到“API Keys”,然後在那裡提供我們的OpenAI API Keys。透過使用API​​ Keys,我們可以將我們的Chat Flows 暴露給外部應用程序,以實現與第三方應用程式的互動。


LangChain

Vector Store Retriever(向量儲存檢索器):

Top5向量数据库:
https://zhuanlan.zhihu.com/p/667125508

大模型最常使用的5大向量数据库:Chroma、Pinecone、Weaviate、Milvus和Faiss:
https://blog.csdn.net/2401_84033492/article/details/137249141?utm_medium=distribute.pc_relevant.none-task-blog-2

Pincone:
https://blog.csdn.net/h3c4lenovo/article/details/130771152

Chroma:
https://docs.flowiseai.com/integrations/langchain/vector-stores/chroma

Weaviate:
Milvus:
Faiss:

如何使用 Pincone

先去 pincone 官網註冊用戶:
https://app.pinecone.io/organizations/-NyYL7kOfEeS_otdr2KA/projects/d39cea60-3c07-41f1-98c2-a7d33c455731/indexes

新增 Index

  • 按下 Create Index
    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →
  • 輸入ChatBot 名稱
    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →
  • Configuration 輸入 1024
    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →
  • 其它可以先按照預設使用,直接建立
    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →

flowise 配合使用 Pincone 方法:

https://docs.flowiseai.com/integrations/langchain/vector-stores/pinecone

當你照著文檔配置完成後,要確認使用是否正常

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

請按下 "Upsert" 能替你的 Pinecone 以及檔案立即產生一份對應的 Upsert Record
Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

這樣才代表你已設定完成(!!!若提供的文檔有變動,都需要按下 Upsert)


其它相關資訊:

一日一技:如何强迫LLama3用中文回复?:
https://www.kingname.info/2024/04/23/llama-chinese/

http 開啟語音功能:

在瀏覽器位址輸入“
chrome://flags/#unsafely-treat-insecure-origin-as-secure
”,回車,如下圖,將選項設為Enabled,輸入 http://140.115.8.60:8000 就可以正常使用語音功能囉!

image