[LangChain] Handle Cleanup of Clients

XMLWordPrintableJSON

    • None
    • Python Drivers
    • Not Needed
    • 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?
    • None
    • None
    • None
    • None
    • None
    • None

      Context

      All of our classes that use a collection object should either expose the collection object or have a close method that closes the collection object. There is no standard way of handling the cleanup of resources in LangChain, because not every backend requires a cleanup. For example, the SqlStore creates on-demand sessions for each operation.

      Definition of done

      Expose and document a consistent API for cleaning up resources.

      Pitfalls

      None

              Assignee:
              Steve Silvester
              Reporter:
              Steve Silvester
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: