Add model selection and local RAG

This commit is contained in:
seo-amugae committed 2026-08-09 19:57:23 +09:00
1 parent 2b2e5fcb0f
commit bf39c2e070
6 files changed
+369 -32

No files matched your search

+12 -5
View File
@@ -8,24 +8,31 @@
</head>
<body>
<aside class="sidebar">
<button class="new-chat" id="newChat" type="button">+ 새 대화</button>
<button class="new-chat" id="newChat" type="button">+ New chat</button>
<label class="control-label" for="modelSelect">Model</label>
<select id="modelSelect" class="select"></select>
<label class="toggle">
<input id="ragToggle" type="checkbox" checked />
<span>Use RAG</span>
</label>
<button class="secondary" id="reindexButton" type="button">Reindex files</button>
<div class="rag-status" id="ragStatus">RAG: loading</div>
<div class="history" id="history"></div>
<div class="model">qwen2.5:7b</div>
</aside>
<main class="chat-shell">
<header class="topbar">
<div>
<strong id="chatTitle">Local LLM</strong>
<span>Ollama on this notebook</span>
<span id="metaLine">Ollama on this notebook</span>
</div>
</header>
<section class="messages" id="messages" aria-live="polite"></section>
<form class="composer" id="chatForm">
<textarea id="prompt" rows="1" placeholder="메시지를 입력하세요" autofocus></textarea>
<button id="sendButton" type="submit">전송</button>
<textarea id="prompt" rows="1" placeholder="Type a message" autofocus></textarea>
<button id="sendButton" type="submit">Send</button>
</form>
</main>