Uploaded image for project: 'Python Integrations'
  1. Python Integrations
  2. INTPYTHON-330

LangChain: Add support for MongoDBGraphStore

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • langchain-mongodb-0.5
    • Affects Version/s: None
    • Component/s: None
    • None
    • Python Drivers
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      Definition of done

      • Implement the following class in the langchain-mongoDB package 
      class MongoDBGraphStore:
          
      @abstractmethod   
      def get_schema(self) -> str:
              """Return the schema of the Graph database"""
              pass    @property
          
      @abstractmethod    
      def get_structured_schema(self) -> Dict[str, Any]:
              """Return the schema of the Graph database"""
              pass    @abstractmethod
         
      def query(self, query: str, params: dict = {}) -> List[Dict[str, Any]]:
              """Query the graph."""
              pass    @abstractmethod
          
      def refresh_schema(self) -> None:
              """Refresh the graph schema information."""
              pass    @abstractmethod
        
      def add_graph_documents(
              self, graph_documents: List[GraphDocument], include_source: bool = False
          ) -> None:
              """Take GraphDocument as input as uses it to construct a graph."""
              pass 

            Assignee:
            casey.clements@mongodb.com Casey Clements
            Reporter:
            prakul.agarwal@mongodb.com Prakul Agarwal
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: