Class PineconeTranslator

java.lang.Object
com.hw.langchain.chains.query.constructor.ir.Visitor
com.hw.langchain.retrievers.self.query.pinecone.PineconeTranslator

public class PineconeTranslator extends Visitor
Logic for converting internal query language elements to valid filters.
Author:
HamaWhite
  • Constructor Details

    • PineconeTranslator

      public PineconeTranslator()
  • Method Details

    • visitOperation

      public Map<String,Object> visitOperation(Operation operation)
      Description copied from class: Visitor
      Translates an Operation expression.
      Specified by:
      visitOperation in class Visitor
      Parameters:
      operation - the Operation expression to translate
      Returns:
      a map containing the translated result
    • visitComparison

      public Map<String,Object> visitComparison(Comparison comparison)
      Description copied from class: Visitor
      Translates a Comparison expression.
      Specified by:
      visitComparison in class Visitor
      Parameters:
      comparison - the Comparison expression to translate
      Returns:
      a map containing the translated result
    • visitStructuredQuery

      public Map<String,Object> visitStructuredQuery(StructuredQuery structuredQuery)
      Description copied from class: Visitor
      Translates a StructuredQuery expression.
      Specified by:
      visitStructuredQuery in class Visitor
      Parameters:
      structuredQuery - the StructuredQuery expression to translate
      Returns:
      a map containing the translated result