Integrate Amazon Bedrock with Astra DB Serverless

query_builder 30 min

You can use Astra DB Serverless (Vector) databases with Amazon Bedrock.

This tutorial explains how to run a notebook in an Amazon SageMaker Studio environment. The notebook demonstrates a basic question-and-answer system with LangChain, Amazon Bedrock, and an Astra DB Serverless database.

Prerequisites

To complete this tutorial, you need the following:

Run the notebook in Amazon SageMaker

  1. Download the tutorial notebook from GitHub and save it locally.

  2. In the Amazon SageMaker console navigation pane, click Studio.

  3. Create or select a SageMaker domain.

    If you create a domain, set up a single user domain with the default settings.

  4. Create or select a user profile.

  5. Click Open Studio.

  6. Click JupyterLab.

  7. Click Create Jupyter Lab space.

  8. Enter a name for the space, and then click Create space.

  9. Leave the default settings as configured, and then click Run space.

    When the space is ready, the status changes to Running.

  10. To open the Jupyter Lab space, click Open.

  11. In the Jupyter Lab space, click Upload Files.

  12. Upload the tutorial notebook.

  13. To open the notebook, double-click it.

  14. To run the notebook, click Run, and then select Run All Cells.

  15. When prompted, input secrets required by the notebook, such as your application token.

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2024 DataStax | Privacy policy | Terms of use

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: +1 (650) 389-6000, info@datastax.com