GithubHelp home page GithubHelp logo

deepin-service's Introduction

ollama.sh是集ollama安装,运行一体的,每次运行会检测ollama是否安装

如果出现:Port 11434 is already in use. 解决方案:

#查看占用端口的id
lsof -i :11434
#干掉它
kill -9 查询出来的id

启动ollama

#赋予可以执行权限
chmod +x ollama.sh
#执行
./ollama.sh

docker代理

mirrors.nju.edu.cn
daocloud.io/

open-webui

注意:运行open-webui后无需在运行chatOllama

  • 首次运行新建目录,目录结构如下:
├── data
│   └── open-webui
├── docker-compose.yml
├── ollama.sh
├── README.md
└── services
  • docker-compose.yml的environment中设置本机穿墙代理,否则无法下载huggingface中模型,会导致运行失败

启动chatOllama

首次运行新建目录,目录结构如下:

├── data
│   ├── .chatollama
│   └── chromadb_data
├── docker-compose.yml
├── ollama.sh
├── README.md
└── services
sudo docker-compose up

注意:如果是首次启动,在./data/.chatollama文件夹中,如果没有chatollama.sqlite文件,则运行:

docker compose exec chatollama npx prisma migrate dev

使用说明

1、settings->Ollama Server Setting->Host: http://host.docker.internal:11434

2、需要使用知识库,需要解码模型:nomic-embed-text

3、OpenAI Embedding Model(任选一个)

text-embedding-3-large

text-embedding-3-small

text-embedding-ada-002

chatOllama仓库

Ollama仓库

Open Web UI

LiteLLM

deepin-service's People

Contributors

racall avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.