Skip to content

Commit c305e92

Browse files
committed
chore: narrow chatbot docs pr scope
1 parent c41aa39 commit c305e92

24 files changed

Lines changed: 527 additions & 1263 deletions

.logs/start/api-server.log

Lines changed: 0 additions & 35 deletions
This file was deleted.

.logs/start/data-server.log

Lines changed: 0 additions & 1 deletion
This file was deleted.

.logs/start/pytc-server.log

Lines changed: 0 additions & 21 deletions
This file was deleted.

.logs/start/react-build.log

Lines changed: 0 additions & 67 deletions
This file was deleted.

.logs/start/react-dev.log

Lines changed: 0 additions & 23 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ uv run python server_api/chatbot/update_faiss.py
5151
You can override the embeddings endpoint if needed:
5252

5353
```
54-
OLLAMA_BASE_URL=http://localhost:11434 uv run python server_api/chatbot/update_faiss.py
54+
OLLAMA_BASE_URL=http://cscigpu08.bc.edu:4443 uv run python server_api/chatbot/update_faiss.py
5555
```
5656

5757
If restarting after a crash or interrupted session, kill any lingering processes first:

client/preload.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ const { contextBridge, ipcRenderer } = require("electron");
22

33
contextBridge.exposeInMainWorld("electronAPI", {
44
isElectron: true,
5-
openLocalFile: (options = {}) =>
6-
ipcRenderer.invoke("open-local-file", options),
5+
openLocalFile: (options = {}) => ipcRenderer.invoke("open-local-file", options),
76
revealInFinder: (targetPath) =>
87
ipcRenderer.invoke("reveal-in-finder", targetPath),
98
});

client/src/components/RuntimeLogPanel.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ function RuntimeLogPanel({ title, runtime, onRefresh }) {
117117
background: "#fff",
118118
border: "1px solid #f0f0f0",
119119
fontFamily:
120-
"ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, monospace",
120+
'ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, monospace',
121121
fontSize: 12,
122122
color: "#262626",
123123
wordBreak: "break-word",
@@ -142,7 +142,7 @@ function RuntimeLogPanel({ title, runtime, onRefresh }) {
142142
whiteSpace: "pre-wrap",
143143
wordBreak: "break-word",
144144
fontFamily:
145-
"ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, monospace",
145+
'ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, monospace',
146146
}}
147147
>
148148
{text || "No runtime logs captured yet."}

client/src/components/YamlFileUploader.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -490,11 +490,7 @@ const YamlFileUploader = (props) => {
490490
{yamlContent ? (
491491
<Row>
492492
{sliderData.map((param, index) => {
493-
const sliderValue = getSliderValue(
494-
currentYamlData,
495-
type,
496-
param.key,
497-
);
493+
const sliderValue = getSliderValue(currentYamlData, type, param.key);
498494
const sliderSupported = isSliderSupported(
499495
currentYamlData,
500496
type,
@@ -511,11 +507,7 @@ const YamlFileUploader = (props) => {
511507
min={param.min}
512508
max={param.max}
513509
marks={param.marks}
514-
value={
515-
typeof sliderValue === "number"
516-
? sliderValue
517-
: param.value
518-
}
510+
value={typeof sliderValue === "number" ? sliderValue : param.value}
519511
disabled={!sliderSupported}
520512
onChange={(newValue) =>
521513
handleSliderChange(param.key, newValue)

client/src/configSchema.js

Lines changed: 24 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -135,26 +135,14 @@ export function setTrainingOutputPath(configObj, outputPath) {
135135
}
136136
const checkpointsPath = joinPath(outputPath, "checkpoints");
137137
if (hasPath(configObj, ["train", "monitor", "checkpoint", "dirpath"])) {
138-
setPathValue(
139-
configObj,
140-
["train", "monitor", "checkpoint", "dirpath"],
141-
checkpointsPath,
142-
);
138+
setPathValue(configObj, ["train", "monitor", "checkpoint", "dirpath"], checkpointsPath);
143139
return;
144140
}
145141
if (hasPath(configObj, ["monitor", "checkpoint", "dirpath"])) {
146-
setPathValue(
147-
configObj,
148-
["monitor", "checkpoint", "dirpath"],
149-
checkpointsPath,
150-
);
142+
setPathValue(configObj, ["monitor", "checkpoint", "dirpath"], checkpointsPath);
151143
return;
152144
}
153-
setPathValue(
154-
configObj,
155-
["monitor", "checkpoint", "dirpath"],
156-
checkpointsPath,
157-
);
145+
setPathValue(configObj, ["monitor", "checkpoint", "dirpath"], checkpointsPath);
158146
}
159147

160148
export function setInferenceOutputPath(configObj, outputPath) {
@@ -164,11 +152,7 @@ export function setInferenceOutputPath(configObj, outputPath) {
164152
setPathValue(configObj, ["INFERENCE", "OUTPUT_PATH"], outputPath);
165153
return;
166154
}
167-
setPathValue(
168-
configObj,
169-
["inference", "save_prediction", "output_path"],
170-
outputPath,
171-
);
155+
setPathValue(configObj, ["inference", "save_prediction", "output_path"], outputPath);
172156
}
173157

174158
export function setInferenceExecutionDefaults(configObj) {
@@ -228,14 +212,16 @@ export function applyInputPaths(
228212
}
229213

230214
if (mode === "training") {
231-
const imagePath = pickFirstExistingPath(configObj, [
232-
["train", "data", "train", "image"],
233-
["data", "train", "image"],
234-
]) || ["train", "data", "train", "image"];
235-
const labelPath = pickFirstExistingPath(configObj, [
236-
["train", "data", "train", "label"],
237-
["data", "train", "label"],
238-
]) || ["train", "data", "train", "label"];
215+
const imagePath =
216+
pickFirstExistingPath(configObj, [
217+
["train", "data", "train", "image"],
218+
["data", "train", "image"],
219+
]) || ["train", "data", "train", "image"];
220+
const labelPath =
221+
pickFirstExistingPath(configObj, [
222+
["train", "data", "train", "label"],
223+
["data", "train", "label"],
224+
]) || ["train", "data", "train", "label"];
239225
setPathValue(configObj, imagePath, inputImagePath);
240226
setPathValue(configObj, labelPath, inputLabelPath);
241227
if (outputPath) {
@@ -244,14 +230,16 @@ export function applyInputPaths(
244230
return;
245231
}
246232

247-
const imagePath = pickFirstExistingPath(configObj, [
248-
["test", "data", "test", "image"],
249-
["data", "test", "image"],
250-
]) || ["test", "data", "test", "image"];
251-
const labelPath = pickFirstExistingPath(configObj, [
252-
["test", "data", "test", "label"],
253-
["data", "test", "label"],
254-
]) || ["test", "data", "test", "label"];
233+
const imagePath =
234+
pickFirstExistingPath(configObj, [
235+
["test", "data", "test", "image"],
236+
["data", "test", "image"],
237+
]) || ["test", "data", "test", "image"];
238+
const labelPath =
239+
pickFirstExistingPath(configObj, [
240+
["test", "data", "test", "label"],
241+
["data", "test", "label"],
242+
]) || ["test", "data", "test", "label"];
255243
setPathValue(configObj, imagePath, inputImagePath);
256244
if (hasLabelPath) {
257245
setPathValue(configObj, labelPath, inputLabelPath);

0 commit comments

Comments
 (0)