Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: googleapis/langchain-google-spanner-python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.4.1
Choose a base ref
...
head repository: googleapis/langchain-google-spanner-python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.5.0
Choose a head ref
  • 5 commits
  • 12 files changed
  • 8 contributors

Commits on Oct 7, 2024

  1. chore(deps): update python-nonmajor (#93)

    Co-authored-by: Averi Kitsch <akitsch@google.com>
    renovate-bot and averikitsch authored Oct 7, 2024
    Configuration menu
    Copy the full SHA
    c6203bd View commit details
    Browse the repository at this point in the history

Commits on Oct 10, 2024

  1. Update document_loader.ipynb (#101)

    1. Moved "instance id", "database", and "table" values initiation after the "Automatically restart kernel after installs" cell to retain variable values after restart.
    
    2. Adding missing - sign to package install code
    
    3. Set-up GOOGLE_CLOUD_PROJECT env variable, it is needed in the document loader function
    vmanghnani authored Oct 10, 2024
    Configuration menu
    Copy the full SHA
    ec1b346 View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2024

  1. Configuration menu
    Copy the full SHA
    cb9ba08 View commit details
    Browse the repository at this point in the history

Commits on Nov 25, 2024

  1. feat(graph): add Spanner Graph support to LangChain GraphStore interf…

    …ace (#104)
    
    * feat(graph): add Spanner Graph support to LangChain GraphStore interface
    
    1) Add SpannerGraphStore implementation of GraphStore;
    2) Add an integration test;
    3) Add a notebook to demonstrate the usage;
    4) Misc updates: requirements, __init__
    
    * Allow more flexible input that can generated by LLMs
    
    1) same edge label between different types of nodes
    
    E.g.
    
    Company FOCUS_ON Product
    Company FOCUS_ON Technology
    
    2) the same doc contains multiple nodes/edges with the same key fields.
    
    E.g.
    
    Merge
      Company(id='Google', properties={'p1':'a1', 'p3':'a3'}),
      Company(id='Google', properties={'p2':'a2', 'p3':'a4'})
    into
      Company(id='Google', properties={'p1':'a1', 'p2':'a2', 'p3':'a4'})
    
    This is due to Spanner DML doesn't support updating the same row twice
    in the same DML. We could also separate each node/edge into a separate
    DML which can be very slow.
    
    * style: formatting
    
    * style: formatting
    
    * Address various review feedbacks
    
    1) Fix style of python notebook;
    2) GraphStore:
       - improve a corner case by avoiding full set iteration;
       - add some null checking;
       - move utilities around.
    
    * Format the notebook
    
    * Fix linter error
    
    * Fix type annotation
    
    * Use batch table insertion API instead of transaction DML API
    
    * Minor fixes & cleanups: colab, requirements, tests, schema corner cases
    
    ---------
    
    Co-authored-by: Gaurav Purohit <purohitgaurav0612@gmail.com>
    Co-authored-by: gauravpurohit <gauravpurohit@google.com>
    3 people authored Nov 25, 2024
    Configuration menu
    Copy the full SHA
    98c2f8f View commit details
    Browse the repository at this point in the history
  2. chore(main): release 0.5.0 (#109)

    Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
    release-please[bot] authored Nov 25, 2024
    Configuration menu
    Copy the full SHA
    28c0add View commit details
    Browse the repository at this point in the history
Loading