stanfordnlp / dspy

DSPy: The framework for programming—not prompting—foundation models
https://dspy-docs.vercel.app/
MIT License
18.27k stars 1.39k forks source link

Docs feat request: Modules, Optimizers, LMs, RMs should have links back to the source code somewhere on the page #1709

Open isaacbmiller opened 1 day ago

isaacbmiller commented 1 day ago

This is an opinion, but it would be great if the different signatures had links back to source code.

E.g. https://dspy-docs.vercel.app/deep-dive/modules/react/ should link back to https://github.com/stanfordnlp/dspy/blob/main/dspy/predict/react.py

isaacbmiller commented 1 day ago

cc @krypticmouse thoughts?

krypticmouse commented 1 day ago

Good idea, we might have API refs back at some point and when that happens we can probably add this in them?

okhat commented 1 day ago

cc'ing also @ammirsm