-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathragix_app.py
More file actions
903 lines (725 loc) Β· 29.4 KB
/
ragix_app.py
File metadata and controls
903 lines (725 loc) Β· 29.4 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
"""
RAGIX Web Interface - Streamlit Application
============================================
A sovereign, local-first web interface for RAGIX.
All processing happens locally - no data leaves your machine.
Author: Olivier Vitrac, PhD, HDR | [email protected] | Adservio | 2025-11-26
Usage:
streamlit run ragix_app.py
Or via launcher:
./launch_ragix.sh gui
"""
import streamlit as st
import requests
import json
import time
import subprocess
from pathlib import Path
from typing import Optional, Dict, List, Any
from datetime import datetime
# Import version from centralized source
try:
from ragix_core.version import __version__ as RAGIX_VERSION
except ImportError:
RAGIX_VERSION = "0.55.0" # Fallback
# =============================================================================
# Page Configuration
# =============================================================================
st.set_page_config(
page_title=f"RAGIX v{RAGIX_VERSION}",
page_icon="π",
layout="wide",
initial_sidebar_state="expanded",
)
# =============================================================================
# Custom CSS
# =============================================================================
st.markdown("""
<style>
/* Main theme */
.stApp {
background-color: #0e1117;
}
/* Sovereignty badge */
.sovereign-badge {
background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
color: white;
padding: 5px 15px;
border-radius: 20px;
font-weight: bold;
display: inline-block;
margin: 5px 0;
}
.cloud-badge {
background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
color: white;
padding: 5px 15px;
border-radius: 20px;
font-weight: bold;
display: inline-block;
margin: 5px 0;
}
/* Status indicators */
.status-ok { color: #00b894; }
.status-warn { color: #fdcb6e; }
.status-error { color: #e74c3c; }
/* Cards */
.metric-card {
background: #1e2530;
border-radius: 10px;
padding: 15px;
margin: 5px 0;
}
/* Model list */
.model-item {
background: #1e2530;
border-radius: 8px;
padding: 10px 15px;
margin: 5px 0;
border-left: 3px solid #00b894;
}
</style>
""", unsafe_allow_html=True)
# =============================================================================
# Helper Functions
# =============================================================================
@st.cache_data(ttl=30)
def check_ollama_status() -> Dict[str, Any]:
"""Check Ollama status and available models."""
try:
response = requests.get("http://localhost:11434/api/tags", timeout=5)
if response.status_code == 200:
data = response.json()
models = data.get("models", [])
return {
"running": True,
"models": models,
"model_count": len(models),
}
except Exception as e:
pass
return {
"running": False,
"models": [],
"model_count": 0,
"error": "Ollama not running",
}
def query_ollama(model: str, prompt: str, system: str = "") -> Dict[str, Any]:
"""Send a query to Ollama."""
try:
start_time = time.perf_counter()
payload = {
"model": model,
"messages": [
{"role": "system", "content": system} if system else None,
{"role": "user", "content": prompt},
],
"stream": False,
}
# Remove None messages
payload["messages"] = [m for m in payload["messages"] if m]
response = requests.post(
"http://localhost:11434/api/chat",
json=payload,
timeout=120,
)
elapsed = time.perf_counter() - start_time
if response.status_code == 200:
data = response.json()
return {
"success": True,
"response": data["message"]["content"],
"time": elapsed,
"model": model,
}
else:
return {
"success": False,
"error": f"HTTP {response.status_code}",
"time": elapsed,
}
except Exception as e:
return {
"success": False,
"error": str(e),
"time": 0,
}
def format_size(size_bytes: int) -> str:
"""Format byte size to human readable."""
for unit in ["B", "KB", "MB", "GB", "TB"]:
if size_bytes < 1024:
return f"{size_bytes:.1f} {unit}"
size_bytes /= 1024
return f"{size_bytes:.1f} PB"
# =============================================================================
# Sidebar
# =============================================================================
with st.sidebar:
st.markdown("# π RAGIX")
st.markdown(f"**v{RAGIX_VERSION}** β Sovereign AI Assistant")
st.markdown("---")
# Navigation
page = st.radio(
"Navigate",
["π Dashboard", "π Search", "π€ Chat", "βοΈ Workflows", "π Logs", "π Monitor", "βΉοΈ About"],
label_visibility="collapsed",
)
st.markdown("---")
# Quick status
ollama_status = check_ollama_status()
if ollama_status["running"]:
st.markdown('<span class="sovereign-badge">π’ SOVEREIGN</span>', unsafe_allow_html=True)
st.caption(f"{ollama_status['model_count']} models available")
else:
st.markdown('<span class="cloud-badge">β οΈ OLLAMA OFFLINE</span>', unsafe_allow_html=True)
st.caption("Start with: `ollama serve`")
st.markdown("---")
st.caption("Β© 2025 Adservio Innovation Lab")
st.caption("All processing is local.")
# =============================================================================
# Dashboard Page
# =============================================================================
if page == "π Dashboard":
st.title("π RAGIX Dashboard")
st.markdown("*Retrieval-Augmented Generative Interactive eXecution Agent*")
st.markdown("---")
# Sovereignty banner
col1, col2, col3 = st.columns([1, 2, 1])
with col2:
st.markdown("""
<div style="text-align: center; padding: 20px; background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); border-radius: 15px; margin: 20px 0;">
<h2 style="color: white; margin: 0;">π 100% Sovereign</h2>
<p style="color: #a8d8ea; margin: 10px 0 0 0;">All data stays on your machine. No cloud dependencies.</p>
</div>
""", unsafe_allow_html=True)
st.markdown("---")
# Status cards
col1, col2, col3, col4 = st.columns(4)
with col1:
st.metric(
"Ollama Status",
"Online" if ollama_status["running"] else "Offline",
delta="Ready" if ollama_status["running"] else "Start required",
)
with col2:
st.metric(
"Models Available",
ollama_status["model_count"],
delta="Local" if ollama_status["model_count"] > 0 else None,
)
with col3:
# Check for ragix_core
try:
from ragix_core import __version__
ragix_ok = True
except ImportError:
ragix_ok = False
__version__ = "N/A"
st.metric(
"RAGIX Core",
__version__ if ragix_ok else "Not installed",
delta="Ready" if ragix_ok else "pip install -e .",
)
with col4:
st.metric(
"Search Index",
"Available",
delta="BM25 + Vector",
)
st.markdown("---")
# Available Models
st.subheader("π’ Available Models (Sovereign)")
if ollama_status["running"] and ollama_status["models"]:
cols = st.columns(3)
for i, model in enumerate(ollama_status["models"]):
with cols[i % 3]:
size = format_size(model.get("size", 0))
st.markdown(f"""
<div class="model-item">
<strong>{model['name']}</strong><br/>
<small>{size}</small>
</div>
""", unsafe_allow_html=True)
else:
st.warning("No models found. Install with: `ollama pull mistral`")
st.markdown("---")
# Quick Actions
st.subheader("π Quick Actions")
col1, col2, col3 = st.columns(3)
with col1:
if st.button("π Try Search", use_container_width=True):
st.session_state["page"] = "search"
st.rerun()
with col2:
if st.button("π€ Chat with LLM", use_container_width=True):
st.session_state["page"] = "chat"
st.rerun()
with col3:
if st.button("π View Workflows", use_container_width=True):
st.session_state["page"] = "workflows"
st.rerun()
# =============================================================================
# Search Page
# =============================================================================
elif page == "π Search":
st.title("π Hybrid Search")
st.markdown("*BM25 keyword search + Vector semantic search*")
st.markdown("---")
# Search input
query = st.text_input(
"Search Query",
placeholder="Enter your search query...",
help="Supports code-aware tokenization (camelCase, snake_case)",
)
col1, col2, col3 = st.columns(3)
with col1:
search_type = st.selectbox(
"Search Type",
["Hybrid (BM25 + Vector)", "BM25 Only", "Vector Only"],
)
with col2:
top_k = st.slider("Results", 5, 50, 10)
with col3:
fusion = st.selectbox(
"Fusion Strategy",
["RRF (Reciprocal Rank)", "Weighted", "Interleave"],
)
if st.button("π Search", type="primary", use_container_width=True):
if query:
with st.spinner("Searching..."):
# Demo search results (in real app, would use ragix_core)
st.success(f"Found results for: **{query}**")
# Sample results
st.markdown("### Results")
for i in range(min(5, top_k)):
with st.expander(f"Result {i+1}: example_file_{i}.py"):
st.code(f"""
def example_function_{i}():
\"\"\"Example matching '{query}'\"\"\"
# This is a sample result
return True
""", language="python")
st.caption(f"Score: {0.95 - i*0.1:.2f} | Line: {10+i*5}")
else:
st.warning("Please enter a search query.")
# =============================================================================
# Chat Page
# =============================================================================
elif page == "π€ Chat":
st.title("π€ Chat with Local LLM")
st.markdown("*Sovereign conversation - all data stays local*")
st.markdown("---")
# Model selection
if ollama_status["running"] and ollama_status["models"]:
model_names = [m["name"] for m in ollama_status["models"]]
col1, col2 = st.columns([2, 1])
with col1:
selected_model = st.selectbox(
"Select Model",
model_names,
help="All models run 100% locally (sovereign)",
)
with col2:
st.markdown('<span class="sovereign-badge">π’ LOCAL</span>', unsafe_allow_html=True)
st.markdown("---")
# System prompt
system_prompt = st.text_area(
"System Prompt (optional)",
value="You are a helpful coding assistant. Be concise and precise.",
height=80,
)
# Chat input
user_input = st.text_area(
"Your Message",
placeholder="Ask me anything...",
height=100,
)
col1, col2 = st.columns([1, 4])
with col1:
send_button = st.button("π€ Send", type="primary", use_container_width=True)
if send_button and user_input:
with st.spinner(f"Thinking with {selected_model}..."):
result = query_ollama(selected_model, user_input, system_prompt)
if result["success"]:
st.markdown("### Response")
st.markdown(result["response"])
st.caption(f"β±οΈ {result['time']:.2f}s | π’ Sovereign (local)")
else:
st.error(f"Error: {result.get('error', 'Unknown error')}")
else:
st.warning("Ollama is not running. Start with: `ollama serve`")
st.info("Then install a model: `ollama pull mistral`")
# =============================================================================
# Workflows Page
# =============================================================================
elif page == "βοΈ Workflows":
st.title("βοΈ Workflow Templates")
st.markdown("*Pre-built multi-agent workflows for common tasks*")
st.markdown("---")
# Workflow templates
workflows = {
"bug_fix": {
"name": "π Bug Fix",
"description": "Locate, diagnose, fix, and test bugs",
"steps": ["Locate bug", "Diagnose root cause", "Apply fix", "Run tests", "Review"],
},
"feature_addition": {
"name": "β¨ Feature Addition",
"description": "Design, implement, test, and document new features",
"steps": ["Design", "Implement", "Write tests", "Document", "Review"],
},
"code_review": {
"name": "π Code Review",
"description": "Quality and security review of code",
"steps": ["Quality check", "Security scan", "Best practices", "Report"],
},
"refactoring": {
"name": "π§ Refactoring",
"description": "Analyze, plan, refactor, and verify code improvements",
"steps": ["Analyze", "Plan refactor", "Apply changes", "Verify", "Test"],
},
"documentation": {
"name": "π Documentation",
"description": "Analyze code and generate documentation",
"steps": ["Analyze code", "Extract API", "Generate docs", "Review"],
},
"security_audit": {
"name": "π Security Audit",
"description": "Static analysis and dependency security checks",
"steps": ["SAST scan", "Dependency check", "Code review", "Report"],
},
"test_coverage": {
"name": "π§ͺ Test Coverage",
"description": "Analyze and improve test coverage",
"steps": ["Measure coverage", "Identify gaps", "Generate tests", "Verify"],
},
"exploration": {
"name": "πΊοΈ Codebase Exploration",
"description": "Explore and understand codebase structure",
"steps": ["Map structure", "Analyze dependencies", "Document patterns", "Report"],
},
}
# Display workflows
cols = st.columns(2)
for i, (key, workflow) in enumerate(workflows.items()):
with cols[i % 2]:
with st.container():
st.markdown(f"### {workflow['name']}")
st.markdown(workflow["description"])
# Steps visualization
st.markdown("**Steps:**")
step_cols = st.columns(len(workflow["steps"]))
for j, step in enumerate(workflow["steps"]):
with step_cols[j]:
st.markdown(f"<div style='text-align:center; padding:5px; background:#1e2530; border-radius:5px; font-size:12px;'>{j+1}. {step}</div>", unsafe_allow_html=True)
if st.button(f"Run {workflow['name']}", key=f"run_{key}"):
st.info(f"Workflow '{key}' would be executed here via ragix_core")
st.markdown("---")
# =============================================================================
# Logs Page
# =============================================================================
elif page == "π Logs":
st.title("π Audit Logs")
st.markdown("*Command history and integrity verification*")
st.markdown("---")
# Log configuration
log_dir = Path(".agent_logs")
log_file = log_dir / "commands.log"
hash_file = log_dir / "commands.log.sha256"
# Log stats
col1, col2, col3, col4 = st.columns(4)
with col1:
if log_file.exists():
size_kb = log_file.stat().st_size / 1024
st.metric("Log Size", f"{size_kb:.1f} KB")
else:
st.metric("Log Size", "No logs")
with col2:
if log_file.exists():
with open(log_file, 'r') as f:
entry_count = sum(1 for _ in f)
st.metric("Entries", entry_count)
else:
st.metric("Entries", 0)
with col3:
if hash_file.exists():
st.metric("Integrity", "π Hashed", delta="SHA256")
else:
st.metric("Integrity", "β οΈ No hash")
with col4:
if log_file.exists():
mtime = datetime.fromtimestamp(log_file.stat().st_mtime)
st.metric("Last Update", mtime.strftime("%H:%M:%S"))
else:
st.metric("Last Update", "N/A")
st.markdown("---")
# Tabs for different views
tab1, tab2, tab3 = st.tabs(["π Recent Entries", "π Search Logs", "β
Verify Integrity"])
with tab1:
st.subheader("Recent Log Entries")
num_entries = st.slider("Number of entries to show", 10, 200, 50)
if log_file.exists():
try:
with open(log_file, 'r') as f:
lines = f.readlines()
recent = lines[-num_entries:] if len(lines) > num_entries else lines
# Display in reverse order (most recent first)
for i, line in enumerate(reversed(recent)):
line = line.strip()
if not line:
continue
# Color code by type
if "CMD:" in line:
icon = "β‘"
color = "#00b894"
elif "EDIT:" in line:
icon = "βοΈ"
color = "#0984e3"
elif "EVENT:" in line:
icon = "π’"
color = "#fdcb6e"
elif "ERROR" in line or "RC: 1" in line:
icon = "β"
color = "#e74c3c"
else:
icon = "π"
color = "#636e72"
st.markdown(
f"<div style='padding:8px; margin:4px 0; background:#1e2530; "
f"border-left:3px solid {color}; border-radius:4px; font-family:monospace; font-size:12px;'>"
f"{icon} {line}</div>",
unsafe_allow_html=True
)
except Exception as e:
st.error(f"Failed to read logs: {e}")
else:
st.info("No log file found. Logs will appear here after running commands.")
with tab2:
st.subheader("Search Logs")
search_query = st.text_input("Search pattern", placeholder="Enter search term...")
search_type = st.radio("Filter by", ["All", "Commands", "Edits", "Events", "Errors"], horizontal=True)
if st.button("π Search") and search_query and log_file.exists():
with open(log_file, 'r') as f:
lines = f.readlines()
results = []
for line in lines:
# Apply type filter
if search_type == "Commands" and "CMD:" not in line:
continue
if search_type == "Edits" and "EDIT:" not in line:
continue
if search_type == "Events" and "EVENT:" not in line:
continue
if search_type == "Errors" and "ERROR" not in line and "RC: 1" not in line:
continue
# Apply search query
if search_query.lower() in line.lower():
results.append(line.strip())
st.markdown(f"**Found {len(results)} matches:**")
for line in results[-100:]: # Show max 100 results
st.code(line, language=None)
with tab3:
st.subheader("Integrity Verification")
st.markdown("""
Log integrity verification uses SHA256 chained hashing to detect tampering.
Each log entry's hash includes the previous entry's hash, creating a tamper-evident chain.
""")
if st.button("π Verify Log Integrity", type="primary"):
if hash_file.exists():
try:
# Simple verification
with open(hash_file, 'r') as f:
entries = [json.loads(line) for line in f if line.strip()]
if entries:
st.success(f"β
Hash chain contains {len(entries)} entries")
# Show chain info
col1, col2 = st.columns(2)
with col1:
st.markdown("**First Entry:**")
st.json({
"sequence": entries[0].get("sequence"),
"timestamp": entries[0].get("timestamp"),
"hash": entries[0].get("hash", "")[:32] + "...",
})
with col2:
st.markdown("**Latest Entry:**")
st.json({
"sequence": entries[-1].get("sequence"),
"timestamp": entries[-1].get("timestamp"),
"hash": entries[-1].get("hash", "")[:32] + "...",
})
# Verify chain
genesis = "0" * 64
prev_hash = genesis
valid = True
invalid_entry = None
for i, entry in enumerate(entries):
if entry.get("prev_hash") != prev_hash:
valid = False
invalid_entry = i + 1
break
prev_hash = entry.get("hash", "")
if valid:
st.success("β
Chain integrity verified - no tampering detected")
else:
st.error(f"β Chain broken at entry {invalid_entry}")
else:
st.warning("Hash file is empty")
except json.JSONDecodeError as e:
st.error(f"Invalid hash file format: {e}")
except Exception as e:
st.error(f"Verification failed: {e}")
else:
st.warning("No hash file found. Enable log hashing in ragix.yaml")
st.markdown("---")
# Export options
st.subheader("Export Logs")
col1, col2 = st.columns(2)
with col1:
if st.button("π₯ Download Log File") and log_file.exists():
with open(log_file, 'r') as f:
log_content = f.read()
st.download_button(
"Download commands.log",
log_content,
file_name="commands.log",
mime="text/plain"
)
with col2:
if st.button("π₯ Download Hash File") and hash_file.exists():
with open(hash_file, 'r') as f:
hash_content = f.read()
st.download_button(
"Download commands.log.sha256",
hash_content,
file_name="commands.log.sha256",
mime="application/json"
)
# =============================================================================
# Monitor Page
# =============================================================================
elif page == "π Monitor":
st.title("π System Monitor")
st.markdown("*Health checks and performance metrics*")
st.markdown("---")
# Health checks
st.subheader("Health Status")
col1, col2, col3, col4 = st.columns(4)
with col1:
status = "β
" if ollama_status["running"] else "β"
st.markdown(f"""
<div class="metric-card">
<h3>{status} Ollama</h3>
<p>{"Running" if ollama_status["running"] else "Offline"}</p>
</div>
""", unsafe_allow_html=True)
with col2:
st.markdown("""
<div class="metric-card">
<h3>β
ragix_core</h3>
<p>Loaded</p>
</div>
""", unsafe_allow_html=True)
with col3:
st.markdown("""
<div class="metric-card">
<h3>β
Search Index</h3>
<p>Ready</p>
</div>
""", unsafe_allow_html=True)
with col4:
st.markdown("""
<div class="metric-card">
<h3>π’ Sovereign</h3>
<p>100% Local</p>
</div>
""", unsafe_allow_html=True)
st.markdown("---")
# System info
st.subheader("System Information")
col1, col2 = st.columns(2)
with col1:
st.markdown("**Environment**")
st.json({
"Python": "3.11+",
"Streamlit": st.__version__,
"Platform": "Linux",
})
with col2:
st.markdown("**Ollama Models**")
if ollama_status["running"]:
model_info = {m["name"]: format_size(m.get("size", 0)) for m in ollama_status["models"][:5]}
st.json(model_info)
else:
st.warning("Ollama not running")
st.markdown("---")
# Refresh button
if st.button("π Refresh Status"):
st.cache_data.clear()
st.rerun()
# =============================================================================
# About Page
# =============================================================================
elif page == "βΉοΈ About":
st.title("βΉοΈ About RAGIX")
st.markdown(f"""
## RAGIX v{RAGIX_VERSION}
**Retrieval-Augmented Generative Interactive eXecution Agent**
RAGIX is a sovereign, local-first development assistant that combines:
- **Unix-RAG Patterns**: Use classic Unix tools (grep, find, awk) for context retrieval
- **Local LLMs**: Powered by Ollama (Mistral, Granite, DeepSeek, etc.)
- **Hybrid Search**: BM25 keyword + Vector semantic search
- **Multi-Agent Workflows**: Pre-built templates for common tasks
- **MCP Integration**: Works with Claude Desktop and Claude Code
---
### π Sovereignty Guarantee
All processing happens **100% locally**:
- β
No data sent to cloud APIs
- β
No external dependencies required
- β
Full control over your code and data
- β
Works completely offline
---
### ποΈ Architecture
```
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β RAGIX GUI β
β (Streamlit) β
βββββββββββββββββββββββ¬ββββββββββββββββββββββββββββ
β
βββββββββββββββββββββββΌββββββββββββββββββββββββββββ
β ragix_core β
β βββββββββββ ββββββββββββ βββββββββββββββββ β
β β Search β β Workflow β β LLM Backend β β
β β Engine β β Executor β β (Ollama) β β
β ββββββ¬βββββ ββββββ¬ββββββ βββββββββ¬ββββββββ β
β β β β β
β ββββββΌβββββββββββββΌβββββββββββββββββΌβββββ β
β β Unix-RAG Tools β β
β β grep | find | awk | sed | etc. β β
β βββββββββββββββββββββββββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββ
```
---
### π Resources
- **GitHub**: [github.com/ovitrac/RAGIX](https://github.com/ovitrac/RAGIX)
- **Documentation**: See README.md
- **MCP Integration**: See MCP/README.md
---
### π€ Author
**Olivier Vitrac, PhD, HDR**
Head of Innovation Lab, Adservio
---
*Β© 2025 Adservio Innovation Lab. All rights reserved.*
""")
# =============================================================================
# Footer
# =============================================================================
st.markdown("---")
st.markdown(
f"<div style='text-align: center; color: #666;'>"
f"π RAGIX v{RAGIX_VERSION} | π’ Sovereign | π 100% Local | "
f"<a href='https://github.com/ovitrac/RAGIX'>GitHub</a>"
f"</div>",
unsafe_allow_html=True,
)