diff --git a/web/src/components/CitationPanel.vue b/web/src/components/CitationPanel.vue new file mode 100644 index 0000000..b0a8fb8 --- /dev/null +++ b/web/src/components/CitationPanel.vue @@ -0,0 +1,69 @@ + + + + + {{ showNat20 ? "⚀ Natural 20" : `p.${citation.page_number}` }} + + {{ docTitle }} + {{ open ? "▲" : "▼" }} + + + + Source text (not paraphrased): + {{ citation.snippet }} + + + + + + + diff --git a/web/src/views/ChatView.vue b/web/src/views/ChatView.vue index 2430e3b..c5cb448 100644 --- a/web/src/views/ChatView.vue +++ b/web/src/views/ChatView.vue @@ -1,2 +1,239 @@ -Chat coming soon. - + + + + + + + Ask a question across your indexed rulebooks. + No rulebooks indexed? Go to Library first. + + + + {{ msg.content }} + + Sources: + + + + + + + + + + + {{ errorMsg }} + — Library or set PAGEPIPER_OLLAMA_URL. + + + + + Send + + + + + + + + + + +
Source text (not paraphrased):
{{ citation.snippet }}
+ Ask a question across your indexed rulebooks. + No rulebooks indexed? Go to Library first. +
Sources:
+ {{ errorMsg }} + — Library or set PAGEPIPER_OLLAMA_URL. +