-
Notifications
You must be signed in to change notification settings - Fork 5
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
feat(core): Implement generic Options class #248
Conversation
Code Coverage Summary
Diff against main
Results for commit: b60a1e3 Minimum allowed coverage is ♻️ This comment has been updated with latest results |
Trivy scanning results. .venv/lib/python3.10/site-packages/PyJWT-2.9.0.dist-info/METADATA (secrets)Total: 1 (MEDIUM: 1, HIGH: 0, CRITICAL: 0) MEDIUM: JWT (jwt-token) .venv/lib/python3.10/site-packages/litellm/llms/huggingface/huggingface_llms_metadata/hf_text_generation_models.txt (secrets)Total: 1 (MEDIUM: 0, HIGH: 0, CRITICAL: 1) CRITICAL: HuggingFace (hugging-face-access-token) .venv/lib/python3.10/site-packages/litellm/proxy/_types.py (secrets)Total: 1 (MEDIUM: 1, HIGH: 0, CRITICAL: 0) MEDIUM: Slack (slack-web-hook) |
I don’t see any refactoring for the rerankers interface—was that intentional or just missed? It looks like they’ll need the new interface too. |
I missed that, was focused only on changes to the ragbits-core. Thanks for catching that, I'll refactor rerankers too |
@micpst @ludwiktrammer I've implemented the |
f6a94fb
to
be3b2d2
Compare
This PR intoduces generic Options class that can be used with Embeddings, LLMs, VectoreStores that allows for convenient management of params passed to underlying APIs . It enables strong typing, but also allows for specifying extra params without changing core package code.