Skip to content

GoogleCloudPlatform/cloud-spanner-samples

Spanner Sample Apps and Notebooks

This repository contains notebooks and sample apps that demonstrate how to use, develop, and manage Spanner on Google Cloud. For additional samples by programming language, refer to the following repositories:

See respective README files in sub-directories for details.

Sample applications

  • ADK on knowledge graph: Create a knowledge graph from documentation and YouTube videos. Use agents to create comic strips with Nano Banana to answer questions using the knowledge graph.
  • Banking: Java-based application featuring AI integration, full-text search and BigQuery federation.
  • Chunking: Document chunking for RAG.
  • Finance: gRPC server and workload generator to demonstrate key Spanner capabilities.
  • LoR: Using Dataflow, Cloud Run and Spanner to explore Lord of the Rings characters.
  • Network Digital Twin: Advanced usage of graph to Spanner Graph to model, visualize, and query a complex telecommunications network.
  • Transit Fraud Detector: Advanced usage of graph capabilities to detect fraud.

Notebooks

Some of these notebooks are hosted in external Google Cloud repositories.

Code of Conduct

Please review the Code of Conduct.

Licensing

Contributing

If you are interested in contributing, more details on how to do so are provided on the Contributing page.

Source Code Headers

Every file containing source code must include copyright and license information. This includes any JS/CSS files that you might be serving out to browsers. (This is to help well-intentioned people avoid accidental copying that doesn't comply with the license.)