Skip to content

Commit

Permalink
cleanup: document how to change system prompt and other RAG settings …
Browse files Browse the repository at this point in the history
…in dashboard
  • Loading branch information
skeptrunedev authored and cdxker committed Oct 28, 2024
1 parent 83f79dd commit 25b65ea
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions frontends/chat/src/components/Layouts/MainLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ const MainLayout = (props: LayoutProps) => {
const [pageSize, setPageSize] = createSignal<number | null>(null);
const [searchQuery, setSearchQuery] = createSignal<string | null>(null);
const [minScore, setMinScore] = createSignal<number | null>(null);
const [systemPrompt, setSystemPrompt] = createSignal<string | null>(null);
const [streamingCompletion, setStreamingCompletion] =
createSignal<boolean>(false);
const [completionAbortController, setCompletionAbortController] =
Expand Down Expand Up @@ -226,7 +225,6 @@ const MainLayout = (props: LayoutProps) => {
score_threshold: minScore(),
new_message_content,
topic_id: finalTopicId,
system_prompt: systemPrompt(),
llm_options: {
completion_first: streamCompletionsFirst(),
image_options: {
Expand Down Expand Up @@ -569,16 +567,19 @@ const MainLayout = (props: LayoutProps) => {
</select>
</div>
<div class="flex w-full items-center gap-x-2">
<label for="system_prompt">System Prompt:</label>
<input
type="text"
id="system_prompt"
class="w-3/4 rounded-md border border-neutral-300 bg-neutral-100 p-1 dark:border-neutral-900 dark:bg-neutral-700"
value={systemPrompt() ?? ""}
onChange={(e) => {
setSystemPrompt(e.target.value);
}}
/>
<label for="system_prompt">
Open the LLM options for your dataset at{" "}
<a
class="underline"
href={`https://dashboard.trieve.ai/dataset/${userContext.currentDataset?.()
?.dataset.id}/llm-settings`}
target="_blank"
>
dashboard.trieve.ai/llm-settings
</a>{" "}
to configure your system prompt, RAG prompt, model, and
other hyper-parameters.
</label>
</div>
</div>
<FilterModal
Expand Down

0 comments on commit 25b65ea

Please sign in to comment.