Skip to content

Commit 9e6d65f

Browse files
authored
Update Readme.md
1 parent e3ae216 commit 9e6d65f

File tree

1 file changed

+62
-4
lines changed

1 file changed

+62
-4
lines changed

crm/Readme.md

Lines changed: 62 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,75 @@ In order to utilize this app please get your access api key from https://maas.ap
88
## Prerequisites
99
- An API key for the Desired Hosted GenAI Model from Model as a Server Backend
1010

11-
## Open your web browser and navigate to:
11+
## Create your Service & Route Definitions
1212

1313
```bash
14-
http://localhost:15000
14+
kind: Service
15+
apiVersion: v1
16+
metadata:
17+
name: service-crm
18+
namespace: tme-aix
19+
spec:
20+
ports:
21+
- protocol: TCP
22+
port: 15000
23+
targetPort: 15000
24+
selector:
25+
statefulset: tme-aix-wb01 <-- This is your RHOAI WEB Name
1526
```
1627

28+
```bash
29+
kind: Route
30+
apiVersion: route.openshift.io/v1
31+
metadata:
32+
name: route-crm
33+
namespace: tme-aix
34+
spec:
35+
path: /
36+
to:
37+
kind: Service
38+
name: service-crm
39+
weight: 100
40+
port:
41+
targetPort: 15000
42+
wildcardPolicy: None
43+
```
44+
45+
## Run the app
46+
```bash
47+
app-root) cd Telco-AIX/
48+
(app-root) cd crm/
49+
(app-root) python customer-voicebot.py
50+
2025-06-05 17:26:50,351 - __main__ - INFO - ==================================================
51+
2025-06-05 17:26:50,351 - __main__ - INFO - Starting Telco CRM VoiceBot - Anti-Simulation Version
52+
2025-06-05 17:26:50,352 - __main__ - INFO - Current time: 2025-06-05 17:26:50
53+
2025-06-05 17:26:50,352 - __main__ - INFO - API URL: http://fnr-tst-tme-aix.apps.sandbox01.narlabs.io/v1/completions
54+
2025-06-05 17:26:50,352 - __main__ - INFO - Static directory: /opt/app-root/src/Telco-AIX/crm/static
55+
2025-06-05 17:26:50,352 - __main__ - INFO - Max context length: 8000 tokens
56+
2025-06-05 17:26:50,352 - __main__ - INFO - Testing API connection...
57+
2025-06-05 17:26:50,352 - __main__ - INFO - Testing connection to: http://fnr-tst-tme-aix.apps.sandbox01.narlabs.io/v1/completions
58+
2025-06-05 17:26:50,736 - __main__ - INFO - Status Code: 200
59+
2025-06-05 17:26:50,737 - __main__ - INFO - Response Headers: {'date': 'Thu, 05 Jun 2025 17:26:49 GMT', 'server': 'uvicorn', 'content-length': '545', 'content-type': 'application/json', 'set-cookie': '9d86516ca3a9a948f57e86e428a097bf=e1d1d7e11ceaefc8998617a9fe4a1669; path=/; HttpOnly'}
60+
2025-06-05 17:26:50,737 - __main__ - INFO - Response Content: {"id":"cmpl-d21ac79f2f9e4f9a8ced051aaeba883d","object":"text_completion","created":1749144410,"model":"mistral-7b-instruct-v03-quantizedw4a16-150","choices":[{"index":0,"text":"\n\nNew to GigSalad\n\nDo you have a band that you'd like to book for an upcoming event? Look no further! The Troublemakers are a dynamic, professional and fun 4-piece band that bring","logprobs":null,"finish_reason":"length","stop_reason":null,"prompt_logprobs":null}],"usage":{"prompt_tokens":7,"total_tokens":57,"complet...
61+
2025-06-05 17:26:50,737 - __main__ - INFO - JSON Response parsed successfully
62+
2025-06-05 17:26:50,737 - __main__ - INFO - API connection test successful!
63+
2025-06-05 17:26:51,461 - __main__ - INFO - Speech saved to /opt/app-root/src/Telco-AIX/crm/static/welcome.mp3
64+
2025-06-05 17:26:51,461 - __main__ - INFO - Starting Flask development server...
65+
* Serving Flask app 'customer-voicebot'
66+
* Debug mode: off
67+
2025-06-05 17:26:51,464 - werkzeug - INFO - WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
68+
* Running on all addresses (0.0.0.0)
69+
* Running on http://127.0.0.1:15000
70+
* Running on http://10.128.1.204:15000
71+
2025-06-05 17:26:51,464 - werkzeug - INFO - Press CTRL+C to quit
72+
```
73+
74+
## Go to Browser and Enjoy The Show! :-)
1775
<div align="center">
18-
<img src="https://github.com/tme-osx/TME-AIX/blob/main/crm/maas-crm2.png"/>
76+
<img src="https://github.com/tme-osx/TME-AIX/blob/main/crm/maas-crm3.png"/>
1977
</div>
2078
21-
## OCP Deployment
79+
## OCP Deployment (No RHOAI-WorkBench Business)
2280
- Build the container image (see Dockerfile here) and push to your image repo <br>
2381
- Edit Deployment.yaml (included here) to have proper image urls and API_Key inside -> just simply;
2482

0 commit comments

Comments
 (0)