# Chat Ollama
This is a Nuxt 3 + Ollama web application. It's an example of Ollama Javascript library.
Feature list:
- Models management (list, download, delete)
- Chat with models
## Developers Guide
As ChatOllama is still under active development, features, interfaces and database schema may be changed. Please follow the instructions below in your every `git pull` to make sure your dependencies and database schema are always in sync.
1. Install the latest dependencies
- `npm install` OR
- `pnpm install`
2. Prisma migrate
- `pnpm run prisma-migrate` OR
- `npm run prisma-migrate`
## Change logs:
Here we summarize what's done and released in our day-to-day development.
### 03/10/2024
1. Instructions data will be stored in SQLite database.
2. `vueuse` is introduced for storage management.
## Users Guide
As a user of `ChatOllama`, please walk through the document below, to make sure you get all the components up and running before starting using `ChatOllama`.
### Ollama Server
You will need an Ollama server running. You can run it in local environment following the installation guide of [Ollama](https://github.com/ollama/ollama).
By default, Ollama server is running on http://localhost:11434.
### Install ChromaDB and startup
```bash
#https://hub.docker.com/r/chromadb/chroma/tags
docker pull chromadb/chroma
docker run -d -p 8000:8000 chromadb/chroma
```
Now, ChromaDB is running on http://localhost:8000
### Setup
1. Copy the `.env.example` file to `.env` file:
```bash
cp .env.example .env
```
2. Make sure to install the dependencies:
```bash
# npm
npm install
# pnpm
pnpm install
# yarn
yarn install
# bun
bun install
```
3. Run a migration to create your database tables with Prisma Migrate
```bash
# npm
npm run prisma-migrate
# pnpm
pnpm prisma-migrate
# yarn
yarn prisma-migrate
# bun
bun run prisma-migrate
```
### Development Server
> Make sure both __[Ollama Server](#ollama-server)__ and __[ChromaDB](#install-chromadb-and-startup)__ are running.
Start the development server on `http://localhost:3000`:
```bash
# npm
npm run dev
# pnpm
pnpm dev
# yarn
yarn dev
# bun
bun run dev
```
没有合适的资源?快使用搜索试试~ 我知道了~
Nuxt 3 + Ollama Web的聊天软件
共56个文件
ts:22个
vue:15个
json:4个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 159 浏览量
2024-03-11
09:31:45
上传
评论
收藏 143KB ZIP 举报
温馨提示
这是一个Nuxt 3 + Ollama Web应用程序。这是 Ollama Javascript 库的一个例子。 功能列表: 模型管理(列表、下载、删除) 与模特聊天
资源推荐
资源详情
资源评论
收起资源包目录
chat-ollama-main.zip (56个子文件)
chat-ollama-main
.editorconfig 312B
pages
knowledgebases
index.vue 4KB
[id].vue 583B
chat
index.vue 275B
instructions
index.vue 4KB
index.vue 1KB
models
index.vue 301B
settings
index.vue 3KB
vercel.json 101B
prisma
migrations
20240305202320_knowlegebase_files
migration.sql 1KB
20240305205052_files_cascade_deletion
migration.sql 643B
migration_lock.toml 122B
20240302004128_init
migration.sql 340B
20240309101210_instruction
migration.sql 243B
schema.prisma 784B
plugins
analytics.client.ts 160B
.github
workflows
docker-image.yaml 969B
.env.example 165B
LICENSE 1KB
app.config.ts 152B
utils
settings.ts 2KB
nuxt.config.ts 176B
app.vue 94B
components
ModelsDropdown.vue 1KB
Download.vue 3KB
KnowledgeBaseChat.vue 5KB
Heading.vue 155B
Chat.vue 6KB
Models.vue 4KB
package.json 1KB
public
favicon.ico 4KB
Dockerfile 229B
pnpm-lock.yaml 278KB
tailwind.css.ts 290B
.gitignore 2KB
tsconfig.json 94B
server
api
knowledgebases
[id].get.ts 703B
[id].delete.ts 737B
index.get.ts 533B
index.post.ts 3KB
instruction
[id].put.ts 767B
[id].delete.ts 517B
index.get.ts 468B
index.post.ts 581B
chat
index.ts 2KB
models
pull
index.post.ts 728B
chat
index.post.ts 4KB
index.get.ts 964B
index.delete.ts 400B
utils
models.ts 255B
index.ts 590B
middleware
keys.ts 295B
ollama.ts 373B
tsconfig.json 49B
layouts
default.vue 972B
README.md 2KB
共 56 条
- 1
资源评论
sjx_alo
- 粉丝: 1w+
- 资源: 1235
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- (源码)基于Arduino和Nextion的HMI人机界面系统.zip
- (源码)基于 JavaFX 和 MySQL 的影院管理系统.zip
- (源码)基于EAV模型的动态广告位系统.zip
- (源码)基于Qt的长沙地铁换乘系统.zip
- (源码)基于ESP32和DM02A模块的智能照明系统.zip
- (源码)基于.NET Core和Entity Framework Core的学校管理系统.zip
- (源码)基于C#的WiFi签到管理系统.zip
- (源码)基于WPF和MVVM框架的LikeYou.WAWA管理系统.zip
- (源码)基于C#的邮件管理系统.zip
- 【yan照门】chen冠希(1323张) [2月25日凌晨新增容祖儿全94张].rar.torrent
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功