Migrate to RAGStack

Migrating existing LangChain applications to RAGStack is very easy. RAGStack comes with a set of pinned, tested versions of the LangChain libraries and integrations.

The RAGStack CLI is the recommended way to manage your RAGStack projects. With the install command you can safely add or change the RAGStack version without worrying about transitive dependencies versions. This is especially important because RAGStack is a stack of multiple packages that are tested together for compatibility, performance, and security.

You don’t need to install the CLI, using npx is the recommended way to run it.

Move your terminal to the project you want to install RAGStack in and run the following command:

npx @datastax/ragstack-ai-cli install

This command will modify the package.json, install @datastax/ragstack-ai and refresh your local dependencies. The supported package managers are npm and yarn (both classic and berry).

The CLI automatically detects the package manager you are using and installs the correct version of RAGStack. However, if you never built the project before, it’s recommended to force a specific package manager by setting the --use-npm or --use-yarn option.

@datastax/ragstack-ai only includes a subset of the LangChain libraries, therefore you might want to keep some @langchain/* packages that are not included in RAGStack. To check what packages are included in RAGStack, you can run the following command:

npm show @datastax/ragstack-ai dependencies

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