Skip to content

Commit 6764aa7

Browse files
committed
fix cuc
1 parent 0b726b6 commit 6764aa7

File tree

3 files changed

+19
-6
lines changed

3 files changed

+19
-6
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ RUN pip install --no-cache-dir -r requirements.txt
1515

1616
# Copy the main application and supporting modules
1717
COPY main.py .
18+
COPY chat.py .
19+
COPY rag.py .
20+
COPY file_readers.py .
1821
COPY cli_handler_simple.py .
1922
COPY shared_state.py .
2023
COPY web_server.py .

README.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ Want to level up? Add `--rag-dir` and the system scans your document directory,
8484
Before you start this beautiful chaos, you need to get your ducks in a fucking row:
8585

8686
### 🦙 **OLLAMA SERVER RUNNING**
87+
8788
This beast needs Ollama serving the API somewhere (default: `localhost:11434`):
8889

8990
```bash
@@ -98,6 +99,7 @@ curl http://localhost:11434/api/tags
9899
```
99100

100101
### 🧠 **DOWNLOAD THE FUCKING MODELS**
102+
101103
You need at least these models for the default setup:
102104

103105
```bash
@@ -112,6 +114,7 @@ ollama list
112114
```
113115

114116
### 🌐 **CUSTOM MODELS** (Optional)
117+
115118
Want different models? Pull whatever you want and use `--model` parameter:
116119

117120
```bash
@@ -125,6 +128,7 @@ ollama-chat-party --model llama3.2:3b
125128
```
126129

127130
### 🐳 **DOCKER** (For the Easy Install)
131+
128132
If you're using the Docker method, you need Docker installed:
129133

130134
```bash
@@ -251,13 +255,13 @@ Deploy this bad boy on your local network and watch the magic happen:
251255

252256
```bash
253257
# Listen on all interfaces with default port
254-
./ollama-chat-party --listen 0.0.0.0:8000 --rag-dir ~/shared-docs
258+
ollama-chat-party --listen 0.0.0.0:8000 --rag-dir ~/shared-docs
255259

256260
# Custom port for your network party! 🎉
257-
./ollama-chat-party --listen 0.0.0.0:9000
261+
ollama-chat-party --listen 0.0.0.0:9000
258262

259263
# Specific IP for maximum control
260-
./ollama-chat-party --listen 192.168.1.100:8080
264+
ollama-chat-party --listen 192.168.1.100:8080
261265

262266
# Now EVERYONE on your network can access:
263267
# http://YOUR_IP:PORT (whatever you set!)
@@ -303,7 +307,7 @@ This beast devours:
303307

304308
```bash
305309
# Load research papers
306-
./ollama-chat-party --rag-dir ~/research-papers --model llama3.2:70b
310+
ollama-chat-party --rag-dir ~/research-papers --model llama3.2:70b
307311

308312
# Now your whole team can:
309313
# - Ask questions about papers from CLI/web
@@ -328,10 +332,10 @@ python main.py --rag-dir ~/hacker-docs --system-prompt "You are a cybersecurity
328332

329333
```bash
330334
# Basic party chat with AI dungeon master
331-
./ollama-chat-party --name "DungeonMaster" --system-prompt "You are a creative D&D dungeon master"
335+
ollama-chat-party --name "DungeonMaster" --system-prompt "You are a creative D&D dungeon master"
332336

333337
# OR load up game docs for lore-accurate responses
334-
./ollama-chat-party --rag-dir ~/game-wikis --name "DungeonMaster"
338+
ollama-chat-party --rag-dir ~/game-wikis --name "DungeonMaster"
335339

336340
# Players can chat from browsers, DM from terminal
337341
```

ollama-chat-party

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ while [[ $# -gt 0 ]]; do
2727
echo "Error: --rag-dir requires a directory path"
2828
exit 1
2929
fi
30+
# Strip trailing slashes/backslashes
31+
DOCUMENTS_PATH="${DOCUMENTS_PATH%/}"
32+
DOCUMENTS_PATH="${DOCUMENTS_PATH%\\}"
3033
if [ ! -d "$DOCUMENTS_PATH" ]; then
3134
echo "Error: RAG directory does not exist: $DOCUMENTS_PATH"
3235
exit 1
@@ -43,6 +46,9 @@ while [[ $# -gt 0 ]]; do
4346
exit 1
4447
fi
4548
DOCUMENTS_PATH="$2"
49+
# Strip trailing slashes/backslashes
50+
DOCUMENTS_PATH="${DOCUMENTS_PATH%/}"
51+
DOCUMENTS_PATH="${DOCUMENTS_PATH%\\}"
4652
if [ ! -d "$DOCUMENTS_PATH" ]; then
4753
echo "Error: RAG directory does not exist: $DOCUMENTS_PATH"
4854
exit 1

0 commit comments

Comments
 (0)