Skip to content

Programming-from-A-to-Z/Ollama-Examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ollama Examples

A collection of basic examples for using Ollama with client-side JavaScript. The Express server proxies requests to Ollama. This could be done directly via p5.js but this is best to avoid CORS issues as well as a foundation for plugging in other services and cloud-based LLMs.

  1. Install dependencies:
npm install
  1. Make sure Ollama is running on your machine (http://localhost:11434)

  2. Start the server:

npm start
  1. Open your browser to http://localhost:3000

Resources

Examples

  • 1-chat - streaming chatbot interface
  • 2-code-generator - generate and run p5.js sketches from text descriptions
  • 3-vision - image description of canvas drawings

About

Examples for Ollama with client-side code only

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published