This article explains how you can use Unity Catalog for AI use cases. Unity Catalog integrates with popular GenAI tools like LangChain, LlamaIndex, OpenAI, Anthropic, and many others to make it easy to manage data, functions, and access control across AI platforms.
Unity Catalog makes sure that your AI tools are secure, well-organized, and easily accessible across all supported AI platforms.
Here is a pseudocode example that shows how you can define an AI function once in Unity Catalog with Python and use it across two different GenAI platforms, LangChain and LlamaIndex:
Additionally, this article will show you how to get started with Unity Catalog AI. You will also learn about all the great benefits of using Unity Catalog’s native integrations with popular GenAI tools.
Why do I need Unity Catalog AI?
Unity Catalog AI is a great tool for your GenAI use cases because it makes it easier to:
- create and manage AI agents
- secure your AI applications with robust access control mechanisms
- test workflows across different GenAI platforms

Let’s take a look at each one of these benefits in detail.
Create and Manage Agents
Creating and managing AI agents can get very complicated, especially if you are using multiple GenAI tools. Each tool uses its own syntax and protocols and getting these to work together smoothly can be painful. This is especially relevant when you’re trying to compare performance of agents across different AI platforms or when you need to switch GenAI platform because of availability or compliance reasons.
Unity Catalog AI simplifies this for you with a single function definition in standard Python. This makes it much easier to create and manage AI agents.
For example, here’s how to create a Unity Catalog function that counts the characters (excl. whitespaces) in a given string:
Your function needs to meet the following criteria:
- All arguments and the return of the function should be properly typed.
- The docstring should follow Google-style guidelines and include descriptions for the function, each argument, and the return of the function. These are required for proper interpretation of the function and output by the LLM.
- Import statements for any packages not in the core Python library should be defined within the function body.
Once your function is defined in Unity Catalog, you can call it directly from any of the supported AI platforms without having to worry about compatibility or rewriting code to match the platform’s syntax.
Secure your AI applications
Unity Catalog is built to provide robust and granular access control for all your data and AI assets. This same security architecture extends to Unity Catalog’s AI integrations.
Here is how Unity Catalog AI helps you to secure your AI applications:
- Only authorized users and agents can access and execute UC Functions.
- You can define precise permissions at the catalog, schema and function levels.
- You can track and audit function usage for compliance and monitoring purposes.

Smooth interoperability
Once you have defined your function in Unity Catalog, you can use this same code logic in any supported GenAI tool.
For example, let’s say you create an agent in LangChain to help you parse lengthy text documents. You may spend a couple of hours writing the code to get this agent to do exactly what you want and to return the desired output in the correct format. The next day, your colleague shows you a cool new agent capability in LlamaIndex that could perform the same task and claims it will be faster. To test this new tool, you will now have to rewrite all your code logic to match the LlamaIndex protocols.
Unity Catalog supports full interoperability between all supported platforms. You don’t need to worry about translating syntax. Unity Catalog AI handles all of that for you under the hood.
How to Install Unity Catalog AI
Follow the steps below to install Unity Catalog with support for GenAI integrations. You will need to have Python installed on your machine. For simplified type hinting, we strongly recommend using Python 3.10+.
- Install the unitycatalog-ai library from PyPi:
- Clone the unity-catalog Github repository:
- Launch a local Unity Catalog server by navigating to the root directory of the cloned Unity Catalog repository and running:
You will need Java 17+ installed on your machine to run the Unity Catalog server.
- Verify that the Unity Catalog server is running and that you are able to create catalogs, schemas, and functions by running the following commands:
Great job, you’re all set up to launch your AI integrations.
Unity Catalog AI with LangChain
You will need to install these additional packages to use Unity Catalog with LangChain:
pip install langchain_openai unitycatalog-langchain
After defining your Python function and registering it to Unity Catalog, you can call it from within your LangChain agent by using the create_tool_calling_agent module and the AgentExecutor:
Unity Catalog AI with LlamaIndex
You will need to install these additional packages to use Unity Catalog with LangChain:
pip install llama-index unitycatalog-llamaindex
After defining your Python function and registering it to Unity Catalog, you can call it from within your LangChain agent by using the ReActAgent module:
For a more involved example check out the documentation.
Unity Catalog AI with OpenAI
You will need to install these additional packages to use Unity Catalog with LangChain:
pip install openai unitycatalog-openai
After defining your Python function and registering it to Unity Catalog, you can call it from within your LangChain agent by using the openai.chat.completions module:
For a more involved example check out the documentation and the example notebook on Github.
Which integrations are supported?
The community is super excited about the interoperability and features of Unity Catalog AI. New integrations are constantly being built.
Here is a selection of supported integrations at the time of publication:
- LangChain
- LlamaIndex
- OpenAI
- Gemini
- Anthropic
- LiteLLM
- CrewAI
- AutoGen
Take a look at the AI Integrations documentation for an updated and comprehensive list of supported integrations.
Who should use Unity Catalog AI?
Unity Catalog AI is a great tool for teams working with Generative AI who need a secure, scalable, and efficient way to manage AI functions. It simplifies development, guarantees security, and reduces development time and costs. Use cases include:
- Data Scientists & AI Engineers: Manage AI functions centrally across multiple GenAI platforms.
- Enterprises with Compliance Needs: Enforce security and governance across AI tools.
- Teams Using Multiple AI Platforms: Avoid rewriting code when switching between AI frameworks.
- Cost-Conscious Organizations: Easily compare cost and performance between GenAI platforms and reduce development and infrastructure costs.
- MLOps and IT Administrators: Streamline AI function deployment and monitoring with centralized access and auditing.
Unity Catalog for AI workloads
Unity Catalog AI makes working with Generative AI easier, more secure, and cost-effective. It helps teams manage AI functions across multiple platforms without extra effort. Start using it today to streamline your AI development and operations.
Check out the Unity Catalog documentation for detailed instructions on working with each of the supported integrations. We recently released Unity Catalog-AI 0.3.0 with new features. Take a read to learn how you can benefit from it, along with the above features.