Merge pull request #4448 from janhq/chore/update-in-app-copy
Chore: Update in-app copy
This commit is contained in:
commit
4e387a79f7
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "jan",
|
||||
"version": "0.1.1736316956",
|
||||
"version": "0.1.1736864554",
|
||||
"main": "./build/main.js",
|
||||
"author": "Jan <service@jan.ai>",
|
||||
"license": "MIT",
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
"name": "@janhq/assistant-extension",
|
||||
"productName": "Jan Assistant",
|
||||
"version": "1.0.2",
|
||||
"description": "This extension enables assistants, including Jan, a default assistant that can call all downloaded models",
|
||||
"description": "Powers the default AI assistant that works with all your installed models.",
|
||||
"main": "dist/index.js",
|
||||
"node": "dist/node/index.js",
|
||||
"author": "Jan <service@jan.ai>",
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
"name": "@janhq/conversational-extension",
|
||||
"productName": "Conversational",
|
||||
"version": "1.0.0",
|
||||
"description": "This extension enables conversations and state persistence via your filesystem",
|
||||
"description": "Enables conversations and state persistence via your filesystem.",
|
||||
"main": "dist/index.js",
|
||||
"author": "Jan <service@jan.ai>",
|
||||
"license": "MIT",
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
"name": "@janhq/engine-management-extension",
|
||||
"productName": "Engine Management",
|
||||
"version": "1.0.0",
|
||||
"description": "Extension for managing engines and their configurations",
|
||||
"description": "Manages AI engines and their configurations.",
|
||||
"main": "dist/index.js",
|
||||
"node": "dist/node/index.cjs.js",
|
||||
"author": "Jan <service@jan.ai>",
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
"name": "@janhq/model-extension",
|
||||
"productName": "Model Management",
|
||||
"version": "1.0.35",
|
||||
"description": "This extension manages model lists, model details, and model configurations",
|
||||
"description": "Handles model lists, their details, and settings.",
|
||||
"main": "dist/index.js",
|
||||
"author": "Jan <service@jan.ai>",
|
||||
"license": "AGPL-3.0",
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
"name": "@janhq/monitoring-extension",
|
||||
"productName": "System Monitoring",
|
||||
"version": "1.0.10",
|
||||
"description": "This extension provides system health and OS level data",
|
||||
"description": "Provides system health and OS level data.",
|
||||
"main": "dist/index.js",
|
||||
"node": "dist/node/index.cjs.js",
|
||||
"author": "Jan <service@jan.ai>",
|
||||
|
||||
@ -509,71 +509,71 @@ __metadata:
|
||||
|
||||
"@janhq/core@file:../../core/package.tgz::locator=%40janhq%2Fassistant-extension%40workspace%3Aassistant-extension":
|
||||
version: 0.1.10
|
||||
resolution: "@janhq/core@file:../../core/package.tgz#../../core/package.tgz::hash=e8dac7&locator=%40janhq%2Fassistant-extension%40workspace%3Aassistant-extension"
|
||||
resolution: "@janhq/core@file:../../core/package.tgz#../../core/package.tgz::hash=b3efad&locator=%40janhq%2Fassistant-extension%40workspace%3Aassistant-extension"
|
||||
dependencies:
|
||||
rxjs: "npm:^7.8.1"
|
||||
ulidx: "npm:^2.3.0"
|
||||
checksum: 10c0/394734b0cc26f051a9ad138f8ae642d066acff07de26ab7c4b944d190c030cb422ac044da6352461589e13a480425200cbd8e5a549cf0181cd5c9af4b1d7eb2c
|
||||
checksum: 10c0/a617e70c606d6f463fbd82488704a02f75290323c07fcf0242641732efa5e9d067062595f27cefade0ac79b47796ac34ef57ac439e82a5a4888b30e37d019994
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@janhq/core@file:../../core/package.tgz::locator=%40janhq%2Fconversational-extension%40workspace%3Aconversational-extension":
|
||||
version: 0.1.10
|
||||
resolution: "@janhq/core@file:../../core/package.tgz#../../core/package.tgz::hash=e8dac7&locator=%40janhq%2Fconversational-extension%40workspace%3Aconversational-extension"
|
||||
resolution: "@janhq/core@file:../../core/package.tgz#../../core/package.tgz::hash=b3efad&locator=%40janhq%2Fconversational-extension%40workspace%3Aconversational-extension"
|
||||
dependencies:
|
||||
rxjs: "npm:^7.8.1"
|
||||
ulidx: "npm:^2.3.0"
|
||||
checksum: 10c0/394734b0cc26f051a9ad138f8ae642d066acff07de26ab7c4b944d190c030cb422ac044da6352461589e13a480425200cbd8e5a549cf0181cd5c9af4b1d7eb2c
|
||||
checksum: 10c0/a617e70c606d6f463fbd82488704a02f75290323c07fcf0242641732efa5e9d067062595f27cefade0ac79b47796ac34ef57ac439e82a5a4888b30e37d019994
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@janhq/core@file:../../core/package.tgz::locator=%40janhq%2Fengine-management-extension%40workspace%3Aengine-management-extension":
|
||||
version: 0.1.10
|
||||
resolution: "@janhq/core@file:../../core/package.tgz#../../core/package.tgz::hash=e8dac7&locator=%40janhq%2Fengine-management-extension%40workspace%3Aengine-management-extension"
|
||||
resolution: "@janhq/core@file:../../core/package.tgz#../../core/package.tgz::hash=b3efad&locator=%40janhq%2Fengine-management-extension%40workspace%3Aengine-management-extension"
|
||||
dependencies:
|
||||
rxjs: "npm:^7.8.1"
|
||||
ulidx: "npm:^2.3.0"
|
||||
checksum: 10c0/394734b0cc26f051a9ad138f8ae642d066acff07de26ab7c4b944d190c030cb422ac044da6352461589e13a480425200cbd8e5a549cf0181cd5c9af4b1d7eb2c
|
||||
checksum: 10c0/a617e70c606d6f463fbd82488704a02f75290323c07fcf0242641732efa5e9d067062595f27cefade0ac79b47796ac34ef57ac439e82a5a4888b30e37d019994
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@janhq/core@file:../../core/package.tgz::locator=%40janhq%2Finference-cortex-extension%40workspace%3Ainference-cortex-extension":
|
||||
version: 0.1.10
|
||||
resolution: "@janhq/core@file:../../core/package.tgz#../../core/package.tgz::hash=e8dac7&locator=%40janhq%2Finference-cortex-extension%40workspace%3Ainference-cortex-extension"
|
||||
resolution: "@janhq/core@file:../../core/package.tgz#../../core/package.tgz::hash=b3efad&locator=%40janhq%2Finference-cortex-extension%40workspace%3Ainference-cortex-extension"
|
||||
dependencies:
|
||||
rxjs: "npm:^7.8.1"
|
||||
ulidx: "npm:^2.3.0"
|
||||
checksum: 10c0/394734b0cc26f051a9ad138f8ae642d066acff07de26ab7c4b944d190c030cb422ac044da6352461589e13a480425200cbd8e5a549cf0181cd5c9af4b1d7eb2c
|
||||
checksum: 10c0/a617e70c606d6f463fbd82488704a02f75290323c07fcf0242641732efa5e9d067062595f27cefade0ac79b47796ac34ef57ac439e82a5a4888b30e37d019994
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@janhq/core@file:../../core/package.tgz::locator=%40janhq%2Fmodel-extension%40workspace%3Amodel-extension":
|
||||
version: 0.1.10
|
||||
resolution: "@janhq/core@file:../../core/package.tgz#../../core/package.tgz::hash=e8dac7&locator=%40janhq%2Fmodel-extension%40workspace%3Amodel-extension"
|
||||
resolution: "@janhq/core@file:../../core/package.tgz#../../core/package.tgz::hash=b3efad&locator=%40janhq%2Fmodel-extension%40workspace%3Amodel-extension"
|
||||
dependencies:
|
||||
rxjs: "npm:^7.8.1"
|
||||
ulidx: "npm:^2.3.0"
|
||||
checksum: 10c0/394734b0cc26f051a9ad138f8ae642d066acff07de26ab7c4b944d190c030cb422ac044da6352461589e13a480425200cbd8e5a549cf0181cd5c9af4b1d7eb2c
|
||||
checksum: 10c0/a617e70c606d6f463fbd82488704a02f75290323c07fcf0242641732efa5e9d067062595f27cefade0ac79b47796ac34ef57ac439e82a5a4888b30e37d019994
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@janhq/core@file:../../core/package.tgz::locator=%40janhq%2Fmonitoring-extension%40workspace%3Amonitoring-extension":
|
||||
version: 0.1.10
|
||||
resolution: "@janhq/core@file:../../core/package.tgz#../../core/package.tgz::hash=e8dac7&locator=%40janhq%2Fmonitoring-extension%40workspace%3Amonitoring-extension"
|
||||
resolution: "@janhq/core@file:../../core/package.tgz#../../core/package.tgz::hash=b3efad&locator=%40janhq%2Fmonitoring-extension%40workspace%3Amonitoring-extension"
|
||||
dependencies:
|
||||
rxjs: "npm:^7.8.1"
|
||||
ulidx: "npm:^2.3.0"
|
||||
checksum: 10c0/394734b0cc26f051a9ad138f8ae642d066acff07de26ab7c4b944d190c030cb422ac044da6352461589e13a480425200cbd8e5a549cf0181cd5c9af4b1d7eb2c
|
||||
checksum: 10c0/a617e70c606d6f463fbd82488704a02f75290323c07fcf0242641732efa5e9d067062595f27cefade0ac79b47796ac34ef57ac439e82a5a4888b30e37d019994
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@janhq/core@file:../../core/package.tgz::locator=%40janhq%2Ftensorrt-llm-extension%40workspace%3Atensorrt-llm-extension":
|
||||
version: 0.1.10
|
||||
resolution: "@janhq/core@file:../../core/package.tgz#../../core/package.tgz::hash=e8dac7&locator=%40janhq%2Ftensorrt-llm-extension%40workspace%3Atensorrt-llm-extension"
|
||||
resolution: "@janhq/core@file:../../core/package.tgz#../../core/package.tgz::hash=b3efad&locator=%40janhq%2Ftensorrt-llm-extension%40workspace%3Atensorrt-llm-extension"
|
||||
dependencies:
|
||||
rxjs: "npm:^7.8.1"
|
||||
ulidx: "npm:^2.3.0"
|
||||
checksum: 10c0/394734b0cc26f051a9ad138f8ae642d066acff07de26ab7c4b944d190c030cb422ac044da6352461589e13a480425200cbd8e5a549cf0181cd5c9af4b1d7eb2c
|
||||
checksum: 10c0/a617e70c606d6f463fbd82488704a02f75290323c07fcf0242641732efa5e9d067062595f27cefade0ac79b47796ac34ef57ac439e82a5a4888b30e37d019994
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@ -588,6 +588,7 @@ __metadata:
|
||||
p-queue: "npm:^8.0.1"
|
||||
rimraf: "npm:^3.0.2"
|
||||
rolldown: "npm:^1.0.0-beta.1"
|
||||
run-script-os: "npm:^1.1.6"
|
||||
ts-loader: "npm:^9.5.0"
|
||||
typescript: "npm:^5.3.3"
|
||||
languageName: unknown
|
||||
|
||||
@ -30,9 +30,9 @@ const ModalConfirmReset = () => {
|
||||
content={
|
||||
<div>
|
||||
<p className="text-[hsla(var(--text-secondary))]">
|
||||
Restore app to initial state, erasing all models and chat history.
|
||||
This action is irreversible and recommended only if the application
|
||||
is corrupted.
|
||||
Restore appplication to its initial state, erasing all models and
|
||||
chat history. This action is irreversible and recommended only if
|
||||
the application is corrupted.
|
||||
</p>
|
||||
|
||||
<div className="my-4">
|
||||
|
||||
@ -17,9 +17,9 @@ const FactoryReset = () => {
|
||||
</h6>
|
||||
</div>
|
||||
<p className="whitespace-pre-wrap font-medium leading-relaxed text-[hsla(var(--text-secondary))]">
|
||||
Restore app to initial state, erasing all models and chat history.
|
||||
This action is irreversible and recommended only if the application is
|
||||
corrupted.
|
||||
Restore appplication to its initial state, erasing all models and chat
|
||||
history. This action is irreversible and recommended only if the
|
||||
application is corrupted.
|
||||
</p>
|
||||
</div>
|
||||
<Button
|
||||
|
||||
@ -240,7 +240,8 @@ const Advanced = () => {
|
||||
<h6 className="font-semibold capitalize">Experimental Mode</h6>
|
||||
</div>
|
||||
<p className="font-medium leading-relaxed text-[hsla(var(--text-secondary))]">
|
||||
Enable new features that may be unstable.
|
||||
New features that are still unstable and could affect app
|
||||
performance. Enable with caution.
|
||||
</p>
|
||||
</div>
|
||||
<Switch
|
||||
@ -454,8 +455,8 @@ const Advanced = () => {
|
||||
<h6 className="font-semibold capitalize">HTTPS Proxy</h6>
|
||||
</div>
|
||||
<p className="font-medium leading-relaxed text-[hsla(var(--text-secondary))]">
|
||||
Specify the HTTPS proxy or leave blank (proxy auto-configuration
|
||||
and SOCKS not supported).
|
||||
Optional proxy server for internet connections. Only HTTPS proxies
|
||||
supported.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@ -509,7 +510,7 @@ const Advanced = () => {
|
||||
<h6 className="font-semibold capitalize">Jan Quick Ask</h6>
|
||||
</div>
|
||||
<p className="font-medium leading-relaxed text-[hsla(var(--text-secondary))]">
|
||||
Enable Quick Ask to be triggered via the default hotkey{' '}
|
||||
Enable Quick Ask to be triggered via the default hotkey .
|
||||
<span className="text-[hsla(var(--text-secondary)] bg-secondary inline-flex items-center justify-center rounded-full px-1 py-0.5 text-xs font-bold">
|
||||
<span className="font-bold">{isMac ? '⌘' : 'Ctrl'} + J</span>
|
||||
</span>{' '}
|
||||
|
||||
@ -119,7 +119,7 @@ export default function AppearanceOptions() {
|
||||
</div>
|
||||
<p className=" font-medium leading-relaxed text-[hsla(var(--text-secondary))]">
|
||||
Choose the width of the chat area to customize your conversation
|
||||
view
|
||||
view.
|
||||
</p>
|
||||
</div>
|
||||
<div className="flex-shrink-0">
|
||||
@ -184,7 +184,7 @@ export default function AppearanceOptions() {
|
||||
<h6 className="font-semibold capitalize">Spell Check</h6>
|
||||
</div>
|
||||
<p className=" font-medium leading-relaxed text-[hsla(var(--text-secondary))]">
|
||||
Turn on to enable spell check
|
||||
Turn on to enable spell check.
|
||||
</p>
|
||||
</div>
|
||||
<div className="flex-shrink-0">
|
||||
|
||||
@ -19,7 +19,7 @@ const LocalEngineItems = ({ engine }: { engine: InferenceEngine }) => {
|
||||
const manualDescription = (engine: string) => {
|
||||
switch (engine) {
|
||||
case InferenceEngine.cortex_llamacpp:
|
||||
return 'Fast, efficient local inference engine that runs GGUF models directly on your device'
|
||||
return 'Fast, efficient local inference engine that runs GGUF models directly on your device.'
|
||||
|
||||
default:
|
||||
break
|
||||
|
||||
@ -215,7 +215,8 @@ const LocalEngineSettings = ({ engine }: { engine: InferenceEngine }) => {
|
||||
<div className="mt-2 w-full font-medium leading-relaxed text-[hsla(var(--text-secondary))]">
|
||||
<p>
|
||||
Choose the default variant that best suited for your
|
||||
hardware. See more information here.
|
||||
hardware. See [our
|
||||
guides](https://jan.ai/docs/local-engines/llama-cpp).
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -50,7 +50,7 @@ const RemoteEngineItems = ({
|
||||
<div className="mt-2 w-full font-medium leading-relaxed text-[hsla(var(--text-secondary))]">
|
||||
<p>
|
||||
Access models from {getTitleByEngine(engine as InferenceEngine)}{' '}
|
||||
via their API
|
||||
via their API.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -103,7 +103,7 @@ const Privacy = () => {
|
||||
<h6 className="font-semibold capitalize">Logs</h6>
|
||||
</div>
|
||||
<p className="font-medium leading-relaxed text-[hsla(var(--text-secondary))]">
|
||||
Open App Logs and Cortex Logs
|
||||
Open App Logs and Cortex Logs.
|
||||
</p>
|
||||
</div>
|
||||
<div className="flex items-center gap-x-3">
|
||||
|
||||
@ -115,10 +115,7 @@ const Tools = () => {
|
||||
className="ml-2 flex-shrink-0 text-[hsl(var(--text-secondary))]"
|
||||
/>
|
||||
}
|
||||
content="Retrieval helps the assistant use information from
|
||||
files you send to it. Once you share a file, the
|
||||
assistant automatically fetches the relevant content
|
||||
based on your request."
|
||||
content="Allows assistant to pull information from your uploaded files to provide context-aware responses."
|
||||
/>
|
||||
</label>
|
||||
<div className="flex items-center justify-between">
|
||||
@ -147,13 +144,7 @@ const Tools = () => {
|
||||
className="ml-2 flex-shrink-0 text-[hsl(var(--text-secondary))]"
|
||||
/>
|
||||
}
|
||||
content="Embedding model is crucial for understanding and
|
||||
processing the input text effectively by
|
||||
converting text to numerical representations.
|
||||
Align the model choice with your task, evaluate
|
||||
its performance, and consider factors like
|
||||
resource availability. Experiment to find the best
|
||||
fit for your specific use case."
|
||||
content="Converts text into numbers for AI processing."
|
||||
/>
|
||||
</div>
|
||||
<div className="w-full">
|
||||
@ -174,11 +165,7 @@ const Tools = () => {
|
||||
className="ml-2 flex-shrink-0 text-[hsl(var(--text-secondary))]"
|
||||
/>
|
||||
}
|
||||
content="Vector Database is crucial for efficient storage
|
||||
and retrieval of embeddings. Consider your
|
||||
specific task, available resources, and language
|
||||
requirements. Experiment to find the best fit for
|
||||
your specific use case."
|
||||
content="Stores and searches text data efficiently. Pick settings that balance speed and accuracy for your data size."
|
||||
/>
|
||||
</label>
|
||||
</div>
|
||||
@ -193,7 +180,7 @@ const Tools = () => {
|
||||
id="use-time-weighted-retriever"
|
||||
className="inline-block font-medium"
|
||||
>
|
||||
Time-Weighted Retrieval?
|
||||
Time-Weighted Retrieval
|
||||
</label>
|
||||
<Tooltip
|
||||
trigger={
|
||||
@ -202,11 +189,7 @@ const Tools = () => {
|
||||
className="ml-2 flex-shrink-0 text-[hsl(var(--text-secondary))]"
|
||||
/>
|
||||
}
|
||||
content="Time-Weighted Retriever looks at how similar
|
||||
they are and how new they are. It compares
|
||||
documents based on their meaning like usual, but
|
||||
also considers when they were added to give
|
||||
newer ones more importance."
|
||||
content="Prioritizes newer documents while searching but still considers older ones."
|
||||
/>
|
||||
<div className="ml-auto flex items-center justify-between">
|
||||
<Switch
|
||||
|
||||
@ -1,12 +1,11 @@
|
||||
|
||||
import { presetConfiguration } from './predefinedComponent';
|
||||
import { presetConfiguration } from './predefinedComponent'
|
||||
|
||||
it('should have correct configuration for prompt_template', () => {
|
||||
const config = presetConfiguration['prompt_template'];
|
||||
const config = presetConfiguration['prompt_template']
|
||||
expect(config).toEqual({
|
||||
key: 'prompt_template',
|
||||
title: 'Prompt template',
|
||||
description: `A predefined text or framework that guides the AI model's response generation. It includes placeholders or instructions for the model to fill in or expand upon.`,
|
||||
description: `A structured format that guides how the model should respond.`,
|
||||
controllerType: 'input',
|
||||
controllerProps: {
|
||||
placeholder: 'Prompt template',
|
||||
@ -14,5 +13,5 @@ it('should have correct configuration for prompt_template', () => {
|
||||
},
|
||||
requireModelReload: true,
|
||||
configType: 'setting',
|
||||
});
|
||||
});
|
||||
})
|
||||
})
|
||||
|
||||
@ -4,7 +4,7 @@ export const presetConfiguration: Record<string, SettingComponentProps> = {
|
||||
prompt_template: {
|
||||
key: 'prompt_template',
|
||||
title: 'Prompt template',
|
||||
description: `A predefined text or framework that guides the AI model's response generation. It includes placeholders or instructions for the model to fill in or expand upon.`,
|
||||
description: `A structured format that guides how the model should respond.`,
|
||||
controllerType: 'input',
|
||||
controllerProps: {
|
||||
placeholder: 'Prompt template',
|
||||
@ -16,7 +16,7 @@ export const presetConfiguration: Record<string, SettingComponentProps> = {
|
||||
stop: {
|
||||
key: 'stop',
|
||||
title: 'Stop',
|
||||
description: `Defines specific tokens or phrases that signal the model to stop producing further output, allowing you to control the length and coherence of the output.`,
|
||||
description: `Defines tokens or phrases that will end the model's response.`,
|
||||
controllerType: 'tag',
|
||||
controllerProps: {
|
||||
placeholder: 'Enter stop words',
|
||||
@ -28,7 +28,7 @@ export const presetConfiguration: Record<string, SettingComponentProps> = {
|
||||
ctx_len: {
|
||||
key: 'ctx_len',
|
||||
title: 'Context Length',
|
||||
description: `Sets the maximum input the model can use to generate a response, it varies with the model used. Higher length is better for tasks needing extensive context, like summarizing long documents. Lower length can improve response time and reduce computing needs for simple queries.`,
|
||||
description: `Controls how much text the model can consider at once. Longer context allows the model to handle more input but uses more memory and runs slower.`,
|
||||
controllerType: 'slider',
|
||||
controllerProps: {
|
||||
min: 128,
|
||||
@ -42,7 +42,7 @@ export const presetConfiguration: Record<string, SettingComponentProps> = {
|
||||
max_tokens: {
|
||||
key: 'max_tokens',
|
||||
title: 'Max Tokens',
|
||||
description: `Sets the upper limit on the number of tokens the model can generate in a single output. A higher limit benefits detailed and complex responses, while a lower limit helps maintain conciseness.`,
|
||||
description: `Controls response length. Higher values allow longer, more detailed responses.`,
|
||||
controllerType: 'slider',
|
||||
controllerProps: {
|
||||
min: 100,
|
||||
@ -56,7 +56,8 @@ export const presetConfiguration: Record<string, SettingComponentProps> = {
|
||||
ngl: {
|
||||
key: 'ngl',
|
||||
title: 'Number of GPU layers (ngl)',
|
||||
description: 'The number of layers to load onto the GPU for acceleration.',
|
||||
description:
|
||||
'Controls how many layers of the model run on GPU. More layers means faster processing, but requires more GPU memory.',
|
||||
controllerType: 'slider',
|
||||
controllerProps: {
|
||||
min: 1,
|
||||
@ -81,7 +82,7 @@ export const presetConfiguration: Record<string, SettingComponentProps> = {
|
||||
stream: {
|
||||
key: 'stream',
|
||||
title: 'Stream',
|
||||
description: `Enables real-time data processing, which is useful for applications needing immediate responses, like live interactions. It accelerates predictions by processing data as it becomes available.`,
|
||||
description: `Enables real-time response streaming.`,
|
||||
controllerType: 'checkbox',
|
||||
controllerProps: {
|
||||
value: false,
|
||||
@ -92,7 +93,7 @@ export const presetConfiguration: Record<string, SettingComponentProps> = {
|
||||
temperature: {
|
||||
key: 'temperature',
|
||||
title: 'Temperature',
|
||||
description: `Influences the randomness of the model's output. A higher value leads to more random and diverse responses, while a lower value produces more predictable outputs.`,
|
||||
description: `Controls response randomness. Higher values produce more creative, varied responses. `,
|
||||
controllerType: 'slider',
|
||||
controllerProps: {
|
||||
min: 0,
|
||||
@ -106,7 +107,7 @@ export const presetConfiguration: Record<string, SettingComponentProps> = {
|
||||
frequency_penalty: {
|
||||
key: 'frequency_penalty',
|
||||
title: 'Frequency Penalty',
|
||||
description: `Modifies the likelihood of the model repeating the same words or phrases within a single output. Increasing it can help avoid repetition, which is useful for scenarios where you want more varied language, like creative writing or content generation.`,
|
||||
description: `Reduces word repetition. Higher values encourage more varied language. Useful for creative writing and content generation.`,
|
||||
controllerType: 'slider',
|
||||
controllerProps: {
|
||||
min: 0,
|
||||
@ -120,7 +121,7 @@ export const presetConfiguration: Record<string, SettingComponentProps> = {
|
||||
presence_penalty: {
|
||||
key: 'presence_penalty',
|
||||
title: 'Presence Penalty',
|
||||
description: `Reduces the likelihood of repeating tokens, promoting novelty in the output. Use a higher value for tasks requiring diverse ideas.`,
|
||||
description: `Encourages the model to explore new topics. Higher values help prevent the model from fixating on already-discussed subjects.`,
|
||||
controllerType: 'slider',
|
||||
controllerProps: {
|
||||
min: 0,
|
||||
@ -134,7 +135,7 @@ export const presetConfiguration: Record<string, SettingComponentProps> = {
|
||||
top_p: {
|
||||
key: 'top_p',
|
||||
title: 'Top P',
|
||||
description: `Set probability threshold for more relevant outputs. A lower value (e.g., 0.9) may be more suitable for focused, task-oriented applications, while a higher value (e.g., 0.95 or 0.97) may be better for more open-ended, creative tasks.`,
|
||||
description: `Set probability threshold for more relevant outputs. Higher values allow more diverse word choices.`,
|
||||
controllerType: 'slider',
|
||||
controllerProps: {
|
||||
min: 0,
|
||||
@ -149,7 +150,7 @@ export const presetConfiguration: Record<string, SettingComponentProps> = {
|
||||
key: 'cpu_threads',
|
||||
title: 'CPU Threads',
|
||||
description:
|
||||
'Determines CPU inference threads, limited by hardware and OS. (Maximum determined by system)',
|
||||
'Controls how many CPU cores are used for processing. Higher values can speed up model loading but use more system resources.',
|
||||
controllerType: 'slider',
|
||||
controllerProps: {
|
||||
min: 0,
|
||||
@ -164,7 +165,8 @@ export const presetConfiguration: Record<string, SettingComponentProps> = {
|
||||
chunk_size: {
|
||||
key: 'chunk_size',
|
||||
title: 'Chunk Size',
|
||||
description: 'Maximum number of tokens in a chunk',
|
||||
description:
|
||||
'Sets the maximum number of tokens per data chunk. Increase size for processing large blocks of text efficiently, or decrease it to optimize memory usage.',
|
||||
controllerType: 'slider',
|
||||
controllerProps: {
|
||||
min: 128,
|
||||
@ -178,7 +180,8 @@ export const presetConfiguration: Record<string, SettingComponentProps> = {
|
||||
chunk_overlap: {
|
||||
key: 'chunk_overlap',
|
||||
title: 'Chunk Overlap',
|
||||
description: 'Number of tokens overlapping between two adjacent chunks',
|
||||
description:
|
||||
'How many words overlap between text segments. More overlap helps maintain meaning across splits.',
|
||||
controllerType: 'slider',
|
||||
controllerProps: {
|
||||
min: 32,
|
||||
@ -192,7 +195,8 @@ export const presetConfiguration: Record<string, SettingComponentProps> = {
|
||||
top_k: {
|
||||
key: 'top_k',
|
||||
title: 'Top K',
|
||||
description: 'Number of top-ranked documents to retrieve',
|
||||
description:
|
||||
'Number of most relevant documents to retrieve. Higher values return more results.',
|
||||
controllerType: 'slider',
|
||||
controllerProps: {
|
||||
min: 1,
|
||||
@ -206,8 +210,7 @@ export const presetConfiguration: Record<string, SettingComponentProps> = {
|
||||
retrieval_template: {
|
||||
key: 'retrieval_template',
|
||||
title: 'Retrieval Template',
|
||||
description:
|
||||
'The template to use for retrieval. The following variables are available: {CONTEXT}, {QUESTION}',
|
||||
description: 'Format for how the AI uses context to answer questions.',
|
||||
controllerType: 'input',
|
||||
controllerProps: {
|
||||
placeholder: 'Retrieval Template',
|
||||
|
||||
145
yarn.lock
145
yarn.lock
@ -43,19 +43,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@asamuzakjp/css-color@npm:^2.8.2":
|
||||
version: 2.8.2
|
||||
resolution: "@asamuzakjp/css-color@npm:2.8.2"
|
||||
dependencies:
|
||||
"@csstools/css-calc": "npm:^2.1.1"
|
||||
"@csstools/css-color-parser": "npm:^3.0.7"
|
||||
"@csstools/css-parser-algorithms": "npm:^3.0.4"
|
||||
"@csstools/css-tokenizer": "npm:^3.0.3"
|
||||
lru-cache: "npm:^11.0.2"
|
||||
checksum: 10c0/352b91ca7741876e459cd3cb350a969e842da1e532577157d38365a6da89b7d6e6944249489366ee61b8a225ede1b521e7ab305b70ad4c688b01404061eecca8
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@babel/code-frame@npm:^7.0.0, @babel/code-frame@npm:^7.10.4, @babel/code-frame@npm:^7.12.13, @babel/code-frame@npm:^7.22.13, @babel/code-frame@npm:^7.25.9, @babel/code-frame@npm:^7.26.0, @babel/code-frame@npm:^7.26.2":
|
||||
version: 7.26.2
|
||||
resolution: "@babel/code-frame@npm:7.26.2"
|
||||
@ -434,52 +421,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@csstools/color-helpers@npm:^5.0.1":
|
||||
version: 5.0.1
|
||||
resolution: "@csstools/color-helpers@npm:5.0.1"
|
||||
checksum: 10c0/77fa3b7236eaa3f36dea24708ac0d5e53168903624ac5aed54615752a0730cd20773fda50e742ce868012eca8c000cc39688e05869e79f34714230ab6968d1e6
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@csstools/css-calc@npm:^2.1.1":
|
||||
version: 2.1.1
|
||||
resolution: "@csstools/css-calc@npm:2.1.1"
|
||||
peerDependencies:
|
||||
"@csstools/css-parser-algorithms": ^3.0.4
|
||||
"@csstools/css-tokenizer": ^3.0.3
|
||||
checksum: 10c0/857c8dac40eb6ba8810408dad141bbcad060b28bce69dfd3bcf095a060fcaa23d5c4dbf52be88fcb57e12ce32c666e855dc68de1d8020851f6b432e3f9b29950
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@csstools/css-color-parser@npm:^3.0.7":
|
||||
version: 3.0.7
|
||||
resolution: "@csstools/css-color-parser@npm:3.0.7"
|
||||
dependencies:
|
||||
"@csstools/color-helpers": "npm:^5.0.1"
|
||||
"@csstools/css-calc": "npm:^2.1.1"
|
||||
peerDependencies:
|
||||
"@csstools/css-parser-algorithms": ^3.0.4
|
||||
"@csstools/css-tokenizer": ^3.0.3
|
||||
checksum: 10c0/b81780e6c50f0b0605776bd39bbd6203780231a561601853a9835cc70788560e7a281d0fbfe47ebe8affcb07dd64b0b1dcd4b67552520cfbe0e5088df158f12c
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@csstools/css-parser-algorithms@npm:^3.0.4":
|
||||
version: 3.0.4
|
||||
resolution: "@csstools/css-parser-algorithms@npm:3.0.4"
|
||||
peerDependencies:
|
||||
"@csstools/css-tokenizer": ^3.0.3
|
||||
checksum: 10c0/d411f07765e14eede17bccc6bd4f90ff303694df09aabfede3fd104b2dfacfd4fe3697cd25ddad14684c850328f3f9420ebfa9f78380892492974db24ae47dbd
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@csstools/css-tokenizer@npm:^3.0.3":
|
||||
version: 3.0.3
|
||||
resolution: "@csstools/css-tokenizer@npm:3.0.3"
|
||||
checksum: 10c0/c31bf410e1244b942e71798e37c54639d040cb59e0121b21712b40015fced2b0fb1ffe588434c5f8923c9cd0017cfc1c1c8f3921abc94c96edf471aac2eba5e5
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@develar/schema-utils@npm:~2.6.5":
|
||||
version: 2.6.5
|
||||
resolution: "@develar/schema-utils@npm:2.6.5"
|
||||
@ -5674,7 +5615,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"bindings@npm:1.5.0, bindings@npm:^1.2.1, bindings@npm:^1.5.0":
|
||||
"bindings@npm:1.5.0, bindings@npm:^1.5.0":
|
||||
version: 1.5.0
|
||||
resolution: "bindings@npm:1.5.0"
|
||||
dependencies:
|
||||
@ -6577,17 +6518,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"contextify@npm:0.1.x":
|
||||
version: 0.1.15
|
||||
resolution: "contextify@npm:0.1.15"
|
||||
dependencies:
|
||||
bindings: "npm:^1.2.1"
|
||||
nan: "npm:^2.1.0"
|
||||
node-gyp: "npm:latest"
|
||||
checksum: 10c0/818ce9ff0867050e50ba18fea112d12932f30ee1c0350000a9a28fb2df3efc97c7922ea891b03c83244d8132c462e472f18b8d824d95dafde43520c2395bb781
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"convert-source-map@npm:^2.0.0":
|
||||
version: 2.0.0
|
||||
resolution: "convert-source-map@npm:2.0.0"
|
||||
@ -6863,13 +6793,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"cssom@npm:0.2.x":
|
||||
version: 0.2.5
|
||||
resolution: "cssom@npm:0.2.5"
|
||||
checksum: 10c0/d8fae52a1b2cc37fdcc7ab81ff2294ba239959a690bec764446a4f6219de443b5bf82b5fa2249f7b3ead74e5b521cc7a4808790e5c518eaa2b199bc895443fd3
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"cssom@npm:^0.5.0":
|
||||
version: 0.5.0
|
||||
resolution: "cssom@npm:0.5.0"
|
||||
@ -6884,16 +6807,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"cssstyle@npm:>=0.2.3":
|
||||
version: 4.2.1
|
||||
resolution: "cssstyle@npm:4.2.1"
|
||||
dependencies:
|
||||
"@asamuzakjp/css-color": "npm:^2.8.2"
|
||||
rrweb-cssom: "npm:^0.8.0"
|
||||
checksum: 10c0/02ba8c47c0caaab57acadacb3eb6c0f5f009000f55d61f6563670e07d389b26edefeed497e6c1847fcd2e6bbe0b6974c2d4291f97fa0c6ec6add13a7fa926d84
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"cssstyle@npm:^2.3.0":
|
||||
version: 2.3.0
|
||||
resolution: "cssstyle@npm:2.3.0"
|
||||
@ -9858,13 +9771,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"htmlparser@npm:1.x":
|
||||
version: 1.7.7
|
||||
resolution: "htmlparser@npm:1.7.7"
|
||||
checksum: 10c0/b4ef1d2031f1370f274f646f824da10c8d946e671001d92878a4db77332abe84541667728063bb374a2742659b9549fd7d2e7ecdf71605ff016ef18b328becf5
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"http-cache-semantics@npm:^4.0.0, http-cache-semantics@npm:^4.1.1":
|
||||
version: 4.1.1
|
||||
resolution: "http-cache-semantics@npm:4.1.1"
|
||||
@ -11053,7 +10959,6 @@ __metadata:
|
||||
eslint: "npm:8.57.0"
|
||||
eslint-plugin-react: "npm:^7.34.0"
|
||||
fs-extra: "npm:^11.2.0"
|
||||
jq: "npm:^1.7.2"
|
||||
node-fetch: "npm:2"
|
||||
pacote: "npm:^21.0.0"
|
||||
request: "npm:^2.88.2"
|
||||
@ -11609,18 +11514,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"jq@npm:^1.7.2":
|
||||
version: 1.7.2
|
||||
resolution: "jq@npm:1.7.2"
|
||||
dependencies:
|
||||
jsdom: "npm:0.2.x"
|
||||
xmlhttprequest: "npm:1.3.x"
|
||||
bin:
|
||||
jq: ./bin/jq
|
||||
checksum: 10c0/ac23f36e3455435f7da90fe3dc4134cbbd5c04b52bdb04591efedb236aff7e0384c08f27849d44e3123357f6e8f1afca60b63c3af1663cbdc04b4a0ae0c11e3b
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"js-tokens@npm:^3.0.0 || ^4.0.0, js-tokens@npm:^4.0.0":
|
||||
version: 4.0.0
|
||||
resolution: "js-tokens@npm:4.0.0"
|
||||
@ -11665,22 +11558,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"jsdom@npm:0.2.x":
|
||||
version: 0.2.19
|
||||
resolution: "jsdom@npm:0.2.19"
|
||||
dependencies:
|
||||
contextify: "npm:0.1.x"
|
||||
cssom: "npm:0.2.x"
|
||||
cssstyle: "npm:>=0.2.3"
|
||||
htmlparser: "npm:1.x"
|
||||
request: "npm:2.x"
|
||||
dependenciesMeta:
|
||||
contextify:
|
||||
optional: true
|
||||
checksum: 10c0/7a0aaff6b4d4ae96e1e3489667926782117cfcbee0f7aaefafcc7b04a4e00a1588b2f03db50978612cbb47441fe31bedf28179cdd4c5e144a8cc5a7218a2f0e6
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"jsdom@npm:^20.0.0":
|
||||
version: 20.0.3
|
||||
resolution: "jsdom@npm:20.0.3"
|
||||
@ -12255,7 +12132,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"lru-cache@npm:^11.0.0, lru-cache@npm:^11.0.2":
|
||||
"lru-cache@npm:^11.0.0":
|
||||
version: 11.0.2
|
||||
resolution: "lru-cache@npm:11.0.2"
|
||||
checksum: 10c0/c993b8e06ead0b24b969c1dbb5b301716aed66e320e9014a80012f5febe280b438f28ff50046b2c55ff404e889351ccb332ff91f8dd175a21f5eae80e3fb155f
|
||||
@ -13282,7 +13159,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"nan@npm:^2.1.0, nan@npm:^2.12.1":
|
||||
"nan@npm:^2.12.1":
|
||||
version: 2.22.0
|
||||
resolution: "nan@npm:2.22.0"
|
||||
dependencies:
|
||||
@ -15969,7 +15846,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"request@npm:2.x, request@npm:^2.88.2":
|
||||
"request@npm:^2.88.2":
|
||||
version: 2.88.2
|
||||
resolution: "request@npm:2.88.2"
|
||||
dependencies:
|
||||
@ -16438,13 +16315,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"rrweb-cssom@npm:^0.8.0":
|
||||
version: 0.8.0
|
||||
resolution: "rrweb-cssom@npm:0.8.0"
|
||||
checksum: 10c0/56f2bfd56733adb92c0b56e274c43f864b8dd48784d6fe946ef5ff8d438234015e59ad837fc2ad54714b6421384141c1add4eb569e72054e350d1f8a50b8ac7b
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"run-parallel@npm:^1.1.9":
|
||||
version: 1.2.0
|
||||
resolution: "run-parallel@npm:1.2.0"
|
||||
@ -19148,13 +19018,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"xmlhttprequest@npm:1.3.x":
|
||||
version: 1.3.0
|
||||
resolution: "xmlhttprequest@npm:1.3.0"
|
||||
checksum: 10c0/42d59ee0b20099bd3b618c12d99e1fb6efb9e2945d8dee779f015665a74ee0907a0e936b1f66dc4b89653c3d49bd02246195e4cc74601338babc17d9a43e8673
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"xtend@npm:^4.0.0":
|
||||
version: 4.0.2
|
||||
resolution: "xtend@npm:4.0.2"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user