SAN FRANCISCO — The woman whose accusations of gender discrimination against an elite venture-capital firm rattled Silicon Valley is set to go to trial this week in a case that could be worth tens of millions of dollars.

Ellen Pao, a former junior partner at Kleiner Perkins Caufield & Byers, accuses the Menlo Park firm of denying her a promotion and retaliating when she complained male partners had made inappropriate sexual advances.