Skip to content

Commit

Permalink
add prompts to the ui
Browse files Browse the repository at this point in the history
  • Loading branch information
alnutile committed May 9, 2024
1 parent 18d5fbe commit fe54b17
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
4 changes: 2 additions & 2 deletions resources/js/Pages/Chat/ChatBaloon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const props = defineProps({
</div>
</TabPanel>
<TabPanel>
<div class="min-w-full">
<div class="min-w-full border border-gray-400 p-4 mt-2 shadow-lg rounded-md">
<div>
<div class="overflow-x-auto">
<ReferenceTable :message="message" />
Expand All @@ -78,7 +78,7 @@ const props = defineProps({
</div>
</TabPanel>
<TabPanel>
<div class="min-w-full">
<div class="min-w-full border border-gray-400 p-4 mt-2 shadow-lg rounded-md">
<div>
<div class="overflow-x-auto">
<History :message="message" />
Expand Down
13 changes: 11 additions & 2 deletions resources/js/Pages/Chat/Components/History.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
<template>
<h2 class="text-lg font-bold">This is the context used to answer your question.</h2>
<h2 class="text-lg font-bold flex justify-start gap-2 items-center text-gray-500">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round" d="M4.26 10.147a60.438 60.438 0 0 0-.491 6.347A48.62 48.62 0 0 1 12 20.904a48.62 48.62 0 0 1 8.232-4.41 60.46 60.46 0 0 0-.491-6.347m-15.482 0a50.636 50.636 0 0 0-2.658-.813A59.906 59.906 0 0 1 12 3.493a59.903 59.903 0 0 1 10.399 5.84c-.896.248-1.783.52-2.658.814m-15.482 0A50.717 50.717 0 0 1 12 13.489a50.702 50.702 0 0 1 7.74-3.342M6.75 15a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm0 0v-3.675A55.378 55.378 0 0 1 12 8.443m-7.007 11.55A5.981 5.981 0 0 0 6.75 15.75v-1.5" />
</svg>

This is the context used to answer your question.
</h2>
<div class="text-gray-600 mb-5 mt-2 text-sm">
The system will query the database based on your question. It will use the results to then confine the LLM to the context of the data that seems most relavent to your question.
</div>
<div>
<div v-if="message.prompt_histories.length !== 0">
<div v-if="message.prompt_histories.length === 0">
No history to show on this message.
</div>
<div v-else v-for="prompt in message.prompt_histories">
Expand Down

0 comments on commit fe54b17

Please sign in to comment.