mirror of
https://github.com/ianarawjo/ChainForge.git
synced 2025-03-14 08:16:37 +00:00
Disable counting num of matches in search bar, since this is non-trivial now
This commit is contained in:
parent
548e84dba0
commit
33548fde45
@ -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}
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user