Skip to content

A Simple Chat application using Ollama and REMIX-SPA web framework

Notifications You must be signed in to change notification settings

ugmurthy/ollam2go

Repository files navigation

Ollama2Go

Ollama2Go is a Single page application building using the REMIX-SPA framework. Here is a starter repo for building a SPA.

Ollama2Go is a basic chat application and uses local Ollama supported models and chat.

Olamma2Go - watch it in action

Basic Features:

  1. Works locally
  2. Chat/Generate content with conversation memory
  3. Starting a new covnersation erases any memory
  4. Copy to clipboard (Response, Promot or Both)
  5. Set SYSTEM prompt to
    • Provide Task instructions
    • Set objective
    • modify personality
    • provide guidance - what to do / what not to do...

Uses Cases:

  1. As a writing Assistant : Write short stories/poems
  2. Generate/Explain Code
  3. Generate ficticious data
  4. Summarise text
  5. Translate text

Installation

1. Install Ollama

Instruction for installing Ollama

1.1 Get Models

To Download a model.

ollama pull <modelname>

The list of available models are here

2. Install Ollam2Go for dev

2.1 Clone this repo 2.2 npm install 2.2 npm run dev and open the app in browse Ollama2Go

Production

When you are ready to build a production version of your app, npm run build will generate your assets and an index.html for the SPA.

npm run build

Preview

You can preview the build locally with vite preview to serve all routes via the single index.html file:

npm run preview

![WARNING] vite preview is not designed for use as a production server

Deployment

You can then serve your app from any HTTP server of your choosing. The server should be configured to serve multiple paths from a single root /index.html file (commonly called "SPA fallback"). Other steps may be required if the server doesn't directly support this functionality.

For a simple example, you could use sirv-cli:

npx sirv-cli build/client/ --single

About

A Simple Chat application using Ollama and REMIX-SPA web framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published