Observability with Keywords AI
Keywords AI provides observability and tracing for LLM-powered and agentic applications. In Cognee, it captures spans for tasks and workflows via the same@observe decorator used across providers.
Keywords AI inside Cognee
Cognee exposes a single abstraction for observability:get_observe() returning the @observe decorator. The Keywords AI integration is provided via the cognee-community extension hub as cognee-community-observability-keywordsai.
- About
cognee-community: This is Cognee’s extension hub. Adapters for third‑party databases, pipelines, and community-contributed tasks live here, evolving independently from core. Installs stay slim (only what you need), and a predictable layout underpackages/*keeps providers consistent. - Drop-in: Importing the package patches Cognee’s
get_observe()to return a Keywords AI–backed decorator whenMONITORING_TOOL=keywordsai. - Decorator mapping:
@observeand@observe(workflow=True)map to Keywords AI’stask()andworkflow()decorators fromkeywordsai-tracing.
Installation and Configuration
Minimal Example
- Patches
get_observe()so it returns a Keywords AI–aware decorator when configured. - Initializes telemetry via
KeywordsAITelemetry()once on import. - Wraps tasks with
task()and workflows withworkflow()fromkeywordsai-tracing.
Quick Start
-
Install the integration:
-
Configure your environment:
-
Import the package early (so
get_observe()is patched), decorate your tasks/workflows, and run your pipeline. - Open your Keywords AI dashboard to inspect spans across tasks and workflows.
Useful Links
- Get a Keywords AI API key: Keywords AI Platform
- Community package: cognee-community/packages/observability/keywordsai
Join the conversation on Discord and let us know how the Keywords AI integration works for you!