Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Chatbot

Basic AI chatbot web app using ollama, flask, and a simple custom html/css/js front end

ollama    -->   flask app   -->   front end
runs models     serves the         chatbot interface
                front end and
                communicates with Ollama
                API

This project has two versions: Docker and non-Docker.

Main version (non-Docker):

  • if needed create virtual env: python3 -m venv venv
    • & activate it: source venv/bin/activate
    • & install dependencies: pip install -r requirements.txt
  • start ollama manually then make sure it is running: ollama --version
  • navigate to main folder: cd main
  • run app.py: python3 app.py
  • web app should be running on: localhost:5000

Docker version

  • navigate to Docker folder: cd Docker
  • build image: docker build -t chatbot .
  • run container: docker run -p 11434:11434 --name chatbot chatbot
  • web app should be running on localhost:5000
  • interact with container (optional): docker exec -it ollama bash
  • Note: this does not install any models, they must be manually installed after build!

Features

  • Functional chatbot interface built with Flask and Js powered by Ollama



Dev:

todo:

  • dont touch the ui its perfect
  • UPDATE README with node module installation, right now node_modules are included in the repo

installed moduules:

  • marked
  • bootstrap css

cmd curl command to prompt ollama api:

curl http://localhost:11434/api/generate -d "{  \"model\": \"gemma:4b-it-qat\",  \"prompt\": \"Hello there\"}" -H "Content-Type: application/json"

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages