Disable counting num of matches in search bar, since this is non-trivial now

This commit is contained in:
Ian Arawjo 2025-02-24 17:30:16 -05:00
parent 548e84dba0
commit 33548fde45
2 changed files with 5 additions and 7 deletions

View File

@ -493,7 +493,7 @@ const LLMResponseInspector: React.FC<LLMResponseInspectorProps> = ({
// Regroup responses by batch ID
let responses = batchedResponses;
let numResponsesDisplayed = 0;
// let numResponsesDisplayed = 0;
const selected_vars = multiSelectValue;
const empty_cell_text =
searchValue.length > 0 ? "(no match)" : "(no data)";
@ -570,7 +570,7 @@ const LLMResponseInspector: React.FC<LLMResponseInspectorProps> = ({
(typeof r === "string" || typeof r === "number") &&
search_regex.test(StringLookup.get(r) ?? ""),
);
numResponsesDisplayed += filtered_resps.length;
// numResponsesDisplayed += filtered_resps.length;
if (filterBySearchValue) return filtered_resps;
else return responses;
};
@ -1070,7 +1070,7 @@ const LLMResponseInspector: React.FC<LLMResponseInspectorProps> = ({
setResponseDivs(divs);
}
setNumMatches(numResponsesDisplayed);
// setNumMatches(numResponsesDisplayed);
});
};
@ -1112,8 +1112,8 @@ const LLMResponseInspector: React.FC<LLMResponseInspectorProps> = ({
<TextInput
id="search_bar"
label={
"Find" +
(searchValue.length > 0 ? ` (${numMatches}/${numResponses})` : "")
"Find"
// + (searchValue.length > 0 ? ` (${numMatches}/${numResponses})` : "")
}
autoComplete="off"
size={sz}

View File

@ -173,8 +173,6 @@ export class StringLookup {
s.indexToString.push(str);
s.stringToIndex.set(str, index);
console.log("Interned", s.stringToIndex);
// Save to cache
StorageCache.store("__s", s.indexToString);