Add one or more professors to the platform's professor list and autocomplete. Use when asked to add a professor, register a new professor, update the professor list, or fix a professor not appearing in the dropdown.
Professor(s) to add: $ARGUMENTS
Read app/utils/professorNames.js to see the current list format and existing entries.
The file exports an array of professor objects. Each entry follows this shape:
{
name: "Full Name", // Displayed in UI, used in embeddings — must be exact
subjects: ["Subject A", "Subject B"] // Courses they teach
}
Rules:
name field is used verbatim in Pinecone embeddings — consistency matters for RAG retrievalAfter editing professorNames.js:
npm run devnpm run sync-pinecone to ensure their reviews will be indexed correctlyIf reviews already exist under this professor's name (possibly misspelled), check for consistency:
npm run test:metadata
This will surface any reviews whose professor name doesn't match the canonical list. Correct the Firestore documents manually if needed, then resync.
Removing a professor from professorNames.js only removes them from the autocomplete — it does NOT delete their reviews from Firestore or Pinecone. If a full removal is needed, the reviews must be deleted manually and vectors cleaned up with /api/delete-review-vectors.