File size: 1,167 Bytes
6ca2339
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
49
---
title: StackLogix Chatbot
emoji: 🤖
colorFrom: purple
colorTo: blue
sdk: docker
app_port: 7860
pinned: false
---

# StackLogix Intelligent Chatbot

An AI-powered chatbot for StackLogix jewellery software, built with FastAPI + LangGraph + Qdrant + Groq.

## How to Run Locally

### 1. Navigating to the Project Root
Make sure you are in the project root directory, not inside the `app` folder.

```bash
cd c:\Users\jashd\Desktop\web_chatbot
```

### 2. Install Dependencies
```bash
pip install -r requirements.txt
```

### 3. Start the Server
Run this command from the project root:

```bash
python -m uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload
```

Then open http://localhost:8000 in your browser.

## API Endpoints

| Method | Endpoint | Description |
|--------|----------|-------------|
| `POST` | `/chat/stream` | Streaming chat (SSE) |
| `POST` | `/chat` | Non-streaming chat (JSON) |
| `GET`  | `/chats` | List all chat sessions |
| `GET`  | `/chats/{session_id}` | Get history for a specific session |
| `POST` | `/ingest` | Trigger document ingestion |
| `GET`  | `/health` | Health check |
| `GET`  | `/docs` | Swagger API documentation |