Add DriverInfo to Langchain.js

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • 3
    • None
    • 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

      Now that NODE-6923 has been completed, https://github.com/langchain-ai/langchainjs should be updated with proper wrapping metadata that captures library/version.

      At the same time we can clean up the documented examples that include driverInfo as part of the example, as this would be superfluous.

      The driver version used by Langchain would need to be updated to ensure the appropriate API is available.

       

      AC:

      • Expose db from the Collection object in the driver
      • Expose client from the Db object in the driver
      • Use collection.db.client.appendMetadata() in langchain to add the driver info.

      Testing AC:

      • Attempt to spy on the mongo client in vectorstores.int.test.ts to ensure appendMetadata has been called with the appropriate driver info

            Assignee:
            Durran Jordan
            Reporter:
            Alex Bevilacqua
            None
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: