The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
add allowed_operators property in QdrantTranslator (#12328)
Qihui Xie6720458c7dae
diff --git a/libs/langchain/langchain/retrievers/self_query/qdrant.py b/libs/langchain/langchain/retrievers/self_query/qdrant.pyindex 55dc8d3457..e76c716db2 100644--- a/libs/langchain/langchain/retrievers/self_query/qdrant.py+++ b/libs/langchain/langchain/retrievers/self_query/qdrant.py@@ -18,6 +18,13 @@ if TYPE_CHECKING:class QdrantTranslator(Visitor):"""Translate `Qdrant` internal query language elements to valid filters."""+ allowed_operators = (+ Operator.AND,+ Operator.OR,+ Operator.NOT,+ )+ """Subset of allowed logical operators."""+allowed_comparators = (Comparator.EQ,Comparator.LT,