Commit graph

2830 commits

Author SHA1 Message Date
Vasilije
bf1970b679
feat: Add top_k Input Control to Search UI for Adjustable Graph Exploration Depth (#1202)
Fixes #1194 
Summary:
This PR introduces a new "Max results" (top_k) input control to the
search UI, allowing users to specify how many results to return for each
search. This directly controls the graph exploration depth, enabling
both focused and broad explorations.
Changes
UI Enhancement:
Added a number input labeled "Max results" (default: 10, min: 1, max:
100) to the search form, with validation and a tooltip explaining its
impact.
Placed the input between the search type dropdown and the submit button
in SearchView.tsx
State Management:
Managed top_k value in component state.
Included top_k in the form submission.
API Integration:
Updated useChat.ts to accept and send the top_k parameter in API calls
to the backend.
@Vasilije1990
2025-08-19 16:22:46 +02:00
Vasilije
67c7919be3
fix: ensure connection check before executing checkpoint in KuzuAdapter (#1268)
<!-- .github/pull_request_template.md -->

## Description
<!-- Provide a clear description of the changes in this PR -->
kuzu + s3 is failing on dev. What's happening is:

1. During cognee.add, run_pipeline uses
[`run_tasks`](https://github.com/topoteretes/cognee/blob/dev/cognee/modules/pipelines/operations/pipeline.py#L193-L195)
2. run_tasks calls
[`push_to_s3`](https://github.com/topoteretes/cognee/blob/dev/cognee/modules/pipelines/operations/run_tasks.py#L336-L338),
which attempts to
[checkpoint](https://github.com/topoteretes/cognee/blob/dev/cognee/infrastructure/databases/graph/kuzu/adapter.py#L142)
before the push (Kuzu connection is initialized in `cognify`)

Trace:
```
AttributeError: 'NoneType' object has no attribute 'execute'

Traceback (most recent call last):
  File "/Users/daulet/PycharmProjects/cognee-source/examples/python/dynamic_steps_example.py", line 219, in <module>
    loop.run_until_complete(main(steps_to_enable))
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/Users/daulet/PycharmProjects/cognee-source/examples/python/dynamic_steps_example.py", line 186, in main
    await cognee.add(text)
  File "/Users/daulet/PycharmProjects/cognee-source/cognee/api/v1/add/add.py", line 145, in add
    async for run_info in cognee_pipeline(
  File "/Users/daulet/PycharmProjects/cognee-source/cognee/modules/pipelines/operations/pipeline.py", line 106, in cognee_pipeline
    async for run_info in run_pipeline(
  File "/Users/daulet/PycharmProjects/cognee-source/cognee/modules/pipelines/operations/pipeline.py", line 197, in run_pipeline
    async for pipeline_run_info in pipeline_run:
  File "/Users/daulet/PycharmProjects/cognee-source/cognee/modules/pipelines/operations/run_tasks.py", line 53, in wrapper
    async for run_info in original_gen(*args, **kwargs):
  File "/Users/daulet/PycharmProjects/cognee-source/cognee/modules/pipelines/operations/run_tasks.py", line 360, in run_tasks
    raise error
  File "/Users/daulet/PycharmProjects/cognee-source/cognee/modules/pipelines/operations/run_tasks.py", line 337, in run_tasks
    await graph_engine.push_to_s3()
  File "/Users/daulet/PycharmProjects/cognee-source/cognee/infrastructure/databases/graph/kuzu/adapter.py", line 142, in push_to_s3
    self.connection.execute("CHECKPOINT;")
```
# After fix

Running `dynamic_steps_example.py`:

### Main branch
```
Data pruned.
System pruned.
User 26ab9bde-39a1-47b7-93d7-368ccccdc503 has registered.
Added text: 
CV 1: Relevant
Name: Dr. Emily Car...
Added text: 
CV 2: Relevant
Name: Michael Rodri...
Added text: 
CV 3: Relevant
Name: Sarah Nguyen
...
Added text: 
CV 4: Not Relevant
Name: David Tho...
Added text: 
CV 5: Not Relevant
Name: Jessica M...
Knowledge graph created.
['David Thompson has experience in design tools, specifically in graphic design with over 8 years of experience and proficiency in Adobe Creative Suite.']
```

### This branch
```
Data pruned.
System pruned.
User 65cbe3a4-d94a-4043-921b-78bc90c3f0a6 has registered.
Added text: 
CV 1: Relevant
Name: Dr. Emily Car...
Added text: 
CV 2: Relevant
Name: Michael Rodri...
Added text: 
CV 3: Relevant
Name: Sarah Nguyen
...
Added text: 
CV 4: Not Relevant
Name: David Tho...
Added text: 
CV 5: Not Relevant
Name: Jessica M...
Knowledge graph created.
['David Thompson — Creative Graphic Designer; proficient in Adobe Photoshop, Illustrator and InDesign (Adobe Creative Suite) and basic web design (HTML/CSS).']
```

## 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.
2025-08-19 13:44:24 +02:00
Daulet Amirkhanov
e912b6f37e fix: ensure connection check before executing checkpoint in KuzuAdapter 2025-08-19 11:27:30 +01:00
hajdul88
4d021ec970
chore: fix openai version (#1266)
<!-- .github/pull_request_template.md -->

## Description
Fixes openai version

## 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.
2025-08-18 18:33:56 +02:00
Vasilije
abbce6e8c3
fix: Move to gpt5 (#1262)
<!-- .github/pull_request_template.md -->

## Description
<!-- Provide a clear description of the changes in this PR -->

## 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.
2025-08-17 13:33:40 +02:00
vasilije
693c8831fe updated deepeval 2025-08-17 13:05:19 +02:00
vasilije
1bd40f1401 renamed max tokens 2025-08-17 12:39:51 +02:00
Vasilije
c4ec6799a6
Merge branch 'dev' into move_to_gpt5 2025-08-17 12:20:57 +02:00
vasilije
b0e3f89340 move to gpt5 2025-08-17 12:19:34 +02:00
Vasilije
68a650f05e
Update .env.template 2025-08-16 10:26:41 +02:00
Vasilije
f54c678462
fix: Update pyproject.toml (#1260)
<!-- .github/pull_request_template.md -->

## Description
<!-- Provide a clear description of the changes in this PR -->

## 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.
2025-08-15 21:51:38 +02:00
Vasilije
53b2144b3f
Update pyproject.toml 2025-08-15 21:51:09 +02:00
Vasilije
104fc6c9ed
Update README.md 2025-08-15 20:20:02 +02:00
Vasilije
4a659edd7e
docs: Change cognee Comparison Image in README file (#1259)
<!-- .github/pull_request_template.md -->

## Description
<!-- Provide a clear description of the changes in this PR -->
Cognee comparison image updated, has the same name as before. The new
image should be visible when merged with main, since the image link
points to the main branch.

## 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.
2025-08-15 20:18:35 +02:00
Andrej Milicevic
3a1ed66cd3 Change cognee Comparison Image in README file 2025-08-15 17:58:44 +02:00
Vasilije
9987e05ebe
Remove NetworkX from cognee core. (#1241)
<!-- .github/pull_request_template.md -->

## Description
<!-- Provide a clear description of the changes in this PR -->
Remove NetworkX from cognee core.

## 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.
2025-08-15 15:05:14 +02:00
Vasilije
73e1aa768c
Merge branch 'dev' into issues/1183 2025-08-15 15:05:00 +02:00
Daulet Amirkhanov
e4e0512856 feat: add reusable GitHub Action to set up Neo4j with Graph Data Science for testing 2025-08-15 13:29:54 +01:00
Daulet Amirkhanov
5f7598d59d test: use neo4j_metrics_test in descriptive tests instead of networkx 2025-08-15 13:13:15 +01:00
Daulet Amirkhanov
761bb1b523 test: deprecate networkx_metrics_test.py 2025-08-15 12:59:49 +01:00
Igor Ilic
99a517d356
chore: Update Cognee version (#1258)
<!-- .github/pull_request_template.md -->

## Description
<!-- Provide a clear description of the changes in this PR -->

## 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.
2025-08-15 13:52:47 +02:00
Igor Ilic
86e51350a4 chore: Update Cognee version 2025-08-15 13:42:48 +02:00
Vasilije
271e7e9cf4
feature: Introduces new error handling (4 base errors + specified hierarchical exception handling) (#1242)
<!-- .github/pull_request_template.md -->

## Description
Introduces new error handling (4 base errors + specified hierarchical
exception handling)

## 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.
2025-08-15 13:30:30 +02:00
Vasilije
1e57ac9f19
fix: Return distributed as part of Cognee build (#1257)
<!-- .github/pull_request_template.md -->

## Description
<!-- Provide a clear description of the changes in this PR -->

## 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.
2025-08-15 13:12:50 +02:00
Igor Ilic
1ee697b000 fix: Return distributed as part of Cognee build 2025-08-15 12:27:03 +02:00
Daulet Amirkhanov
8825aaad9f format: ruff format 2025-08-15 11:01:08 +01:00
Daulet Amirkhanov
8d045b942e chore: forgot to remove NetworkX check in NLPRetriever 2025-08-15 10:56:19 +01:00
Daulet Amirkhanov
50ebcedf37 fix: natural_language_retriever.py 2025-08-15 10:54:11 +01:00
Daulet Amirkhanov
85c7f11eb8 Keep networkx as core dependency 2025-08-15 10:28:56 +01:00
misselvexu
81a17580a6 Remove NetworkX from cognee core. 2025-08-15 10:28:56 +01:00
Vasilije
216ffd2706
Refactor CI workflows to replace Poetry with uv (#1250)
<!-- .github/pull_request_template.md -->

## Description
This PR migrates all CI/CD workflows to use `uv` instead of `poetry`

## 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.
2025-08-15 11:05:58 +02:00
Daulet Amirkhanov
4312508cf3 undo: keep poetry-uv change limited to CI/CD fo now 2025-08-15 09:48:23 +01:00
Daulet Amirkhanov
3941e469e5 chore: add step to rebuild uv lockfile in CI workflow 2025-08-15 09:48:23 +01:00
Daulet Amirkhanov
bcdbadc468 fix: unintentionally uninstall required deps when "uv sync" 2025-08-15 09:48:23 +01:00
Daulet Amirkhanov
1ab332828f fix: uv uninstalls rest of packages in some workflows 2025-08-15 09:48:23 +01:00
Daulet Amirkhanov
a1edfc98c2 docs: update README.md with new supported python versions 2025-08-15 09:48:23 +01:00
Daulet Amirkhanov
cb5590b655 Update installation instructions and replace Poetry with uv across documentation and scripts 2025-08-15 09:48:23 +01:00
Daulet Amirkhanov
c60627306f Refactor CI workflows to replace Poetry with uv for dependency management and execution 2025-08-15 09:48:23 +01:00
Raj2604
f5eecbacf7 feat: add top_k-input and send it to backend 2025-08-15 14:17:17 +05:30
hajdul88
d884cc46e9
Merge branch 'dev' into feature/cog-2717-add-better-error-management-to-cognee 2025-08-15 08:15:05 +02:00
Vasilije
dee212cdb5
Cognee v0.2.2 Release (#1256)
<!-- .github/pull_request_template.md -->

## Description
Cognee v0.2.2 Release

## 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.

---------

Signed-off-by: EricXiao <taoiaox@gmail.com>
Signed-off-by: Andrew Carbonetto <andrew.carbonetto@improving.com>
Signed-off-by: Andy Kwok <andy.kwok@improving.com>
Signed-off-by: Raj2604 <rajmandhare26@gmail.com>
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
Co-authored-by: Boris Arzentar <borisarzentar@gmail.com>
Co-authored-by: Boris <boris@topoteretes.com>
Co-authored-by: hajdul88 <52442977+hajdul88@users.noreply.github.com>
Co-authored-by: Vasilije <8619304+Vasilije1990@users.noreply.github.com>
Co-authored-by: EricXiao <7250816+EricXiao95@users.noreply.github.com>
Co-authored-by: vasilije <vas.markovic@gmail.com>
Co-authored-by: Andrew Carbonetto <andrew.carbonetto@improving.com>
Co-authored-by: Andy Kwok <andy.kwok@improving.com>
Co-authored-by: Daulet Amirkhanov <damirkhanov01@gmail.com>
Co-authored-by: Hande <159312713+hande-k@users.noreply.github.com>
Co-authored-by: Matea Pesic <80577904+matea16@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions@users.noreply.github.com>
Co-authored-by: Raj Mandhare <96978537+Raj2604@users.noreply.github.com>
Co-authored-by: Pedro Thompson <thompsonp17@hotmail.com>
Co-authored-by: Pedro Henrique Thompson Furtado <pedrothompson@petrobras.com.br>
Co-authored-by: sssaha1989 <150610036+sssaha1989@users.noreply.github.com>
Co-authored-by: lxobr <122801072+lxobr@users.noreply.github.com>
Co-authored-by: Pavan Chilukuri <23178099+chilupa@users.noreply.github.com>
Co-authored-by: Pavel Zorin <pazonec@yandex.ru>
Co-authored-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2025-08-14 22:19:15 +02:00
Igor Ilic
91d0d38e43
chore: Update cognee version (#1255)
<!-- .github/pull_request_template.md -->

## Description
<!-- Provide a clear description of the changes in this PR -->

## 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.
2025-08-14 22:06:16 +02:00
Igor Ilic
dd7c5de9ff chore: Update cognee version 2025-08-14 22:04:03 +02:00
Igor Ilic
0859390eaf
feat: Change cognee version (#1254)
<!-- .github/pull_request_template.md -->

## Description
<!-- Provide a clear description of the changes in this PR -->

## 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.
2025-08-14 22:00:22 +02:00
Igor Ilic
3175e5aa04
Main merge vol5 (#1253)
<!-- .github/pull_request_template.md -->

## Description
<!-- Provide a clear description of the changes in this PR -->

## 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.
2025-08-14 21:54:46 +02:00
Igor Ilic
70c81f6db9
Merge branch 'dev' into main-merge-vol5 2025-08-14 21:52:39 +02:00
Igor Ilic
1b076bce1e
Loader separation migration (#1251)
<!-- .github/pull_request_template.md -->

## Description
<!-- Provide a clear description of the changes in this PR -->

## 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.
2025-08-14 15:50:36 -04:00
Igor Ilic
741188f788
Main merge vol5 (#1252)
<!-- .github/pull_request_template.md -->

## Description
<!-- Provide a clear description of the changes in this PR -->

## 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.

---------

Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
Co-authored-by: Pavel Zorin <pazonec@yandex.ru>
Co-authored-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
Co-authored-by: Vasilije <8619304+Vasilije1990@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2025-08-14 21:17:17 +02:00
Igor Ilic
ac1ecf4067 chore: added lock files 2025-08-14 21:11:30 +02:00
Igor Ilic
b9bcda0343 Merge branch 'main' into main-merge-vol5 2025-08-14 21:05:09 +02:00