fix: make cognee -ui dependencies (api) part of core deps (#1439)

<!-- .github/pull_request_template.md -->

## Description
<!-- 
Please provide a clear, human-generated description of the changes in
this PR.
DO NOT use AI-generated descriptions. We want to understand your thought
process and reasoning.
-->

## Type of Change
<!-- Please check the relevant option -->
- [ ] Bug fix (non-breaking change that fixes an issue)
- [ ] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] Documentation update
- [ ] Code refactoring
- [ ] Performance improvement
- [ ] Other (please specify):

## Changes Made
<!-- List the specific changes made in this PR -->
- 
- 
- 

## Testing
<!-- Describe how you tested your changes -->

## Screenshots/Videos (if applicable)
<!-- Add screenshots or videos to help explain your changes -->

## Pre-submission Checklist
<!-- Please check all boxes that apply before submitting your PR -->
- [ ] **I have tested my changes thoroughly before submitting this PR**
- [ ] **This PR contains minimal changes necessary to address the
issue/feature**
- [ ] My code follows the project's coding standards and style
guidelines
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] I have added necessary documentation (if applicable)
- [ ] All new and existing tests pass
- [ ] I have searched existing PRs to ensure this change hasn't been
submitted already
- [ ] I have linked any relevant issues in the description
- [ ] My commits have clear and descriptive messages

## Related Issues
<!-- Link any related issues using "Fixes #issue_number" or "Relates to
#issue_number" -->

## Additional Notes
<!-- Add any additional notes, concerns, or context for reviewers -->

## DCO Affirmation
I affirm that all code in every commit of this pull request conforms to
the terms of the Topoteretes Developer Certificate of Origin.
This commit is contained in:
Daulet Amirkhanov 2025-09-18 16:37:08 +01:00 committed by GitHub
parent 9de69d2bab
commit 9883c097ab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 9 additions and 22 deletions

View file

@ -176,16 +176,6 @@ You can also cognify your files and query using cognee UI.
<img src="assets/cognee-new-ui.webp" width="100%" alt="Cognee UI 2"></a> <img src="assets/cognee-new-ui.webp" width="100%" alt="Cognee UI 2"></a>
### Installation for UI
To use the cognee UI with full functionality, you need to install cognee with API dependencies:
```bash
pip install 'cognee[api]'
```
The UI requires backend server functionality (uvicorn and other API dependencies) which are not included in the default cognee installation to keep it lightweight.
### Running the UI ### Running the UI
Try cognee UI by running ``` cognee-cli -ui ``` command on your terminal. Try cognee UI by running ``` cognee-cli -ui ``` command on your terminal.

View file

@ -62,14 +62,13 @@ dependencies = [
"pylance>=0.22.0,<1.0.0", "pylance>=0.22.0,<1.0.0",
"kuzu (==0.11.0)", "kuzu (==0.11.0)",
"python-magic-bin<0.5 ; platform_system == 'Windows'", # Only needed for Windows "python-magic-bin<0.5 ; platform_system == 'Windows'", # Only needed for Windows
]
[project.optional-dependencies]
api = [
"uvicorn>=0.34.0,<1.0.0", "uvicorn>=0.34.0,<1.0.0",
"gunicorn>=20.1.0,<24", "gunicorn>=20.1.0,<24",
"websockets>=15.0.1,<16.0.0" "websockets>=15.0.1,<16.0.0"
] ]
[project.optional-dependencies]
api=[]
distributed = [ distributed = [
"modal>=1.0.5,<2.0.0", "modal>=1.0.5,<2.0.0",
] ]

14
uv.lock generated
View file

@ -823,6 +823,7 @@ dependencies = [
{ name = "fastapi" }, { name = "fastapi" },
{ name = "fastapi-users", extra = ["sqlalchemy"] }, { name = "fastapi-users", extra = ["sqlalchemy"] },
{ name = "filetype" }, { name = "filetype" },
{ name = "gunicorn" },
{ name = "instructor" }, { name = "instructor" },
{ name = "jinja2" }, { name = "jinja2" },
{ name = "kuzu" }, { name = "kuzu" },
@ -856,17 +857,14 @@ dependencies = [
{ name = "structlog" }, { name = "structlog" },
{ name = "tiktoken" }, { name = "tiktoken" },
{ name = "typing-extensions" }, { name = "typing-extensions" },
{ name = "uvicorn" },
{ name = "websockets" },
] ]
[package.optional-dependencies] [package.optional-dependencies]
anthropic = [ anthropic = [
{ name = "anthropic" }, { name = "anthropic" },
] ]
api = [
{ name = "gunicorn" },
{ name = "uvicorn" },
{ name = "websockets" },
]
aws = [ aws = [
{ name = "s3fs", extra = ["boto3"] }, { name = "s3fs", extra = ["boto3"] },
] ]
@ -993,7 +991,7 @@ requires-dist = [
{ name = "google-generativeai", marker = "extra == 'gemini'", specifier = ">=0.8.4,<0.9" }, { name = "google-generativeai", marker = "extra == 'gemini'", specifier = ">=0.8.4,<0.9" },
{ name = "graphiti-core", marker = "extra == 'graphiti'", specifier = ">=0.7.0,<0.8" }, { name = "graphiti-core", marker = "extra == 'graphiti'", specifier = ">=0.7.0,<0.8" },
{ name = "groq", marker = "extra == 'groq'", specifier = ">=0.8.0,<1.0.0" }, { name = "groq", marker = "extra == 'groq'", specifier = ">=0.8.0,<1.0.0" },
{ name = "gunicorn", marker = "extra == 'api'", specifier = ">=20.1.0,<24" }, { name = "gunicorn", specifier = ">=20.1.0,<24" },
{ name = "instructor", specifier = ">=1.9.1,<2.0.0" }, { name = "instructor", specifier = ">=1.9.1,<2.0.0" },
{ name = "jinja2", specifier = ">=3.1.3,<4" }, { name = "jinja2", specifier = ">=3.1.3,<4" },
{ name = "kuzu", specifier = "==0.11.0" }, { name = "kuzu", specifier = "==0.11.0" },
@ -1060,8 +1058,8 @@ requires-dist = [
{ name = "tweepy", marker = "extra == 'dev'", specifier = ">=4.14.0,<5.0.0" }, { name = "tweepy", marker = "extra == 'dev'", specifier = ">=4.14.0,<5.0.0" },
{ name = "typing-extensions", specifier = ">=4.12.2,<5.0.0" }, { name = "typing-extensions", specifier = ">=4.12.2,<5.0.0" },
{ name = "unstructured", extras = ["csv", "doc", "docx", "epub", "md", "odt", "org", "ppt", "pptx", "rst", "rtf", "tsv", "xlsx"], marker = "extra == 'docs'", specifier = ">=0.18.1,<19" }, { name = "unstructured", extras = ["csv", "doc", "docx", "epub", "md", "odt", "org", "ppt", "pptx", "rst", "rtf", "tsv", "xlsx"], marker = "extra == 'docs'", specifier = ">=0.18.1,<19" },
{ name = "uvicorn", marker = "extra == 'api'", specifier = ">=0.34.0,<1.0.0" }, { name = "uvicorn", specifier = ">=0.34.0,<1.0.0" },
{ name = "websockets", marker = "extra == 'api'", specifier = ">=15.0.1,<16.0.0" }, { name = "websockets", specifier = ">=15.0.1,<16.0.0" },
] ]
provides-extras = ["api", "distributed", "neo4j", "neptune", "postgres", "postgres-binary", "notebook", "langchain", "llama-index", "gemini", "huggingface", "ollama", "mistral", "anthropic", "deepeval", "posthog", "falkordb", "groq", "chromadb", "docs", "codegraph", "evals", "gui", "graphiti", "aws", "dev", "debug"] provides-extras = ["api", "distributed", "neo4j", "neptune", "postgres", "postgres-binary", "notebook", "langchain", "llama-index", "gemini", "huggingface", "ollama", "mistral", "anthropic", "deepeval", "posthog", "falkordb", "groq", "chromadb", "docs", "codegraph", "evals", "gui", "graphiti", "aws", "dev", "debug"]