https://github.com/theappwizard/friday-chatbot
Friday ChatBot Backend Implementation
https://github.com/theappwizard/friday-chatbot
Last synced: 10 months ago
JSON representation
Friday ChatBot Backend Implementation
- Host: GitHub
- URL: https://github.com/theappwizard/friday-chatbot
- Owner: TheAppWizard
- Created: 2024-04-11T13:07:30.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-05T14:25:05.000Z (about 2 years ago)
- Last Synced: 2025-08-08T07:32:05.727Z (11 months ago)
- Language: Dart
- Size: 38.1 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Friday-Chatbot
Friday ChatBot Backend Implementation
## Ollama
Ollama provides a simple API for creating, running, and managing language models. It also offers a library of pre-built models that can be easily integrated into your applications.
### Features
- Create custom language models
- Run and manage pre-built models
- Easy integration with applications
### Downloading Ollama

### Pulling Model
```terminal
ollama pull llama2
```
### First Run
```terminal
ollama run llama2
```
### Ollama : llama2

### Modifying Model
```terminal
nano foodie_friday
```
### Nano File

### Creating Model
```terminal
ollama create foodie_friday_llama2 -f ./foodie_friday
```
### Running Foodie-Friday

### Running As API Service (Local Host)
```curl
curl --location 'http://localhost:11434/api/generate' \
--header 'Content-Type: application/json' \
--data '{
"model": "foodie_friday_llama2",
"prompt":"What are chocolates?"
}'
```
## NGROK
ngrok is a tool that allows you to expose a local server or application running on your machine to the internet. It creates a secure tunnel from a public URL to your local machine, enabling you to access your local development environment from anywhere.

### Convert Local Server to Public URL
- Run Model
```terminal
ollama run foodie_friday_llama2
```
- Convert To Public URL
```terminal
ngrok http 11434 --host-header="localhost:11434"
```

### Running As API Service (Public URL)
```curl
curl --location 'https://defc-182-48-225-219.ngrok-free.app/api/generate' \
--header 'Content-Type: application/json' \
--data '{
"model": "foodie_friday_llama2",
"prompt":"What are chocolates?"
}'
```
## UI Inspiration (Messenger Dashboard Web App : By Golo : Dribble)

## Creating UI in SwiftUI / Flutter
- I chose Flutter for Hybrid Development
- Architecture Used : GetX
- Loader - Spinkit
