dspy
dspy copied to clipboard
feature(dspy): Add MyScale in Retrieve
Add MyScaleRM to support retrieval for MyScaleDB:
- MyScaleDB: https://github.com/myscale/myscaledb
Hi @usamajamil43, thanks for the contribution! left a few comments in the PR. Noticed some todos so feel free to mark the PR as ready to merge once the changes are made.
Couple of additional changes:
- can you run
ruff check . --fix-only
to fix the failing test? - could you add documentation for MyScaleRM to the Retrieval Model Clients API? Feel free to follow some of the example RM documentation for reference.
Hey @arnavsinghvi11 , I have fixed the issues and added the documentation. Kindly, take a look
Thanks @usamajamil43 ! LGTM. Unfortunately, I cannot test the caches for this myself, but could you verify that with the existing behavior before pushing? Also, the PR has a few merge conflicts to resolve but should be ready to merge following that!
Hi @usamajamil43 , could you run ruff check . --fix-only
and commit again? Ready to merge after that!
Hi, @arnavsinghvi11 Done!
Hi @usamajamil43 , can you rebase to the latest version on main? should fix the failing ruff test and ready to merge.
Hey @arnavsinghvi11,
I've tried to resolve the conflicts, but I'm still getting conflicts in files like lm.py and evaluate.py, which I haven't worked on. I'm not sure which changes to keep and which to discard in these files.
Hi @usamajamil43 , I believe if you rebase to the latest commit on the main branch and then run ruff, this should fix the existing error. I tried doing this by pulling your branch locally which resolved it, but I don't have access to push changes.
@arnavsinghvi11 Done!
@arnavsinghvi11 Can you please take a look? I was busy, so @ahsansaeed878 did the merge.
Thanks @usamajamil43 and @ahsansaeed878 for your patience with the PR! merged.