DSPy: The framework for programming—not prompting—language models
Python
chore: Simplified return qdrant_rm.py
Anush33949d015e12
diff --git a/dspy/retrieve/qdrant_rm.py b/dspy/retrieve/qdrant_rm.pyindex 1172cd23c..89a584928 100644--- a/dspy/retrieve/qdrant_rm.py+++ b/dspy/retrieve/qdrant_rm.py@@ -118,4 +118,4 @@ class QdrantRM(dspy.Retrieve):first_vector_name = list(vectors.keys())[0]# The collection has multiple vectors. Could also include the falsy unnamed vector - Empty string("")- return first_vector_name if first_vector_name else None+ return first_vector_name or None