mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-15 07:35:27 +03:00
better match with ui settings
This commit is contained in:
parent
53ac693938
commit
28139f265b
@ -161,10 +161,6 @@ export default function SearchSettingsView({
|
|||||||
Semantic Search in Frigate allows you to find tracked objects
|
Semantic Search in Frigate allows you to find tracked objects
|
||||||
within your review items using either the image itself, a
|
within your review items using either the image itself, a
|
||||||
user-defined text description, or an automatically generated one.
|
user-defined text description, or an automatically generated one.
|
||||||
This feature works by creating embeddings — numerical vector
|
|
||||||
representations — for both the images and text descriptions of
|
|
||||||
your tracked objects. By comparing these embeddings, Frigate
|
|
||||||
assesses their similarities to deliver relevant search results.
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div className="flex items-center text-primary">
|
<div className="flex items-center text-primary">
|
||||||
@ -182,52 +178,53 @@ export default function SearchSettingsView({
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="flex w-full max-w-lg flex-col space-y-6">
|
<div className="flex w-full max-w-lg flex-col space-y-6">
|
||||||
<div className="flex flex-row items-center justify-between">
|
<div className="flex flex-row items-center">
|
||||||
<div className="space-y-0.5">
|
|
||||||
<Label htmlFor="improve-contrast">Enabled</Label>
|
|
||||||
</div>
|
|
||||||
<Switch
|
<Switch
|
||||||
id="enabled"
|
id="enabled"
|
||||||
className="ml-3"
|
className="mr-3"
|
||||||
disabled={searchSettings.enabled === undefined}
|
disabled={searchSettings.enabled === undefined}
|
||||||
checked={searchSettings.enabled === true}
|
checked={searchSettings.enabled === true}
|
||||||
onCheckedChange={(isChecked) => {
|
onCheckedChange={(isChecked) => {
|
||||||
handleSearchConfigChange({ enabled: isChecked });
|
handleSearchConfigChange({ enabled: isChecked });
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
|
||||||
<div className="flex flex-row items-center justify-between">
|
|
||||||
<div className="space-y-0.5">
|
<div className="space-y-0.5">
|
||||||
<Label htmlFor="improve-contrast">Re-Index On Startup</Label>
|
<Label htmlFor="enabled">Enabled</Label>
|
||||||
<div className="text-sm text-muted-foreground">
|
</div>
|
||||||
Re-indexing will reprocess all thumbnails and descriptions (if
|
</div>
|
||||||
enabled) and apply the embeddings on each startup. Don't forget
|
<div className="flex flex-col">
|
||||||
to disable the option after restarting!
|
<div className="flex flex-row items-center">
|
||||||
|
<Switch
|
||||||
|
id="reindex"
|
||||||
|
className="mr-3"
|
||||||
|
disabled={searchSettings.reindex === undefined}
|
||||||
|
checked={searchSettings.reindex === true}
|
||||||
|
onCheckedChange={(isChecked) => {
|
||||||
|
handleSearchConfigChange({ reindex: isChecked });
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
<div className="space-y-0.5">
|
||||||
|
<Label htmlFor="reindex">Re-Index On Startup</Label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<Switch
|
<div className="mt-3 text-sm text-muted-foreground">
|
||||||
id="enabled"
|
Re-indexing will reprocess all thumbnails and descriptions (if
|
||||||
className="ml-3"
|
enabled) and apply the embeddings on each startup. Don't forget to
|
||||||
disabled={searchSettings.reindex === undefined}
|
disable the option after restarting!
|
||||||
checked={searchSettings.reindex === true}
|
</div>
|
||||||
onCheckedChange={(isChecked) => {
|
|
||||||
handleSearchConfigChange({ reindex: isChecked });
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
<Separator className="my-2 flex bg-secondary" />
|
<div className="mt-2 flex flex-col space-y-6">
|
||||||
<div className="mt-2 flex flex-row space-x-5 space-y-3">
|
|
||||||
<div className="space-y-0.5">
|
<div className="space-y-0.5">
|
||||||
<div className="text-sm">Model Size</div>
|
<div className="text-md">Model Size</div>
|
||||||
<div className="my-2 space-y-1 text-sm text-muted-foreground">
|
<div className="space-y-1 text-sm text-muted-foreground">
|
||||||
<p>
|
<p>
|
||||||
The size of the model used for semantic search embeddings.
|
The size of the model used for semantic search embeddings.
|
||||||
</p>
|
</p>
|
||||||
<ul className="list-disc pl-5 text-sm">
|
<ul className="list-disc pl-5 text-sm">
|
||||||
<li>
|
<li>
|
||||||
Using <em>small</em> employs a quantized version of the
|
Using <em>small</em> employs a quantized version of the
|
||||||
model that uses much less RAM and runs faster on CPU with a
|
model that uses less RAM and runs faster on CPU with a very
|
||||||
very negligible difference in embedding quality.
|
negligible difference in embedding quality.
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
Using <em>large</em> employs the full Jina model and will
|
Using <em>large</em> employs the full Jina model and will
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user