Repository navigation
Conversation
Reviewer ChecklistPlease leverage this checklist to ensure your code review is thorough before approving Testing, Bugs, Errors, Logs, Documentation
System Compatibility
Quality
|
|
Hi maintainers — gentle bump on this fix for #7450. Drops |
|
Hi maintainers — circling back on this fix for #7450. Would love to hear if dropping |
|
Friendly ping — this PR has been open for a couple of days with CI passing. Would appreciate a review when time allows. |
|
Hi maintainers — following up again on this fix for #7450. Drops task from the required-field guard in Qwen EF build_from_config. CI is green. Would appreciate a review when time allows. Thanks! |
|
Friendly ping — this PR has been open for over 10 days with all CI green. Would appreciate a review when time allows. |
|
Hi maintainers — this PR has been open for over 2 weeks with all CI green. The fix drops |
|
Friendly ping — this PR has been open for over a week. CI is green and the fix is minimal. Would appreciate a review when time allows. Thanks! |
41bdf7d to
32f48a0
Compare
32f48a0 to
b000869
Compare
|
Friendly review ping — drops |
b000869 to
f438bf1
Compare
f438bf1 to
92521f6
Compare
…chroma-core#7450) The constructor accepts task=None, the runtime handles task=None, the JSON schema permits task=null, and get_config emits task=None — but build_from_config guarded with 'if model is None or task is None: assert False', making it impossible to reload a persisted collection whose Qwen EF used task=None. Only model is actually required; drop task from the guard.
92521f6 to
7c8989f
Compare
Problem
ChromaCloudQwenEmbeddingFunctiontreatstaskas optional everywhere exceptbuild_from_config, so a collection whose Qwen embedding function was created withtask=Nonecannot be reloaded.task: Optional[str], and the docstring says "If None or empty, empty instructions will be used"__call__/embed_query) handlestask=None(if self.task and ...)schemas/embedding_functions/chroma-cloud-qwen.jsondeclares"task": {"type": ["string", "null"]}get_config()emits{"task": None, ...}for such an EF, andvalidate_config()accepts itBut
build_from_configguarded withif model is None or task is None: assert False, so reloading a persisted collection whose Qwen EF usedtask=NoneraisesAssertionError, whichload_collection_configuration_from_jsonre-wraps asValueError("Could not build embedding function ...")— the collection becomes unusable.Fix
Only
modelis actually required; droptaskfrom the guard:Test
Added a real (non-mocked)
get_config→build_from_configround-trip regression test (TestQwenEmbeddingFunctionTaskNone.test_build_from_config_with_task_none). The existing parametrized round-trip test mocksbuild_from_config, so it never exercised this path.Fixes #7450