mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-11-11 01:10:11 +01:00
General Workspace settings UI updates (#1452)
General Workspace settings updates 05/17 - Move vector count to vector database - Modify hint on LLM Temperature
This commit is contained in:
parent
396e04b0cc
commit
bea36d65a0
@ -20,19 +20,23 @@ export default function ChatTemperatureSettings({
|
|||||||
LLM Temperature
|
LLM Temperature
|
||||||
</label>
|
</label>
|
||||||
<p className="text-white text-opacity-60 text-xs font-medium py-1.5">
|
<p className="text-white text-opacity-60 text-xs font-medium py-1.5">
|
||||||
This setting controls how "random" or dynamic your chat
|
This setting controls how "creative" your LLM responses will
|
||||||
responses will be.
|
be.
|
||||||
<br />
|
<br />
|
||||||
The higher the number (1.0 maximum) the more random and incoherent.
|
The higher the number the more creative. For some models this can lead
|
||||||
|
to incoherent responses when set too high.
|
||||||
<br />
|
<br />
|
||||||
<i>Recommended: {defaults.temp}</i>
|
<br />
|
||||||
|
<i>
|
||||||
|
Most LLMs have various acceptable ranges of valid values. Consult
|
||||||
|
your LLM provider for that information.
|
||||||
|
</i>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<input
|
<input
|
||||||
name="openAiTemp"
|
name="openAiTemp"
|
||||||
type="number"
|
type="number"
|
||||||
min={0.0}
|
min={0.0}
|
||||||
max={1.0}
|
|
||||||
step={0.1}
|
step={0.1}
|
||||||
onWheel={(e) => e.target.blur()}
|
onWheel={(e) => e.target.blur()}
|
||||||
defaultValue={workspace?.openAiTemp ?? defaults.temp}
|
defaultValue={workspace?.openAiTemp ?? defaults.temp}
|
||||||
|
@ -2,7 +2,6 @@ import Workspace from "@/models/workspace";
|
|||||||
import { castToType } from "@/utils/types";
|
import { castToType } from "@/utils/types";
|
||||||
import showToast from "@/utils/toast";
|
import showToast from "@/utils/toast";
|
||||||
import { useEffect, useRef, useState } from "react";
|
import { useEffect, useRef, useState } from "react";
|
||||||
import VectorCount from "./VectorCount";
|
|
||||||
import WorkspaceName from "./WorkspaceName";
|
import WorkspaceName from "./WorkspaceName";
|
||||||
import SuggestedChatMessages from "./SuggestedChatMessages";
|
import SuggestedChatMessages from "./SuggestedChatMessages";
|
||||||
import DeleteWorkspace from "./DeleteWorkspace";
|
import DeleteWorkspace from "./DeleteWorkspace";
|
||||||
@ -51,7 +50,6 @@ export default function GeneralInfo({ slug }) {
|
|||||||
onSubmit={handleUpdate}
|
onSubmit={handleUpdate}
|
||||||
className="w-1/2 flex flex-col gap-y-6"
|
className="w-1/2 flex flex-col gap-y-6"
|
||||||
>
|
>
|
||||||
<VectorCount reload={true} workspace={workspace} />
|
|
||||||
<WorkspaceName
|
<WorkspaceName
|
||||||
key={workspace.slug}
|
key={workspace.slug}
|
||||||
workspace={workspace}
|
workspace={workspace}
|
||||||
|
@ -28,9 +28,6 @@ export default function VectorCount({ reload, workspace }) {
|
|||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<h3 className="input-label">Number of vectors</h3>
|
<h3 className="input-label">Number of vectors</h3>
|
||||||
<p className="text-white text-opacity-60 text-xs font-medium py-1">
|
|
||||||
Total number of vectors in your vector database.
|
|
||||||
</p>
|
|
||||||
<p className="text-white text-opacity-60 text-sm font-medium">
|
<p className="text-white text-opacity-60 text-sm font-medium">
|
||||||
{totalVectors}
|
{totalVectors}
|
||||||
</p>
|
</p>
|
@ -6,6 +6,7 @@ import VectorDBIdentifier from "./VectorDBIdentifier";
|
|||||||
import MaxContextSnippets from "./MaxContextSnippets";
|
import MaxContextSnippets from "./MaxContextSnippets";
|
||||||
import DocumentSimilarityThreshold from "./DocumentSimilarityThreshold";
|
import DocumentSimilarityThreshold from "./DocumentSimilarityThreshold";
|
||||||
import ResetDatabase from "./ResetDatabase";
|
import ResetDatabase from "./ResetDatabase";
|
||||||
|
import VectorCount from "./VectorCount";
|
||||||
|
|
||||||
export default function VectorDatabase({ workspace }) {
|
export default function VectorDatabase({ workspace }) {
|
||||||
const [hasChanges, setHasChanges] = useState(false);
|
const [hasChanges, setHasChanges] = useState(false);
|
||||||
@ -38,7 +39,10 @@ export default function VectorDatabase({ workspace }) {
|
|||||||
onSubmit={handleUpdate}
|
onSubmit={handleUpdate}
|
||||||
className="w-1/2 flex flex-col gap-y-6"
|
className="w-1/2 flex flex-col gap-y-6"
|
||||||
>
|
>
|
||||||
<VectorDBIdentifier workspace={workspace} />
|
<div className="flex items-start gap-x-5">
|
||||||
|
<VectorDBIdentifier workspace={workspace} />
|
||||||
|
<VectorCount reload={true} workspace={workspace} />
|
||||||
|
</div>
|
||||||
<MaxContextSnippets workspace={workspace} setHasChanges={setHasChanges} />
|
<MaxContextSnippets workspace={workspace} setHasChanges={setHasChanges} />
|
||||||
<DocumentSimilarityThreshold
|
<DocumentSimilarityThreshold
|
||||||
workspace={workspace}
|
workspace={workspace}
|
||||||
|
Loading…
Reference in New Issue
Block a user