Interop with DSPy #1281
AntonLobach
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I’m in the process of converting some DSPy code and currently working with the Signature class.
For example:
Since DSPy aims to abstract manual prompting, everything in the class above is used as context for the LLM. That is:
The docstring is required, it provides semantic meaning that the LLM relies on.
The actual names sentence and sentiment and the type hints convey semantic meaning to the LLM about the expected input and output.
What I was able to come up with so far:
It works but is there a more idiomatic/elegant way of writing that code in Basilisp?
Is there any way of inspecting generated Python AST from the REPL something akin to CL's disassemble?
Beta Was this translation helpful? Give feedback.
All reactions