Class PineconeTranslator
java.lang.Object
com.hw.langchain.chains.query.constructor.ir.Visitor
com.hw.langchain.retrievers.self.query.pinecone.PineconeTranslator
Logic for converting internal query language elements to valid filters.
- Author:
- HamaWhite
-
Field Summary
Fields inherited from class com.hw.langchain.chains.query.constructor.ir.Visitor
allowedComparators, allowedOperators
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvisitComparison
(Comparison comparison) Translates a Comparison expression.visitOperation
(Operation operation) Translates an Operation expression.visitStructuredQuery
(StructuredQuery structuredQuery) Translates a StructuredQuery expression.Methods inherited from class com.hw.langchain.chains.query.constructor.ir.Visitor
getAllowedComparators, getAllowedOperators
-
Constructor Details
-
PineconeTranslator
public PineconeTranslator()
-
-
Method Details
-
visitOperation
Description copied from class:Visitor
Translates an Operation expression.- Specified by:
visitOperation
in classVisitor
- Parameters:
operation
- the Operation expression to translate- Returns:
- a map containing the translated result
-
visitComparison
Description copied from class:Visitor
Translates a Comparison expression.- Specified by:
visitComparison
in classVisitor
- Parameters:
comparison
- the Comparison expression to translate- Returns:
- a map containing the translated result
-
visitStructuredQuery
Description copied from class:Visitor
Translates a StructuredQuery expression.- Specified by:
visitStructuredQuery
in classVisitor
- Parameters:
structuredQuery
- the StructuredQuery expression to translate- Returns:
- a map containing the translated result
-