Skip to content

rotger/Simple-Ollama-Chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Ollama Chatbot

[EN]

A simple Ollama chatbot that is easy to install and use.

Instructions

  1. Install Ollama.
  2. Install your favorite model. For example, you can use the following command to install the qwen3 model: ollama pull qwen3.
  3. Set environment variable OLLAMA_ORIGINS=*. On windows, you can set it simply by running this powershell command: [Environment]::SetEnvironmentVariable("OLLAMA_ORIGINS","*","User").
  4. Make sure Ollama is running. Either by doing ollama serve in a terminal or by opening ollama.exe.
  5. Copy the file simple_chatbot_EN.html to your disk.
  6. Open the file simple_chatbot_EN.html in a web browser.

If you want to modify the chatbot, you can edit the file simple_chatbot_EN.html in a text editor. The chatbot is written in HTML and JavaScript, so you can easily change the code to suit your needs. Also, you can copy the code in the chatbot interface and ask your favorite ai model to make it better! In fact, the entire code was created by an AI.

Support

Support the following features:

  • Markdown
  • Mathjax
  • Code bloc synthax highlighting
  • Attaching files (including pdf)
  • Attaching images
  • Scrape URL content found in the user input and send it to the model
  • Dark and light mode toggle

[RU]

Простой чат-бот Ollama, который легко установить и использовать.

Инструкции

  1. Установите Ollama.
  2. Установите свою любимую модель. Например, вы можете использовать следующую команду для установки модели qwen3: ollama pull qwen3.
  3. Установите переменную окружения OLLAMA_ORIGINS=*. В Windows вы можете сделать это, просто запустив эту команду PowerShell: [Environment]::SetEnvironmentVariable("OLLAMA_ORIGINS","*","User").
  4. Убедитесь, что Ollama работает. Либо выполнив ollama serve в терминале, либо открыв ollama.exe.
  5. Скопируйте файл simple_chatbot_RU.html на свой диск.
  6. Откройте файл simple_chatbot_RU.html в веб-браузере.

Если вы хотите модифицировать чат-бота, вы можете отредактировать файл simple_chatbot_RU.html в текстовом редакторе. Чат-бот написан на HTML и JavaScript, поэтому вы можете легко изменить код в соответствии со своими потребностями. Также, вы можете скопировать код в интерфейсе чат-бота и попросить свою любимую ИИ модель сделать его лучше! На самом деле, весь код был создан ИИ.

Поддерживаемые функции:

  • Markdown
  • Mathjax
  • Подсветка синтаксиса для блоков кода
  • Прикрепление файлов (включая PDF)
  • Прикрепление изображений
  • Извлечение содержимого URL, найденного во вводе пользователя, и отправка его модели
  • Переключение между темной и светлой темами

About

Simple html ollama chatbot that is easy to install. Simply copy the html file on your computer and run it.

Topics

Resources

License

Stars

Watchers

Forks

Languages