Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help me, please, great master, handsome guys and beautiful ladies #125

Open
sunshinecf opened this issue Aug 2, 2024 · 2 comments
Open

Comments

@sunshinecf
Copy link

I modified the Dsyp document signature string in the code to be dynamically set from the front-end page, but it seems not to take effect if I don't restart. Is this because Dsyp is dynamically compiled, causing this issue? How can I solve this problem?

@ikarth
Copy link

ikarth commented Aug 5, 2024

Sounds like an issue with how DSPy handles the signature strings. I believe you want to use the .with_instructions() function rather than editing the docstring directly.

@sunshinecf
Copy link
Author

11111
I need to pass the signature from the front-end page, because you specify Wikipedia, if it is another platform the signature will change, and some code will change where it fetches data from the page. My problem now is that after I change the signature, I need to dynamically compile DSPy as if the signature set up will be changed, this is a very distressing thing, the way I think of at present is to open a new process, that is, the first one did not close, opened a new web page, how to solve this problem from a new start, have a big god know how to solve it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants