Spaces:
Running
Running
Upload index.html with huggingface_hub
Browse files- index.html +48 -99
index.html
CHANGED
|
@@ -7,128 +7,77 @@
|
|
| 7 |
<style>
|
| 8 |
* { margin: 0; padding: 0; box-sizing: border-box; }
|
| 9 |
body {
|
| 10 |
-
font-family:
|
| 11 |
-
line-height: 1.6;
|
| 12 |
-
color: #1a1a2e;
|
| 13 |
-
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
| 14 |
min-height: 100vh;
|
| 15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
}
|
| 17 |
.container {
|
| 18 |
-
max-width:
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
|
|
|
| 24 |
}
|
| 25 |
h1 {
|
| 26 |
-
font-size:
|
| 27 |
-
|
| 28 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
}
|
| 30 |
-
|
| 31 |
-
|
|
|
|
| 32 |
font-size: 1.1rem;
|
|
|
|
| 33 |
margin-bottom: 2rem;
|
| 34 |
}
|
| 35 |
-
|
| 36 |
-
color: #764ba2;
|
| 37 |
-
margin: 2rem 0 1rem;
|
| 38 |
-
font-size: 1.5rem;
|
| 39 |
-
}
|
| 40 |
-
.problem-box {
|
| 41 |
-
background: #f8f9fa;
|
| 42 |
-
border-left: 4px solid #764ba2;
|
| 43 |
-
padding: 1.5rem;
|
| 44 |
-
margin: 1.5rem 0;
|
| 45 |
-
border-radius: 0 8px 8px 0;
|
| 46 |
-
font-family: monospace;
|
| 47 |
-
font-size: 0.9rem;
|
| 48 |
-
white-space: pre-wrap;
|
| 49 |
-
}
|
| 50 |
-
.bad { color: #dc3545; }
|
| 51 |
-
.good { color: #28a745; }
|
| 52 |
-
ul {
|
| 53 |
-
list-style: none;
|
| 54 |
-
margin: 1rem 0;
|
| 55 |
-
}
|
| 56 |
-
ul li {
|
| 57 |
-
padding: 0.5rem 0;
|
| 58 |
-
padding-left: 1.5rem;
|
| 59 |
-
position: relative;
|
| 60 |
-
}
|
| 61 |
-
ul li::before {
|
| 62 |
-
content: "→";
|
| 63 |
-
position: absolute;
|
| 64 |
-
left: 0;
|
| 65 |
-
color: #764ba2;
|
| 66 |
-
}
|
| 67 |
-
.links {
|
| 68 |
display: flex;
|
| 69 |
gap: 1rem;
|
| 70 |
-
margin-top: 2rem;
|
| 71 |
flex-wrap: wrap;
|
| 72 |
}
|
| 73 |
-
.
|
| 74 |
-
|
| 75 |
-
color: white;
|
| 76 |
-
padding: 0.75rem 1.5rem;
|
| 77 |
border-radius: 8px;
|
| 78 |
text-decoration: none;
|
| 79 |
-
font-weight:
|
| 80 |
-
|
|
|
|
|
|
|
| 81 |
}
|
| 82 |
-
.
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
.links a.secondary {
|
| 87 |
-
background: #f8f9fa;
|
| 88 |
-
color: #1a1a2e;
|
| 89 |
-
border: 2px solid #e9ecef;
|
| 90 |
}
|
| 91 |
-
.
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
font-style: italic;
|
| 96 |
}
|
| 97 |
</style>
|
| 98 |
</head>
|
| 99 |
<body>
|
| 100 |
<div class="container">
|
| 101 |
-
<
|
| 102 |
-
<
|
| 103 |
-
|
| 104 |
-
<
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
<div class="problem-box">
|
| 108 |
-
<strong>Player:</strong> "Where is the secret base?"
|
| 109 |
-
|
| 110 |
-
<span class="bad"><strong>Traditional LLM:</strong> "The secret base is in the northern mountains..."
|
| 111 |
-
(hallucinated - NPC shouldn't know this)</span>
|
| 112 |
-
|
| 113 |
-
<span class="good"><strong>Loreguard NPC:</strong> "I don't know anything about a secret base."
|
| 114 |
-
(grounded - respects knowledge boundaries)</span>
|
| 115 |
-
</div>
|
| 116 |
-
|
| 117 |
-
<h2>How It Works</h2>
|
| 118 |
-
<ul>
|
| 119 |
-
<li><strong>Fine-tuned LLMs</strong> - LoRA-trained on NPC dialogue with citations</li>
|
| 120 |
-
<li><strong>Multi-pass verification</strong> - RoBERTa NLI checks claims against knowledge</li>
|
| 121 |
-
<li><strong>RAG retrieval</strong> - Semantic search over character's actual knowledge</li>
|
| 122 |
-
<li><strong>Local inference</strong> - Runs on player's hardware via llama.cpp</li>
|
| 123 |
-
</ul>
|
| 124 |
-
|
| 125 |
-
<div class="links">
|
| 126 |
-
<a href="https://beyondlogiclabs.com/loreguard">Website</a>
|
| 127 |
-
<a href="https://huggingface.co/beyond-logic-labs/loreguard-vanilla-gguf" class="secondary">Models</a>
|
| 128 |
-
<a href="https://github.com/beyond-logic-labs" class="secondary">GitHub</a>
|
| 129 |
</div>
|
| 130 |
-
|
| 131 |
-
<p class="footer">Building games where NPCs feel real.</p>
|
| 132 |
</div>
|
| 133 |
</body>
|
| 134 |
</html>
|
|
|
|
| 7 |
<style>
|
| 8 |
* { margin: 0; padding: 0; box-sizing: border-box; }
|
| 9 |
body {
|
| 10 |
+
font-family: 'SF Mono', 'Fira Code', monospace;
|
|
|
|
|
|
|
|
|
|
| 11 |
min-height: 100vh;
|
| 12 |
+
background: linear-gradient(135deg, #e0f7fa 0%, #fce4ec 50%, #fff 100%);
|
| 13 |
+
display: flex;
|
| 14 |
+
align-items: center;
|
| 15 |
+
justify-content: center;
|
| 16 |
+
padding: 3rem;
|
| 17 |
}
|
| 18 |
.container {
|
| 19 |
+
max-width: 700px;
|
| 20 |
+
}
|
| 21 |
+
.label {
|
| 22 |
+
color: #00bcd4;
|
| 23 |
+
font-size: 0.75rem;
|
| 24 |
+
letter-spacing: 0.2em;
|
| 25 |
+
margin-bottom: 1rem;
|
| 26 |
}
|
| 27 |
h1 {
|
| 28 |
+
font-size: 3.5rem;
|
| 29 |
+
font-weight: 800;
|
| 30 |
+
margin-bottom: 1.5rem;
|
| 31 |
+
line-height: 1.1;
|
| 32 |
+
}
|
| 33 |
+
h1 span {
|
| 34 |
+
background: linear-gradient(90deg, #00bcd4, #e91e63);
|
| 35 |
+
-webkit-background-clip: text;
|
| 36 |
+
-webkit-text-fill-color: transparent;
|
| 37 |
+
background-clip: text;
|
| 38 |
}
|
| 39 |
+
p {
|
| 40 |
+
font-family: -apple-system, BlinkMacSystemFont, sans-serif;
|
| 41 |
+
color: #444;
|
| 42 |
font-size: 1.1rem;
|
| 43 |
+
line-height: 1.7;
|
| 44 |
margin-bottom: 2rem;
|
| 45 |
}
|
| 46 |
+
.buttons {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
display: flex;
|
| 48 |
gap: 1rem;
|
|
|
|
| 49 |
flex-wrap: wrap;
|
| 50 |
}
|
| 51 |
+
.btn {
|
| 52 |
+
padding: 0.875rem 1.75rem;
|
|
|
|
|
|
|
| 53 |
border-radius: 8px;
|
| 54 |
text-decoration: none;
|
| 55 |
+
font-weight: 600;
|
| 56 |
+
font-size: 0.85rem;
|
| 57 |
+
letter-spacing: 0.05em;
|
| 58 |
+
transition: transform 0.2s;
|
| 59 |
}
|
| 60 |
+
.btn:hover { transform: translateY(-2px); }
|
| 61 |
+
.btn-primary {
|
| 62 |
+
background: linear-gradient(90deg, #00bcd4, #26c6da);
|
| 63 |
+
color: white;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 64 |
}
|
| 65 |
+
.btn-secondary {
|
| 66 |
+
background: white;
|
| 67 |
+
color: #333;
|
| 68 |
+
border: 1px solid #ddd;
|
|
|
|
| 69 |
}
|
| 70 |
</style>
|
| 71 |
</head>
|
| 72 |
<body>
|
| 73 |
<div class="container">
|
| 74 |
+
<div class="label">> EXPERIMENTAL SOFTWARE LAB</div>
|
| 75 |
+
<h1>Building <span>Beyond</span></h1>
|
| 76 |
+
<p>Fine-tuned LLMs for game NPCs. Knowledge-grounded generation with hallucination prevention via multi-pass verification.</p>
|
| 77 |
+
<div class="buttons">
|
| 78 |
+
<a href="https://beyondlogiclabs.com/loreguard" class="btn btn-primary">EXPLORE LOREGUARD</a>
|
| 79 |
+
<a href="https://github.com/beyond-logic-labs" class="btn btn-secondary">GITHUB</a>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 80 |
</div>
|
|
|
|
|
|
|
| 81 |
</div>
|
| 82 |
</body>
|
| 83 |
</html>
|