openwebui使用

文章目录

1、feature

  1. 可以加载多个大模型 同时回复
    模型问答: 使用vLLM框架部署模型,再使用Open WebUI直接进行模型问答
    多模型支持: 多模型回复比对(Qwen2-72B-Instruct, llama3-70b-8192, mixtral-8x7b)
    RAG场景1: 文档问答
    RAG场景2: 使用Web Search进行问答
    Function Calling: 需用Python实现工具(Tool)代码
    多模态场景: 对图片进行问答(VQA)
    Pipelines: pipeline编排,可自定义工作流程
    模型问答

2、安装使用

github地址:

复制代码
https://github.com/open-webui/open-webui

2.1 安装过程

python 3.11

复制代码
# 1
pip install open-webui
# 2  这样能够下载模型
export HF_ENDPOINT="https://hf-mirror.com"
# 启动端口8081
open-webui serve --port 8081 

2.2 安装好后

  1. 打开 http:\服务器ip:8081\
  2. 注册账号登录
  3. 添加了两个模型同时回复问题。

    工作空间设置模型
  • 新建工具,调用

    import os
    import requests
    from datetime import datetime

    class Tools:
    def init(self):
    pass

    复制代码
      def get_current_time(self) -> str:
          """
          Get the current time in a more human-readable format.
          :return: The current time.
          """
    
          now = datetime.now()
          current_time = now.strftime("%I:%M:%S %p")  # Using 12-hour format with AM/PM
          current_date = now.strftime(
              "%A, %B %d, %Y"
          )  # Full weekday, month name, day, and year
    
          return f"Current Date and Time = {current_date}, {current_time}"

选择上就可以调用工具了

参考:https://percent4.github.io/NLP(一百零三)大模型应用利器之Open-WebUI入门/

相关推荐
死磕音视频18 天前
自己搭一个“私人版 ChatGPT“:Open WebUI 一条命令部署 + 接入本地/云端模型保姆级教程
docker·开源·open webui·大模型部署
VIP_CQCRE18 天前
给团队搭一个 AI 工作台:Open WebUI 接入 Ace Data Cloud 实战
docker·ai·rag·open webui·ace data cloud
Okailon6 个月前
Open WebUI 文档
大模型·open webui·ai 客户端
Okailon7 个月前
Open WebUI 核心功能与使用指南
ai·open webui
zhangbaolin1 年前
open webui源码分析13-模型管理
大模型·open webui
zhangbaolin1 年前
open webui源码分析11-四个特征之记忆
python·大模型·memory·open webui
zhangbaolin1 年前
open webui源码分析5-Tools
大模型·open webui
zhangbaolin1 年前
open webui源码分析3—一次对话
大模型·open webui
文军的烹饪实验室2 年前
MacOS 安装open webui
open webui
我叫安查查2 年前
一文对比RAGFLOW和Open WebUI【使用场景参考】
人工智能·ragflow·open webui