{"id":23442,"library":"cognee","title":"Cognee","description":"Cognee is a Python library for enriching LLM context with a semantic layer, enabling better understanding and reasoning. It provides memory management, knowledge graph construction, and ontology support. Current version is 1.0.3, with active development on 1.0.4.dev0. Release cadence is rapid, with multiple minor/patch releases per month.","status":"active","version":"1.0.3","language":"python","source_language":"en","source_url":"https://github.com/topoteretes/cognee","tags":["llm","memory","knowledge-graph","semantic-layer","rag","context-enrichment"],"install":[{"cmd":"pip install cognee","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"","wrong":"","symbol":"CogneeClient","correct":"from cognee import CogneeClient"},{"note":"","wrong":"","symbol":"Memory","correct":"from cognee import Memory"}],"quickstart":{"code":"import os\nfrom cognee import CogneeClient\n\napi_key = os.environ.get('COGNEE_API_KEY', '')\nclient = CogneeClient(api_key=api_key)\n\n# Add a memory\nmemory = client.add_memory(\"The Eiffel Tower is in Paris.\")\nprint(memory)\n\n# Search memories\nresults = client.search(\"Where is the Eiffel Tower?\")\nprint(results)","lang":"python","description":"Basic usage: create a client, add a memory, and search."},"warnings":[{"fix":"Set environment variable: export COGNEE_API_KEY='your_key' or pass api_key='your_key' to CogneeClient.","message":"CogneeClient requires an API key by default. Without it, operations may fail silently. Always set the COGNEE_API_KEY environment variable or pass api_key explicitly.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"To disable caching, set cache_enabled=False in the client constructor.","message":"In v1.0.0, caching was enabled by default. If you rely on immediate data freshness, you may need to disable caching or clear cache explicitly.","severity":"breaking","affected_versions":"1.0.0"},{"fix":"Upgrade to v1.0.3 or later: pip install --upgrade cognee","message":"Memory synchronization across devices may be unreliable in v1.0.2 and earlier. Upgrading to v1.0.3+ is recommended for production use.","severity":"gotcha","affected_versions":"<=1.0.2"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use 'from cognee import CogneeClient' or check the exact export in your version. For v1.0.0+, this import should work.","cause":"Incorrect import path; the module may not be exposed at the top level in earlier versions.","error":"ImportError: cannot import name 'CogneeClient' from 'cognee'"},{"fix":"Set the COGNEE_API_KEY environment variable or pass api_key='your_key' to CogneeClient().","cause":"The client requires an API key but none was set.","error":"cognee.exceptions.AuthenticationError: No API key provided."}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}