sugarforever / chat-ollama
- понедельник, 11 марта 2024 г. в 00:00:12
This is a Nuxt 3 + Ollama web application. It's an example of Ollama Javascript library.
Feature list:
You will need an Ollama server running. You can run it in local environment following the installation guide of Ollama.
By default, Ollama server is running on http://localhost:11434.
#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
.env.example
file to .env
file:cp .env.example .env
# npm
npm install
# pnpm
pnpm install
# yarn
yarn install
# bun
bun install
# npm
npm run prisma-migrate
# pnpm
pnpm prisma-migrate
# yarn
yarn prisma-migrate
# bun
bun run prisma-migrate
Make sure both Ollama Server and ChromaDB are running.
Start the development server on http://localhost:3000
:
# npm
npm run dev
# pnpm
pnpm dev
# yarn
yarn dev
# bun
bun run dev