Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Discussion options

You must be logged in to vote

Thanks for the question!

Currently the easiest way to run Dspy within CocoIndex is to call it within a custom function. It's very easy to define a custom function, and you can call any Python library from it (example of converting PDFs into list of images) - so you can also call Dspy from it. We'll also create a new example that calls Dspy soon.

Note that we'll also consider adding builtin functions that integrate with Dspy later. Since Dspy is very flexible and provides many modules / optimizers / etc., it's likely to be a series of builtin functions. We may do this if we see it'll provide significant convenience. But wrapping the custom Dspy invocation code with custom functions should …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by oliverzy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants