Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

chore: improve search tooltip (#7305)

Max Deichmanna695d58e8e25
diff --git a/web/src/components/table/data-table-toolbar.tsx b/web/src/components/table/data-table-toolbar.tsx
index a817b4b744..9f01433ea1 100644
--- a/web/src/components/table/data-table-toolbar.tsx
+++ b/web/src/components/table/data-table-toolbar.tsx
@@ -189,30 +189,22 @@ export function DataTableToolbar<TData, TValue>({
: "IDs / Names"}
<DocPopup
description={
- <>
+ searchConfig.tableAllowsFullTextSearch &&
+ (searchConfig.searchType ?? []).includes(
+ "content",
+ ) ? (
<p className="text-xs font-normal text-primary">
- <strong>Metadata search:</strong>{" "}
- {searchConfig.metadataSearchFields.join(", ")}
+ Searches in Input/Output and{" "}
+ {searchConfig.metadataSearchFields.join(", ")}.
+ For improved performance, please filter the table
+ down.
</p>
- {searchConfig.tableAllowsFullTextSearch ? (
- <>
- <p className="text-xs font-normal text-primary">
- <strong>Full text search:</strong> Input,
- Output
- </p>
- <br />
- <p className="text-xs font-normal text-primary">
- For improved performance, filter the table
- before searching.
- </p>
- </>
- ) : (
- <p className="mt-2 text-xs font-normal text-primary">
- Full text search (Input, Output) is not
- available for this table.
- </p>
- )}
- </>
+ ) : (
+ <p className="text-xs font-normal text-primary">
+ Searches in{" "}
+ {searchConfig.metadataSearchFields.join(", ")}.
+ </p>
+ )
}
/>
</span>