You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Chat applications powered by Databricks' model serving endpoints. This project provides a foundation for creating interactive chat interfaces that leverage Databricks' powerful AI framework and model serving infrastructure.
10
+
Chat applications powered by your Databricks Knowledge Assistant
11
11
12
12
## Features
13
13
14
14
- 🚀 Real-time chat interface
15
15
- 💾 Chat history persistence
16
16
- 🔄 Message regeneration capability
17
17
- ⚡ Streaming responses
18
-
- 🔒 Secure authentication
18
+
- 🔒 On-behalf-of-user authentication
19
19
- 🎯 Rate limiting and error handling
20
20
21
21
## Architecture
22
22
23
23
The application is built with:
24
24
- FastAPI for the backend API
25
25
- SQLite for chat history storage
26
-
-Async/await patterns for efficient request handling
27
-
- Dependency injection for clean code organization
26
+
-React frontend
27
+
28
28
29
29
## Getting Started
30
30
31
31
1. Clone the repository
32
-
2. Install dependencies:
33
-
```bash
34
-
pip install -r requirements.txt
35
-
```
36
-
37
-
3. Building the Frontend
32
+
2. Create an .env file with the following:
33
+
-`LOCAL_API_TOKEN`: your PAT used only for local development
34
+
-`DATABRICKS_HOST`: your Databricks domain url (e.g. "[email protected]")
35
+
-`SERVING_ENDPOINT_NAME`: your Knowledge Assistant's serving endpoint (e.g "ka-123-endpoint")
38
36
39
-
[1]. Navigate to the frontend directory:
37
+
3. Install dependencies:
38
+
```bash
39
+
pip install -r requirements.txt
40
+
```
40
41
41
-
```bash
42
-
cd frontend
43
-
```
42
+
4. Build the frontend
44
43
45
-
[2]. Install dependencies:
44
+
[1]. Navigate to the frontend directory:
46
45
47
-
```bash
48
-
npm install
49
-
```
46
+
```bash
47
+
cd frontend
48
+
```
50
49
51
-
[3]. Build the production version:
50
+
[2]. Install dependencies:
52
51
53
-
```bash
54
-
npm run build
55
-
```
52
+
```bash
53
+
npm install
54
+
```
55
+
[3a]. Generate a local build:
56
56
57
-
4. Run the application:
58
-
```bash
59
-
python main.py
60
-
```
57
+
```bash
58
+
npm run build
59
+
```
61
60
62
-
## Example Interface
61
+
[3b]. Generate a production build for app deployment:
0 commit comments