Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
170 commits
Select commit Hold shift + click to select a range
af94012
added files
Vasilije1990 Jul 26, 2025
84ba0b2
fix cognify
Vasilije1990 Aug 4, 2025
1a15669
Merge branch 'dev' into add_cli
Vasilije1990 Aug 4, 2025
8590194
feat: add top_k input to SearchView and send to backend
Raj2604 Aug 5, 2025
e26c216
Merge branch 'dev' into feature/top_k-input
Raj2604 Aug 5, 2025
ff1614d
format
Vasilije1990 Aug 12, 2025
1de81c8
added fixes
Vasilije1990 Aug 12, 2025
b226595
added fix
Vasilije1990 Aug 12, 2025
e3bd474
git merge
Vasilije1990 Aug 12, 2025
a15cad0
Merge branch 'dev' into add_cli
Vasilije1990 Aug 12, 2025
ed555a7
feat: adds new Exception classes
hajdul88 Aug 13, 2025
0555dd9
Update __init__.py
hajdul88 Aug 13, 2025
1b3898d
feat: updates rel_db exceptions with the new error classes
hajdul88 Aug 13, 2025
b40dbf3
feat: adds new error classes to litellm instructor
hajdul88 Aug 13, 2025
623148e
feat: adds new errors to litellm client
hajdul88 Aug 13, 2025
7bd2660
feat: setting base classes of data exceptions to the new ones
hajdul88 Aug 13, 2025
6870bba
feat: adds new error to delete
hajdul88 Aug 13, 2025
ebd4403
adds new error classes to keywordextration error and defines new error
hajdul88 Aug 13, 2025
657c775
feat: adds configattributeerror
hajdul88 Aug 13, 2025
5bc00f1
feat: adds new search classes to search.py
hajdul88 Aug 13, 2025
9fb9f68
adds new base errors to retrieval exceptions
hajdul88 Aug 13, 2025
91b9c11
changes base class for vectordb exceptions
hajdul88 Aug 13, 2025
6dcd59c
feat: Adds changes to cognee graph part
hajdul88 Aug 13, 2025
32996aa
feat: adds new error classes to llm and databases + introduces loglev…
hajdul88 Aug 13, 2025
bed523a
feat: api error handling restruct
hajdul88 Aug 13, 2025
38329da
Merge branch 'dev' into feature/cog-2717-add-better-error-management-…
hajdul88 Aug 13, 2025
544e089
feat: removing invalidValueErrors
hajdul88 Aug 13, 2025
885f7c3
chore: fixing graph elements tests
hajdul88 Aug 13, 2025
d1bfeaa
fix: fixes search unit test error expectation
hajdul88 Aug 13, 2025
fabbd63
chore: renaming error
hajdul88 Aug 13, 2025
59c9204
Update exceptions.py
hajdul88 Aug 13, 2025
68327d3
chore: Changing base classes for exceptions that were already defined
hajdul88 Aug 13, 2025
da40365
ruff formatting
hajdul88 Aug 13, 2025
7af4775
chore: changed pypdf error base class
hajdul88 Aug 13, 2025
66d2c75
chore: changing docstring
hajdul88 Aug 13, 2025
8bd2416
chore: fixing delete exception import in dataset router
hajdul88 Aug 13, 2025
d14d31a
chore: updating delete_by_id test
hajdul88 Aug 13, 2025
748e9fa
feat: adds s3 file system not found error to ingestion
hajdul88 Aug 13, 2025
dbb967f
chore: updates neptune exception base + ruff
hajdul88 Aug 13, 2025
ca21122
Merge branch 'dev' into feature/cog-2717-add-better-error-management-…
hajdul88 Aug 14, 2025
c75f017
Merge branch 'dev' into feature/cog-2717-add-better-error-management-…
hajdul88 Aug 14, 2025
c99b453
feat: adds WrongDataDocumentError to classify documents
hajdul88 Aug 14, 2025
df3a3df
feat: adds errors to classify, and chunking top level
hajdul88 Aug 14, 2025
9f965c4
feat: adds input checks for extract graph from data
hajdul88 Aug 14, 2025
63d071f
feat: adds input checks for add datapoints and summarization tasks
hajdul88 Aug 14, 2025
affbc55
chore: ruff formatting
hajdul88 Aug 14, 2025
a7d7e12
ruff fix
hajdul88 Aug 14, 2025
dd6e26f
Merge remote-tracking branch 'origin/dev' into feature/cog-2717-add-b…
hajdul88 Aug 14, 2025
d884cc4
Merge branch 'dev' into feature/cog-2717-add-better-error-management-…
hajdul88 Aug 15, 2025
f5eecba
feat: add top_k-input and send it to backend
Raj2604 Aug 10, 2025
c606273
Refactor CI workflows to replace Poetry with uv for dependency manage…
daukadolt Aug 14, 2025
cb5590b
Update installation instructions and replace Poetry with uv across do…
daukadolt Aug 14, 2025
a1edfc9
docs: update README.md with new supported python versions
daukadolt Aug 14, 2025
1ab3328
fix: uv uninstalls rest of packages in some workflows
daukadolt Aug 14, 2025
bcdbadc
fix: unintentionally uninstall required deps when "uv sync"
daukadolt Aug 14, 2025
3941e46
chore: add step to rebuild uv lockfile in CI workflow
daukadolt Aug 15, 2025
4312508
undo: keep poetry-uv change limited to CI/CD fo now
daukadolt Aug 15, 2025
216ffd2
Refactor CI workflows to replace Poetry with uv (#1250)
Vasilije1990 Aug 15, 2025
81a1758
Remove NetworkX from cognee core.
misselvexu Aug 13, 2025
85c7f11
Keep networkx as core dependency
daukadolt Aug 15, 2025
50ebced
fix: natural_language_retriever.py
daukadolt Aug 15, 2025
8d045b9
chore: forgot to remove NetworkX check in NLPRetriever
daukadolt Aug 15, 2025
8825aaa
format: ruff format
daukadolt Aug 15, 2025
1ee697b
fix: Return distributed as part of Cognee build
dexters1 Aug 15, 2025
1e57ac9
fix: Return distributed as part of Cognee build (#1257)
Vasilije1990 Aug 15, 2025
271e7e9
feature: Introduces new error handling (4 base errors + specified hie…
Vasilije1990 Aug 15, 2025
86e5135
chore: Update Cognee version
dexters1 Aug 15, 2025
99a517d
chore: Update Cognee version (#1258)
dexters1 Aug 15, 2025
761bb1b
test: deprecate networkx_metrics_test.py
daukadolt Aug 15, 2025
5f7598d
test: use neo4j_metrics_test in descriptive tests instead of networkx
daukadolt Aug 15, 2025
e4e0512
feat: add reusable GitHub Action to set up Neo4j with Graph Data Scie…
daukadolt Aug 15, 2025
73e1aa7
Merge branch 'dev' into issues/1183
Vasilije1990 Aug 15, 2025
9987e05
Remove NetworkX from cognee core. (#1241)
Vasilije1990 Aug 15, 2025
b0e3f89
move to gpt5
Vasilije1990 Aug 17, 2025
c4ec679
Merge branch 'dev' into move_to_gpt5
Vasilije1990 Aug 17, 2025
1bd40f1
renamed max tokens
Vasilije1990 Aug 17, 2025
693c883
updated deepeval
Vasilije1990 Aug 17, 2025
abbce6e
fix: Move to gpt5 (#1262)
Vasilije1990 Aug 17, 2025
711c805
feat: adds cognee-user interactions to search
hajdul88 Aug 18, 2025
d53ebb2
Merge branch 'dev' into feature/cog-2734-cognee-feedbacks-interaction…
hajdul88 Aug 18, 2025
dc637f7
fix: fixes add datapoints params
hajdul88 Aug 18, 2025
fbb7d72
fix: ruff formatting
hajdul88 Aug 18, 2025
1d63da7
chore: removes duplicated func def
hajdul88 Aug 18, 2025
78fb415
chore: changes context return value in tests
hajdul88 Aug 18, 2025
b6be617
fix: fixes tests
hajdul88 Aug 18, 2025
0529d4b
fix: fixes kuzu and neo4j tests
hajdul88 Aug 18, 2025
9a46d14
chore: fix search db tests
hajdul88 Aug 18, 2025
fc43ac7
feat: adds user feedback search type
hajdul88 Aug 18, 2025
4d021ec
chore: fix openai version (#1266)
hajdul88 Aug 18, 2025
d4ace62
Merge branch 'dev' into feature/cog-2734-cognee-feedbacks-interaction…
hajdul88 Aug 18, 2025
0fbe218
chore: fixes ruff
hajdul88 Aug 18, 2025
fb51131
Merge branch 'dev' into add_cli
Vasilije1990 Aug 18, 2025
9017b63
simplify logging utils and refactor
Vasilije1990 Aug 18, 2025
9a17aa7
added fix
Vasilije1990 Aug 18, 2025
13e3e3b
added fix
Vasilije1990 Aug 18, 2025
cae173b
fix bug
Vasilije1990 Aug 18, 2025
d084d00
added tests
Vasilije1990 Aug 18, 2025
66d7fa9
fix tests
Vasilije1990 Aug 18, 2025
3152368
added fix
Vasilije1990 Aug 18, 2025
f5d702f
added fixes to integraton tests
Vasilije1990 Aug 19, 2025
fe6c900
added fix
Vasilije1990 Aug 19, 2025
372181d
fix: fixes unit test
hajdul88 Aug 19, 2025
fcdee16
feat: adds kuzu and neo4j tests for feedback and interaction features
hajdul88 Aug 19, 2025
4e31ae7
chore: deletes unused var from search test
hajdul88 Aug 19, 2025
e912b6f
fix: ensure connection check before executing checkpoint in KuzuAdapter
daukadolt Aug 19, 2025
c6ec22a
feat: adds scores to Feedback node
hajdul88 Aug 19, 2025
67c7919
fix: ensure connection check before executing checkpoint in KuzuAdapt…
Vasilije1990 Aug 19, 2025
bf1970b
feat: Add top_k Input Control to Search UI for Adjustable Graph Explo…
Vasilije1990 Aug 19, 2025
4a5d5f7
feat: adds feedback weights to edges
hajdul88 Aug 19, 2025
f5d8fc6
chore: ruff ruff
hajdul88 Aug 19, 2025
67d88c4
Merge branch 'dev' into feature/cog-2734-cognee-feedbacks-interaction…
hajdul88 Aug 19, 2025
b8cac4c
feat: adds weight test at the end of test_search_db
hajdul88 Aug 19, 2025
6d9a100
feature: Introduces Cognee-user interactions feature and feedback sea…
Vasilije1990 Aug 19, 2025
d69669b
added ability to send custom prompts to cognify
Vasilije1990 Aug 22, 2025
6d438c8
feat: Add dataset and pipeline status layer
dexters1 Aug 25, 2025
6f230c5
feature: adds environment_setup_and_checks general purpose layer to c…
hajdul88 Aug 25, 2025
a805c64
Fix, remove, improve cli tests.
siillee Aug 25, 2025
573e24f
Remove duplicate test files.
siillee Aug 25, 2025
d4b23aa
feat: Add process_pipeline_check
dexters1 Aug 25, 2025
9a4e8dd
refactor: Make the authorized_user_datasets function more understandable
dexters1 Aug 25, 2025
e85fd35
Fix linter error.
siillee Aug 25, 2025
a3d5164
Fix formatting. Potential fix to invalid api key error.
siillee Aug 25, 2025
66b8bb3
Another potential fix for the invalid API key error.
siillee Aug 25, 2025
31b33a9
Yet another potential fix for the invalid API key.
siillee Aug 25, 2025
4b593aa
And another potential fix for the API error.
siillee Aug 25, 2025
454358e
Solution for the API key error.
siillee Aug 25, 2025
de7a5a1
Fixed yml files
siillee Aug 25, 2025
dce525e
Fix again.
siillee Aug 25, 2025
cf7d41c
Fix
siillee Aug 26, 2025
a6a33e9
Feature/cog 2768 inspect cli tests fix failing ones (#1286)
Vasilije1990 Aug 26, 2025
950d29a
refactor: Update typing
dexters1 Aug 26, 2025
03fc3c8
Merge branch 'dev' into cognee-pipeline-layers
dexters1 Aug 26, 2025
d91b0f6
feature: adds pipeline execution layer to cognify (#1291)
hajdul88 Aug 26, 2025
42d33fc
fix: fixes search test behaviour and adds comments to new pipeline ex…
hajdul88 Aug 26, 2025
5ea3056
refactor: Rename auth layer
dexters1 Aug 26, 2025
0d77649
Merge branch 'cognee-pipeline-layers' of github.com:topoteretes/cogne…
dexters1 Aug 26, 2025
5771b36
feat: cognee pipeline layers (#1287)
dexters1 Aug 26, 2025
ea4f58e
feat: migrate pipeline input validation to a layer (#1284)
borisarzentar Aug 26, 2025
c013499
Fix tests failing for python 3.10
siillee Aug 26, 2025
007399b
feat: migrate pipeline status reset to add pipeline (#1289)
borisarzentar Aug 26, 2025
e5f0c22
Merge branch 'dev' into add_cli
Vasilije1990 Aug 26, 2025
d6e6e87
feat: Add cli (#1197)
Vasilije1990 Aug 26, 2025
8c69653
fix: Resolve issue with Windows path
dexters1 Aug 26, 2025
65542ec
refactor: Make CI/CD faster add more OS tests
dexters1 Aug 26, 2025
229a7a1
refactor: Speed up CI/CD execution time
dexters1 Aug 26, 2025
9c31617
fix: Resovle windows file path issue
dexters1 Aug 26, 2025
58655ca
refactor: Add proper path to test file
dexters1 Aug 26, 2025
6e5acec
refactor: make run_pipeline a high-level api for running pipelines (#…
borisarzentar Aug 27, 2025
23a46e5
Merge branch 'dev' into fix-windows-path
dexters1 Aug 27, 2025
ecc403e
fix: Add binary for python magic for windows os
dexters1 Aug 27, 2025
644116a
Merge branch 'fix-windows-path' of github.com:topoteretes/cognee into…
dexters1 Aug 27, 2025
eb65a89
fix: Resolve integration tests path issue
dexters1 Aug 27, 2025
23ea1c1
Potential fix for code scanning alert no. 187: Workflow does not cont…
dexters1 Aug 27, 2025
e4e1a54
refactor: Add read permissions only for gh token
dexters1 Aug 27, 2025
11934cd
fix: Resolve integration test issue
dexters1 Aug 27, 2025
3a3274b
Update .github/workflows/test_different_operating_systems.yml
dexters1 Aug 27, 2025
24c155b
fix: Resolve issue with Windows path (#1295)
Vasilije1990 Aug 27, 2025
62afced
feat: Added custom prompt to cognify (#1278)
Vasilije1990 Aug 27, 2025
d4ce0e1
Merge branch 'main' into merge-main-vol-6
dexters1 Aug 27, 2025
6ca46f1
refactor: ruff format
dexters1 Aug 27, 2025
328b75a
Merge main vol 6 (#1298)
Vasilije1990 Aug 27, 2025
5e6ada2
fix issue
Vasilije1990 Aug 27, 2025
792452b
added fix
Vasilije1990 Aug 27, 2025
75ea520
fix to cli
Vasilije1990 Aug 27, 2025
c933290
fixes to CLI
Vasilije1990 Aug 27, 2025
9df3466
format
Vasilije1990 Aug 27, 2025
19b59fc
Update Jupyter notebooks: added execution counts, improved logging ou…
daukadolt Aug 27, 2025
9f27402
Update Jupyter notebooks (#1299)
Vasilije1990 Aug 27, 2025
235015b
linter fix
Vasilije1990 Aug 27, 2025
cc5e684
added fix to tests
Vasilije1990 Aug 27, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: Adds changes to cognee graph part
  • Loading branch information
hajdul88 committed Aug 13, 2025
commit 6dcd59c73cee29ae3da396724e37e5f02d0b9636
6 changes: 2 additions & 4 deletions cognee/modules/graph/cognee_graph/CogneeGraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
from cognee.shared.logging_utils import get_logger
from typing import List, Dict, Union, Optional, Type

from cognee.exceptions import InvalidValueError
from cognee.modules.graph.exceptions import EntityNotFoundError, EntityAlreadyExistsError
from cognee.modules.graph.exceptions import EntityNotFoundError, EntityAlreadyExistsError, InvalidDimensionsError
from cognee.infrastructure.databases.graph.graph_db_interface import GraphDBInterface
from cognee.modules.graph.cognee_graph.CogneeGraphElements import Node, Edge
from cognee.modules.graph.cognee_graph.CogneeAbstractGraph import CogneeAbstractGraph
Expand Down Expand Up @@ -66,8 +65,7 @@ async def project_graph_from_db(
node_name: Optional[List[str]] = None,
) -> None:
if node_dimension < 1 or edge_dimension < 1:
raise InvalidValueError(message="Dimensions must be positive integers")

raise InvalidDimensionsError()
try:
import time

Expand Down
16 changes: 5 additions & 11 deletions cognee/modules/graph/cognee_graph/CogneeGraphElements.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import numpy as np
from typing import List, Dict, Optional, Any, Union

from cognee.exceptions import InvalidValueError

from cognee.modules.graph.exceptions import InvalidDimensionsError, DimensionOutOfRangeError

class Node:
"""
Expand All @@ -24,7 +22,7 @@ def __init__(
self, node_id: str, attributes: Optional[Dict[str, Any]] = None, dimension: int = 1
):
if dimension <= 0:
raise InvalidValueError(message="Dimension must be a positive integer")
raise InvalidDimensionsError()
self.id = node_id
self.attributes = attributes if attributes is not None else {}
self.attributes["vector_distance"] = float("inf")
Expand Down Expand Up @@ -58,9 +56,7 @@ def remove_skeleton_edge(self, edge: "Edge") -> None:

def is_node_alive_in_dimension(self, dimension: int) -> bool:
if dimension < 0 or dimension >= len(self.status):
raise InvalidValueError(
message=f"Dimension {dimension} is out of range. Valid range is 0 to {len(self.status) - 1}."
)
raise DimensionOutOfRangeError(dimension=dimension, max_index=len(self.status) - 1)
return self.status[dimension] == 1

def add_attribute(self, key: str, value: Any) -> None:
Expand Down Expand Up @@ -110,7 +106,7 @@ def __init__(
dimension: int = 1,
):
if dimension <= 0:
raise InvalidValueError(message="Dimensions must be a positive integer.")
InvalidDimensionsError()
self.node1 = node1
self.node2 = node2
self.attributes = attributes if attributes is not None else {}
Expand All @@ -120,9 +116,7 @@ def __init__(

def is_edge_alive_in_dimension(self, dimension: int) -> bool:
if dimension < 0 or dimension >= len(self.status):
raise InvalidValueError(
message=f"Dimension {dimension} is out of range. Valid range is 0 to {len(self.status) - 1}."
)
raise DimensionOutOfRangeError(dimension=dimension, max_index=len(self.status) - 1)
return self.status[dimension] == 1

def add_attribute(self, key: str, value: Any) -> None:
Expand Down
2 changes: 2 additions & 0 deletions cognee/modules/graph/exceptions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@
from .exceptions import (
EntityNotFoundError,
EntityAlreadyExistsError,
InvalidDimensionsError,
DimensionOutOfRangeError,
)
26 changes: 23 additions & 3 deletions cognee/modules/graph/exceptions/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from cognee.exceptions import CogneeApiError
from cognee.exceptions import CogneeValidationError
from fastapi import status


class EntityNotFoundError(CogneeApiError):
class EntityNotFoundError(CogneeValidationError):
"""Database returns nothing"""

def __init__(
Expand All @@ -14,7 +14,7 @@ def __init__(
super().__init__(message, name, status_code)


class EntityAlreadyExistsError(CogneeApiError):
class EntityAlreadyExistsError(CogneeValidationError):
"""Conflict detected, like trying to create a resource that already exists"""

def __init__(
Expand All @@ -24,3 +24,23 @@ def __init__(
status_code=status.HTTP_409_CONFLICT,
):
super().__init__(message, name, status_code)

class InvalidDimensionsError(CogneeValidationError):
def __init__(
self,
name: str = "InvalidDimensionsError",
status_code: int = status.HTTP_400_BAD_REQUEST,
):
message = "Dimensions must be positive integers."
super().__init__(message, name, status_code)

class DimensionOutOfRangeError(CogneeValidationError):
def __init__(
self,
dimension: int,
max_index: int,
name: str = "DimensionOutOfRangeError",
status_code: int = status.HTTP_400_BAD_REQUEST,
):
message = f"Dimension {dimension} is out of range. Valid range is 0 to {max_index}."
super().__init__(message, name, status_code)