File size: 1,437 Bytes
c8c6964
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
license: other
library_name: ollama
tags:
  - haip
  - hotel
  - revenue-management
  - gguf
  - ollama
---

# HAIP AI

`haip-ai` is the optional **local** model for [HAIP](https://github.com/TelivityAI/haip)
(Hotel AI Platform). It produces compact, **grounded** explanations of HAIP's deterministic
agent decisions — it never executes actions and only reasons over the numbers the agents
already computed.

- Runs locally via **Ollama** (GGUF, Q4_K_M)
- Output is strict JSON: `{"rationale": string, "suggestions": string[]}`
- Held-out quality: **100% JSON-valid, 88.8% grounded** (via the exact runtime contract)

## Output contract

```
system: You are HAIP AI, a hotel revenue & operations analyst. ... Respond ONLY with compact
        JSON: {"rationale": string (<=60 words), "suggestions": string[] (0-3 short items)}.
user:   Agent: {agentType}\nDecision: {decisionType}\nNumbers:\n{json}
assistant: {"rationale": "...", "suggestions": ["..."]}
```

## Use with Ollama

```bash
# while this repo is private, configure your HF token first
ollama pull hf.co/telivity/haip-ai

# or download haip-ai.gguf + Modelfile, then:
ollama create haip-ai -f Modelfile
```

Enable in HAIP: `HAIP_AI_ENABLED=true HAIP_AI_MODEL=haip-ai` (opt-in — the PMS works fully without it).

## Attribution

See `THIRD_PARTY_LICENSES` in the [HAIP repo](https://github.com/TelivityAI/haip) for upstream
model attribution and their license terms.