Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: Update in-app copy #4448

Merged
merged 14 commits into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion electron/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,4 +144,4 @@
"hoistingLimits": "workspaces"
},
"packageManager": "[email protected]"
}
}
Empty file added electron/package.tmp
Empty file.
29 changes: 15 additions & 14 deletions extensions/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down
25 changes: 4 additions & 21 deletions web/screens/Thread/ThreadRightPanel/Tools/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down Expand Up @@ -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">
Expand All @@ -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>
Expand All @@ -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. Newer content gets higher importance when finding relevant information."
/>
<div className="ml-auto flex items-center justify-between">
<Switch
Expand Down
30 changes: 15 additions & 15 deletions web/utils/predefinedComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
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',
Expand All @@ -16,7 +16,7 @@
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',
Expand All @@ -28,7 +28,7 @@
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,
Expand All @@ -42,7 +42,7 @@
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,
Expand All @@ -56,7 +56,7 @@
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.',

Check failure on line 59 in web/utils/predefinedComponent.ts

View workflow job for this annotation

GitHub Actions / test-on-ubuntu

Insert `⏎·····`

Check failure on line 59 in web/utils/predefinedComponent.ts

View workflow job for this annotation

GitHub Actions / test-on-macos

Insert `⏎·····`

Check failure on line 59 in web/utils/predefinedComponent.ts

View workflow job for this annotation

GitHub Actions / coverage-check

Insert `⏎·····`

Check failure on line 59 in web/utils/predefinedComponent.ts

View workflow job for this annotation

GitHub Actions / test-on-windows-pr

Insert `␍⏎·····`
controllerType: 'slider',
controllerProps: {
min: 1,
Expand All @@ -81,7 +81,7 @@
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,
Expand All @@ -92,7 +92,7 @@
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,
Expand All @@ -106,7 +106,7 @@
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,
Expand All @@ -120,7 +120,7 @@
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,
Expand All @@ -134,7 +134,7 @@
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,
Expand All @@ -149,7 +149,7 @@
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,
Expand All @@ -164,7 +164,7 @@
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.',

Check failure on line 167 in web/utils/predefinedComponent.ts

View workflow job for this annotation

GitHub Actions / test-on-ubuntu

Insert `⏎·····`

Check failure on line 167 in web/utils/predefinedComponent.ts

View workflow job for this annotation

GitHub Actions / test-on-macos

Insert `⏎·····`

Check failure on line 167 in web/utils/predefinedComponent.ts

View workflow job for this annotation

GitHub Actions / coverage-check

Insert `⏎·····`

Check failure on line 167 in web/utils/predefinedComponent.ts

View workflow job for this annotation

GitHub Actions / test-on-windows-pr

Insert `␍⏎·····`
controllerType: 'slider',
controllerProps: {
min: 128,
Expand All @@ -178,7 +178,7 @@
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.',

Check failure on line 181 in web/utils/predefinedComponent.ts

View workflow job for this annotation

GitHub Actions / test-on-ubuntu

Insert `⏎·····`

Check failure on line 181 in web/utils/predefinedComponent.ts

View workflow job for this annotation

GitHub Actions / test-on-macos

Insert `⏎·····`

Check failure on line 181 in web/utils/predefinedComponent.ts

View workflow job for this annotation

GitHub Actions / coverage-check

Insert `⏎·····`

Check failure on line 181 in web/utils/predefinedComponent.ts

View workflow job for this annotation

GitHub Actions / test-on-windows-pr

Insert `␍⏎·····`
controllerType: 'slider',
controllerProps: {
min: 32,
Expand All @@ -192,7 +192,7 @@
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.',

Check failure on line 195 in web/utils/predefinedComponent.ts

View workflow job for this annotation

GitHub Actions / test-on-ubuntu

Insert `⏎·····`

Check failure on line 195 in web/utils/predefinedComponent.ts

View workflow job for this annotation

GitHub Actions / test-on-macos

Insert `⏎·····`

Check failure on line 195 in web/utils/predefinedComponent.ts

View workflow job for this annotation

GitHub Actions / coverage-check

Insert `⏎·····`

Check failure on line 195 in web/utils/predefinedComponent.ts

View workflow job for this annotation

GitHub Actions / test-on-windows-pr

Insert `␍⏎·····`
controllerType: 'slider',
controllerProps: {
min: 1,
Expand All @@ -206,8 +206,8 @@
retrieval_template: {
key: 'retrieval_template',
title: 'Retrieval Template',
description:

Check failure on line 209 in web/utils/predefinedComponent.ts

View workflow job for this annotation

GitHub Actions / test-on-ubuntu

Delete `⏎·····`

Check failure on line 209 in web/utils/predefinedComponent.ts

View workflow job for this annotation

GitHub Actions / test-on-macos

Delete `⏎·····`

Check failure on line 209 in web/utils/predefinedComponent.ts

View workflow job for this annotation

GitHub Actions / coverage-check

Delete `⏎·····`

Check failure on line 209 in web/utils/predefinedComponent.ts

View workflow job for this annotation

GitHub Actions / test-on-windows-pr

Delete `␍⏎·····`
'The template to use for retrieval. The following variables are available: {CONTEXT}, {QUESTION}',
'Format for how the AI uses context to answer questions.',
controllerType: 'input',
controllerProps: {
placeholder: 'Retrieval Template',
Expand Down
Loading
Loading