Commit graph

2853 commits

Author SHA1 Message Date
Igor Ilic
d4b23aa565 feat: Add process_pipeline_check 2025-08-25 17:16:08 +02:00
Igor Ilic
6d438c8800 feat: Add dataset and pipeline status layer 2025-08-25 12:47:48 +02:00
Vasilije
6d9a100b7e
feature: Introduces Cognee-user interactions feature and feedback search type (#1264)
<!-- .github/pull_request_template.md -->

## Description
Introduces Cognee-user interactions nodeset feature and feedback search
type

## 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 18:21:27 +02:00
hajdul88
b8cac4c29f feat: adds weight test at the end of test_search_db 2025-08-19 17:23:47 +02:00
hajdul88
67d88c4e85
Merge branch 'dev' into feature/cog-2734-cognee-feedbacks-interactions-poc-to-prod 2025-08-19 17:04:09 +02:00
hajdul88
f5d8fc6e81 chore: ruff ruff 2025-08-19 16:50:50 +02:00
hajdul88
4a5d5f70d0 feat: adds feedback weights to edges 2025-08-19 16:50:21 +02:00
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
hajdul88
c6ec22a5a0 feat: adds scores to Feedback node 2025-08-19 13:36:22 +02:00
Daulet Amirkhanov
e912b6f37e fix: ensure connection check before executing checkpoint in KuzuAdapter 2025-08-19 11:27:30 +01:00
hajdul88
4e31ae7ffc chore: deletes unused var from search test 2025-08-19 10:50:23 +02:00
hajdul88
fcdee16f69 feat: adds kuzu and neo4j tests for feedback and interaction features 2025-08-19 10:49:01 +02:00
hajdul88
372181d8c1 fix: fixes unit test 2025-08-19 09:43:34 +02:00
hajdul88
0fbe218eef chore: fixes ruff 2025-08-18 18:36:04 +02:00
hajdul88
d4ace62664
Merge branch 'dev' into feature/cog-2734-cognee-feedbacks-interactions-poc-to-prod 2025-08-18 18:34:07 +02: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
hajdul88
fc43ac7a01 feat: adds user feedback search type 2025-08-18 17:54:49 +02:00
hajdul88
9a46d145bb chore: fix search db tests 2025-08-18 14:53:47 +02:00
hajdul88
0529d4b87f fix: fixes kuzu and neo4j tests 2025-08-18 14:14:12 +02:00
hajdul88
b6be61776a fix: fixes tests 2025-08-18 13:50:21 +02:00
hajdul88
78fb415892 chore: changes context return value in tests 2025-08-18 13:40:33 +02:00
hajdul88
1d63da7923 chore: removes duplicated func def 2025-08-18 13:26:45 +02:00
hajdul88
fbb7d72461 fix: ruff formatting 2025-08-18 13:24:14 +02:00
hajdul88
dc637f70b0 fix: fixes add datapoints params 2025-08-18 13:23:57 +02:00
hajdul88
d53ebb2164
Merge branch 'dev' into feature/cog-2734-cognee-feedbacks-interactions-poc-to-prod 2025-08-18 13:17:13 +02:00
hajdul88
711c805c83 feat: adds cognee-user interactions to search 2025-08-18 13:14:06 +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