Integrations
Dify
Add CortexDB search and store tools to Dify apps.
CortexDB exposes memory to Dify as store and search tools you can add to an agent or workflow app.
Install
pip install cortexdbai[dify]Tools
from cortexdb import Cortex
from cortexdb.integrations.dify import CortexDBStoreTool, CortexDBSearchTool
client = Cortex(api_url="https://api-v1.cortexdb.ai", actor="user:alice",
bearer=os.environ["CORTEX_TOKEN"])
scope = "org:acme/user:alice"
store = CortexDBStoreTool(client=client, scope=scope)
search = CortexDBSearchTool(client=client, scope=scope)
# register the tools with your Dify custom-tool provider