Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
292 commits
Select commit Hold shift + click to select a range
1180839
feat: Add error handling in case user is already part of database and…
dexters1 Dec 13, 2024
41f9833
Merge branch 'dev' into COG-9999
Vasilije1990 Dec 13, 2024
8dc1ec5
Merge pull request #366 from topoteretes/COG-9999
Vasilije1990 Dec 13, 2024
43187e4
feat: Add user verification for accessing data
dexters1 Dec 13, 2024
9c3e242
feat: Add compute search to cognee
dexters1 Dec 13, 2024
c90d90a
Merge branch 'dev' into COG-656-deployment-state
dexters1 Dec 13, 2024
67585d0
feat: Add simple instruction for system prompt
dexters1 Dec 13, 2024
1c9fe01
pass pydantic model tocognify
alekszievr Dec 13, 2024
11634cb
feat: Add unauth access error to getting data
dexters1 Dec 13, 2024
d437135
Merge branch 'dev' into feat/pass_pydantic_model_to_cognify
borisarzentar Dec 13, 2024
924759a
refactor: Rename query compute to query completion
dexters1 Dec 13, 2024
35b1f7d
chore: Update typo in code
dexters1 Dec 13, 2024
2508727
Merge pull request #368 from topoteretes/COG-656-deployment-state
dexters1 Dec 13, 2024
fb1c223
Merge pull request #369 from topoteretes/feat/pass_pydantic_model_to_…
Vasilije1990 Dec 13, 2024
3dc2d1e
Add mcp to cognee
Vasilije1990 Dec 14, 2024
1ec24ee
Add simple README
Vasilije1990 Dec 14, 2024
74547e0
Update cognee-mcp/mcpcognee/__main__.py
Vasilije1990 Dec 14, 2024
2f2aa81
Merge pull request #370 from topoteretes/COG-MCP
Vasilije1990 Dec 14, 2024
b3bb4e8
Create dockerhub.yml
Vasilije1990 Dec 14, 2024
dc37646
Update get_cognify_router.py
Vasilije1990 Dec 14, 2024
d9e558e
fix: Resolve reflection issue when running cognee a second time after…
dexters1 Dec 16, 2024
394a0b2
fix: Add metadata reflection fix to sqlite as well
dexters1 Dec 16, 2024
cfad366
update
Vasilije1990 Dec 16, 2024
34b139a
Revert "fix: Add metadata reflection fix to sqlite as well"
dexters1 Dec 16, 2024
a312ce0
Merge pull request #373 from topoteretes/fix-pgvector-reflection
dexters1 Dec 16, 2024
5360093
COG-810 Implement a top-down dependency graph builder tool (#268)
lxobr Dec 16, 2024
bfa0f06
Add type to DataPoint metadata (#364)
alekszievr Dec 16, 2024
3366bb3
Fixes
Vasilije1990 Dec 16, 2024
98cc84a
Fixes to our demo
Vasilije1990 Dec 16, 2024
630ab55
feat: Add search by dataset for cognee
dexters1 Dec 17, 2024
9e7ab64
feat: outsources chunking parameters to extract chunk from documents …
hajdul88 Dec 17, 2024
c2d2b26
fix: Remove backend lock from UI
dexters1 Dec 17, 2024
da5e3ab
COG 870 Remove duplicate edges from the code graph (#293)
lxobr Dec 17, 2024
af335fa
test: Added test for getting of documents for search
dexters1 Dec 17, 2024
9afd0ec
Structured code summarization (#375)
alekszievr Dec 17, 2024
3f72652
Merge branch 'dev' into add_model_to_endpoint
dexters1 Dec 17, 2024
8b09358
Merge branch 'dev' into COG-912-search-by-dataset
dexters1 Dec 17, 2024
5b7c83f
Merge pull request #372 from topoteretes/add_model_to_endpoint
dexters1 Dec 17, 2024
dfcec5f
Merge branch 'dev' of github.com:topoteretes/cognee into COG-912-sear…
dexters1 Dec 17, 2024
63c3dce
fix: Resolve issue with cognify router graph model default value
dexters1 Dec 17, 2024
48825d0
chore: Resolve typo in getting documents code
dexters1 Dec 17, 2024
d639492
Merge pull request #376 from topoteretes/COG-912-search-by-dataset
dexters1 Dec 17, 2024
bc6f371
Update .github/workflows/dockerhub.yml
borisarzentar Dec 17, 2024
e3a5f0a
Update .github/workflows/dockerhub.yml
borisarzentar Dec 17, 2024
f3f3a05
Update .github/workflows/dockerhub.yml
borisarzentar Dec 17, 2024
0014ebe
Update .github/workflows/dockerhub.yml
borisarzentar Dec 17, 2024
be42424
Merge branch 'dev' into COG-578
borisarzentar Dec 17, 2024
45cb2c3
Merge pull request #371 from topoteretes/COG-578
Vasilije1990 Dec 17, 2024
57ae93b
Update get_cognify_router.py
Vasilije1990 Dec 17, 2024
a42ab3e
fix: Resolve syntax issue with cognify router
dexters1 Dec 18, 2024
7be7265
feat: Add ruff pre-commit hook for linting and formatting
dexters1 Dec 18, 2024
875dd10
chore: Update ruff lint options in pyproject file
dexters1 Dec 18, 2024
856f228
test: Add ruff linter github action
dexters1 Dec 18, 2024
75b98e0
feat: deletes executor limit from get_repo_file_dependencies
hajdul88 Dec 18, 2024
5eaeebd
feat: implements mock feature in LiteLLM engine
hajdul88 Dec 18, 2024
f660127
refactor: Remove changes to cognify router
dexters1 Dec 18, 2024
ad8f2a5
Merge branch 'dev' into COG-650-replace-pylint
dexters1 Dec 18, 2024
d749387
fix: fixing boolean env for github actions
hajdul88 Dec 18, 2024
8aff996
test: Add test for ruff format for cognee code
dexters1 Dec 18, 2024
7a9f7b0
refactor: Rename ruff gh actions
dexters1 Dec 18, 2024
b3b8d8a
Merge pull request #384 from topoteretes/feature/cog-919-implement-mo…
hajdul88 Dec 18, 2024
8ec639a
chore: Remove checking of ruff lint and format on push
dexters1 Dec 18, 2024
e31033c
Merge branch 'dev' into COG-650-replace-pylint
dexters1 Dec 18, 2024
f6800b9
feat: Add deletion of local files when deleting data
dexters1 Dec 18, 2024
852532f
fix: changes back the max workers to 12
hajdul88 Dec 18, 2024
4689e55
feat: Adds mock summary for codegraph pipeline
hajdul88 Dec 18, 2024
ee6bc17
refacotr: Add current development status
dexters1 Dec 18, 2024
1c8115b
Merge pull request #385 from topoteretes/feature/cog-920-implement-mo…
Vasilije1990 Dec 18, 2024
c448dfb
Fix langfuse
Vasilije1990 Dec 18, 2024
ffb4452
Merge branch 'dev' into LANGFUSE_FIX
Vasilije1990 Dec 18, 2024
9b2f48b
Fix langfuse
Vasilije1990 Dec 18, 2024
6aea67f
Merge remote-tracking branch 'origin/LANGFUSE_FIX' into LANGFUSE_FIX
Vasilije1990 Dec 18, 2024
6b7e01b
Fix langfuse
Vasilije1990 Dec 18, 2024
b756927
Add evaluation notebook
alekszievr Dec 19, 2024
e20403d
Rename eval notebook
alekszievr Dec 19, 2024
3413ad8
Merge pull request #390 from topoteretes/COG-923-eval-notebook
Vasilije1990 Dec 19, 2024
d9368c6
chore: Add temporary state of development
dexters1 Dec 19, 2024
f2bb1c5
fix: Add poetry.lock file, make langfuse mandatory
dexters1 Dec 19, 2024
29dbcc5
Fix: fixes langfuse config settings
hajdul88 Dec 19, 2024
341b5fd
Merge branch 'LANGFUSE_FIX' of https://github.com/topoteretes/cognee …
hajdul88 Dec 19, 2024
cf457f6
Merge branch 'dev' into LANGFUSE_FIX
dexters1 Dec 19, 2024
14cd1b1
Merge pull request #386 from topoteretes/LANGFUSE_FIX
Vasilije1990 Dec 19, 2024
c139d52
feat: Add deletion of local files made by cognee through data endpoint
dexters1 Dec 19, 2024
418cb65
test: Revert changes on test_pgvector
dexters1 Dec 19, 2024
2481575
chore: deletes the old test for the codegraph pipeline
hajdul88 Dec 19, 2024
8e0c2a4
Merge branch 'dev' into LANGFUSE_FIX
hajdul88 Dec 19, 2024
1406b6f
test: Add test to verify deletion of local files
dexters1 Dec 19, 2024
6cb7fef
Merge branch 'dev' into COG-475-local-file-endpoint-deletion
dexters1 Dec 19, 2024
696a224
chore: deletes unused old version of the codegraph
hajdul88 Dec 19, 2024
332dfbf
Merge branch 'LANGFUSE_FIX' of https://github.com/topoteretes/cognee …
hajdul88 Dec 19, 2024
291a9e6
chore: deletes unused imports from code_graph_pipeline
hajdul88 Dec 19, 2024
3ea57e0
Merge pull request #392 from topoteretes/LANGFUSE_FIX
hajdul88 Dec 19, 2024
d3739d9
Merge branch 'dev' into test
Vasilije1990 Dec 19, 2024
02f46a5
Merge pull request #394 from topoteretes/test
Vasilije1990 Dec 19, 2024
a8a83ff
Ingest non-code files
alekszievr Dec 20, 2024
399faf9
Fixing review findings
alekszievr Dec 20, 2024
de2394c
Ingest non-code files (#395)
alekszievr Dec 20, 2024
7232b04
Merge branch 'dev' into COG-475-local-file-endpoint-deletion
dexters1 Dec 20, 2024
d7195f9
test: Update test regarding message
dexters1 Dec 20, 2024
291f1c5
Handle retryerrors in code summary (#396)
alekszievr Dec 20, 2024
a90a232
Merge remote-tracking branch 'origin/dev' into COG-650-replace-pylint
dexters1 Dec 20, 2024
74e136b
Merge branch 'dev' into COG-650-replace-pylint
dexters1 Dec 20, 2024
a4fe33c
Merge branch 'dev' into COG-475-local-file-endpoint-deletion
dexters1 Dec 20, 2024
c8a1f04
fix: updates the acreate_structured_output
hajdul88 Dec 20, 2024
450bef4
chore: Add logging to sentry when file which should exist can't be found
dexters1 Dec 20, 2024
0813f9e
Merge branch 'dev' into langfuse_generation
hajdul88 Dec 20, 2024
14dbe6c
Merge branch 'COG-475-local-file-endpoint-deletion' of github.com:top…
dexters1 Dec 20, 2024
c0ad53c
Merge pull request #397 from topoteretes/langfuse_generation
hajdul88 Dec 20, 2024
b73a35f
Fix diagram
Vasilije1990 Dec 23, 2024
75ffe25
fix: refactor mcp
borisarzentar Dec 23, 2024
29de5a3
Merge remote-tracking branch 'origin/dev' into feat/cognee-mcp
borisarzentar Dec 23, 2024
e770eda
Merge pull request #400 from topoteretes/feat/cognee-mcp
Vasilije1990 Dec 23, 2024
3fd3aed
Add Smithery CLI installation instructions and badge
calclavia Dec 23, 2024
efa2ecd
Move readme
calclavia Dec 23, 2024
135613d
Update README.md
Vasilije1990 Dec 23, 2024
f2c3b21
Merge branch 'dev' into add-smithery
Vasilije1990 Dec 23, 2024
730670c
Merge pull request #399 from smithery-ai/add-smithery
Vasilije1990 Dec 23, 2024
2747cd7
Update README.md
Vasilije1990 Dec 23, 2024
d6d56cc
Merge branch 'dev' into COG-650-replace-pylint
borisarzentar Dec 26, 2024
262deee
Cog 813 source code chunks (#383)
lxobr Dec 26, 2024
42bb835
Fix diagram
Vasilije1990 Dec 26, 2024
69349cd
Fix diagram
Vasilije1990 Dec 26, 2024
c8fdbb4
Merge branch 'dev' into COG-650-replace-pylint
Vasilije1990 Dec 26, 2024
227bb9b
Merge pull request #382 from topoteretes/COG-650-replace-pylint
Vasilije1990 Dec 26, 2024
e631161
Merge branch 'dev' into COG-475-local-file-endpoint-deletion
Vasilije1990 Dec 26, 2024
51559f0
Merge pull request #391 from topoteretes/COG-475-local-file-endpoint-…
Vasilije1990 Dec 26, 2024
17d8ad0
Fix instructions
Vasilije1990 Dec 27, 2024
57a2749
Fix instructions
Vasilije1990 Dec 27, 2024
f7d3b6e
adding and fixing files
Vasilije1990 Dec 30, 2024
fe672ce
Update README.md
Vasilije1990 Jan 2, 2025
60c8fd1
ruff format
Vasilije1990 Jan 5, 2025
649fcf2
Fix linter issues
Vasilije1990 Jan 5, 2025
6dafe73
Fix linter issues
Vasilije1990 Jan 5, 2025
5b11559
Fix linter issues
Vasilije1990 Jan 5, 2025
76a0aa7
Fix linter issues
Vasilije1990 Jan 5, 2025
35460e9
Fix linter issues
Vasilije1990 Jan 5, 2025
74e4b90
Fix linter issues
Vasilije1990 Jan 5, 2025
1a10a56
Fix linter issues
Vasilije1990 Jan 5, 2025
41a0a21
Fix linter issues
Vasilije1990 Jan 5, 2025
2675836
Fix linter issues
Vasilije1990 Jan 5, 2025
cbd15b9
Fix linter issues
Vasilije1990 Jan 5, 2025
34bd8b7
Implement PR review
Vasilije1990 Jan 5, 2025
3251025
Comment out profiling
Vasilije1990 Jan 5, 2025
0983e95
Comment out profiling
Vasilije1990 Jan 5, 2025
307aa83
Comment out profiling
Vasilije1990 Jan 5, 2025
becb121
Merge branch 'dev' into COG-adding_html_graph_render
Vasilije1990 Jan 5, 2025
a6dfff8
Merge branch 'dev' of https://github.com/topoteretes/cognee into dev
alekszievr Jan 6, 2025
4cee9a1
fix: add allowed extensions
lxobr Jan 6, 2025
dbc33a6
fix: adhere UnstructuredDocument.read() to Document
lxobr Jan 6, 2025
5e79dc5
feat: time code graph run and add mock support
lxobr Jan 6, 2025
1b96a71
Fix ollama, work on visualization
Vasilije1990 Jan 6, 2025
58da2d9
fix: Fixes faulty logging format and sets up error logging in dynamic…
hajdul88 Jan 7, 2025
4802567
Overcome ContextWindowExceededError by checking token count while chu…
alekszievr Jan 7, 2025
fbf8fc9
Merge branch 'dev' into COG-949
alekszievr Jan 7, 2025
bd644a1
fix: Fixes duplicated edges in cognify by limiting the recursion dept…
hajdul88 Jan 7, 2025
a774191
Adjust AudioDocument and handle None token limit
alekszievr Jan 7, 2025
fb13a1b
Handle azure models as well
alekszievr Jan 7, 2025
4c21dd0
Fix visualization
Vasilije1990 Jan 7, 2025
2d10065
Fix visualization
Vasilije1990 Jan 7, 2025
dc426de
Merge branch 'COG-adding_html_graph_render' of github.com:topoteretes…
Vasilije1990 Jan 7, 2025
61897c5
Fix visualization
Vasilije1990 Jan 7, 2025
6ed2c23
Merge pull request #412 from topoteretes/feature/cog-964-fixing-loggi…
Vasilije1990 Jan 8, 2025
35892f9
Merge pull request #415 from topoteretes/feature/cog-871-remove-dupli…
Vasilije1990 Jan 8, 2025
0dec704
Merge branch 'dev' into COG-949
alekszievr Jan 8, 2025
18c8bc3
Merge branch 'dev' into COG-adding_html_graph_render
hajdul88 Jan 8, 2025
8ffef50
Add clean logging to code graph example
alekszievr Jan 8, 2025
f4397bf
Remove setting envvars from arg
alekszievr Jan 8, 2025
e449286
fix: fixes create_cognee_style_network_with_logo unit test
hajdul88 Jan 8, 2025
42f9f2f
fix: removes accidental remained print
hajdul88 Jan 8, 2025
0ff9ffa
Fix visualization
Vasilije1990 Jan 8, 2025
41b1486
Fix visualization
Vasilije1990 Jan 8, 2025
fdd8ce7
Fix visualization
Vasilije1990 Jan 8, 2025
34a9267
Get embedding engine instead of passing it. Get it from vector engine…
alekszievr Jan 8, 2025
b13edb0
Fix visualization
Vasilije1990 Jan 8, 2025
e05fc09
Fix visualization
Vasilije1990 Jan 8, 2025
125f2cd
Fix poetry issues
Vasilije1990 Jan 8, 2025
97814e3
Get embedding engine instead of passing it in code chunking.
alekszievr Jan 8, 2025
1a885fe
Fix poetry issues
Vasilije1990 Jan 8, 2025
27d1d66
Fix poetry issues
Vasilije1990 Jan 8, 2025
178b3ce
Fix poetry issues
Vasilije1990 Jan 8, 2025
a856c23
Fix poetry issues
Vasilije1990 Jan 8, 2025
deebb76
Fix poetry issues
Vasilije1990 Jan 8, 2025
1a0052b
Fix poetry issues
Vasilije1990 Jan 8, 2025
433dc36
Fix poetry issues
Vasilije1990 Jan 8, 2025
3b649d1
Fix poetry issues
Vasilije1990 Jan 8, 2025
ce4c5b1
chore: Update version of poetry install action
dexters1 Jan 8, 2025
9c2c194
Merge branch 'COG-adding_html_graph_render' of github.com:topoteretes…
dexters1 Jan 8, 2025
cb2b441
chore: Update action to trigger on pull request for any branch
dexters1 Jan 8, 2025
8e1803d
chore: Remove if in github action to allow triggering on push
dexters1 Jan 8, 2025
2e1480d
chore: Remove if condition to allow gh actions to trigger on push to PR
dexters1 Jan 8, 2025
14adb6b
chore: Update poetry version in github actions
dexters1 Jan 8, 2025
4161343
chore: Set fixed ubuntu version to 22.04
dexters1 Jan 8, 2025
148b069
chore: Update py lint to use ubuntu 22.04
dexters1 Jan 8, 2025
ab29a64
chore: update ubuntu version to 22.04
dexters1 Jan 8, 2025
d39140f
feat: implements the first version of graph based completion in search
hajdul88 Jan 8, 2025
45cff4f
chore: Update python 3.9 gh action to use 3.12 instead
dexters1 Jan 8, 2025
11c6d65
chore: Update formatting of utils.py
dexters1 Jan 8, 2025
a5e993b
Fix poetry issues
Vasilije1990 Jan 8, 2025
70ced35
Merge remote-tracking branch 'origin/COG-adding_html_graph_render' in…
Vasilije1990 Jan 8, 2025
27e7808
Fix poetry issues
Vasilije1990 Jan 8, 2025
5194353
Fix poetry issues
Vasilije1990 Jan 8, 2025
dc91f01
Fix poetry issues
Vasilije1990 Jan 8, 2025
6fe8273
Fix poetry issues
Vasilije1990 Jan 8, 2025
49f018c
Fix poetry issues
Vasilije1990 Jan 8, 2025
7e0e0a5
Fix poetry issues
Vasilije1990 Jan 8, 2025
3fb9b05
Merge pull request #401 from topoteretes/COG-adding_html_graph_render
Vasilije1990 Jan 8, 2025
d1d81eb
Merge branch 'dev' into COG-949
alekszievr Jan 9, 2025
2e37f85
ruff formatting
alekszievr Jan 9, 2025
5635da6
Adjust unit tests
alekszievr Jan 9, 2025
6762039
Merge remote-tracking branch 'origin/COG-949' into COG-949
alekszievr Jan 9, 2025
fe57eb6
Merge branch 'dev' into feature/cog-967-adding-graph-completion-featu…
hajdul88 Jan 9, 2025
abb3ea6
Adjust integration tests
alekszievr Jan 9, 2025
341f30f
fix: Fixes ruff formatting
hajdul88 Jan 9, 2025
cdaae16
Handle circular import
alekszievr Jan 9, 2025
1989296
fix: Resolve profiler issue with partial and recursive logger imports
dexters1 Jan 9, 2025
b733590
fix: Remove logger from __init__.py file
dexters1 Jan 9, 2025
ccf758e
test: Test profiling on HEAD branch
dexters1 Jan 9, 2025
2ae66c2
test: Return profiler to base branch
dexters1 Jan 9, 2025
626bc76
Set max_tokens in config
alekszievr Jan 9, 2025
d7b2186
Adjust SWE-bench script to code graph pipeline call
alekszievr Jan 9, 2025
18bb282
Adjust SWE-bench script to code graph pipeline call
alekszievr Jan 9, 2025
7e10349
Merge branch 'COG-949' of https://github.com/topoteretes/cognee into …
hajdul88 Jan 9, 2025
6b6cc0f
fix: Add fix for accessing dictionary elements that don't exits
dexters1 Jan 9, 2025
51b2094
Merge pull request #420 from topoteretes/fix-profiler
dexters1 Jan 9, 2025
c5e15d7
Merge pull request #417 from topoteretes/feature/cog-967-adding-graph…
dexters1 Jan 9, 2025
6b57bfc
feat: Add ability to change graph database configuration through cognee
dexters1 Jan 9, 2025
56cc223
feat: adds pydantic types to graph layer models
hajdul88 Jan 9, 2025
64e803b
Merge pull request #421 from topoteretes/add-set-graph-database
dexters1 Jan 9, 2025
9604d95
feat: adds basic retriever for swe bench
hajdul88 Jan 9, 2025
a11b914
Merge branch 'dev' into COG-949
alekszievr Jan 10, 2025
8327c05
Match Ruff version in config to the one in github actions
alekszievr Jan 10, 2025
6177d04
feat: implements code retreiver
hajdul88 Jan 10, 2025
16155f0
Merge branch 'dev' into feature/cog-971-preparing-swe-bench-run
hajdul88 Jan 10, 2025
06e8d22
Fix: fixes unit test for codepart search
hajdul88 Jan 10, 2025
c163e35
Merge branch 'feature/cog-971-preparing-swe-bench-run' of https://git…
hajdul88 Jan 10, 2025
892666c
Merge pull request #423 from topoteretes/update_ruff_version
Vasilije1990 Jan 10, 2025
36407b2
Merge branch 'dev' into feature/cog-971-preparing-swe-bench-run
hajdul88 Jan 10, 2025
5839ab0
Merge branch 'dev' into COG-949
Vasilije1990 Jan 10, 2025
f7e808e
Merge pull request #414 from topoteretes/COG-949
Vasilije1990 Jan 10, 2025
6f7bbb0
Merge branch 'dev' into feature/cog-971-preparing-swe-bench-run
alekszievr Jan 10, 2025
f694ca2
Merge pull request #424 from topoteretes/feature/cog-971-preparing-sw…
Vasilije1990 Jan 10, 2025
872bc89
Format with Ruff 0.9.0
alekszievr Jan 10, 2025
e2ad54d
Fix: deleting incorrect repo path
hajdul88 Jan 10, 2025
48e6394
Merge branch 'dev' into feature/cog-971-preparing-swe-bench-run
hajdul88 Jan 10, 2025
b888597
Merge pull request #425 from topoteretes/format_with_updated_ruff
Vasilije1990 Jan 10, 2025
46c3365
Merge branch 'dev' into feature/cog-971-preparing-swe-bench-run
hajdul88 Jan 10, 2025
e9c40ed
Merge pull request #426 from topoteretes/feature/cog-971-preparing-sw…
Vasilije1990 Jan 10, 2025
16eefe4
fix: resolve issue with langfuse dependency installation when integra…
dexters1 Jan 10, 2025
6865f51
Merge pull request #430 from topoteretes/fix-langfuse-dependency-inst…
Vasilije1990 Jan 10, 2025
e983c21
version: Increase version to 0.1.21
borisarzentar Jan 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
35 changes: 0 additions & 35 deletions .github/dependabot.yaml

This file was deleted.

13 changes: 4 additions & 9 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: publish dev | Docker image
on:
push:
branches:
- main
- dev
- feature/*
paths-ignore:
- '**.md'
Expand All @@ -17,7 +17,7 @@ jobs:

publish_docker_to_ecr:
name: Publish Cognee Docker image
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
permissions:
id-token: write
contents: read
Expand All @@ -28,13 +28,8 @@ jobs:
- name: Set environment variable for stage
id: set-env
run: |
if [[ "${{ github.ref }}" == "refs/heads/main" ]]; then
echo "STAGE=prd" >> $GITHUB_ENV
echo "::set-output name=stage::prd"
else
echo "STAGE=dev" >> $GITHUB_ENV
echo "::set-output name=stage::dev"
fi
echo "STAGE=dev" >> $GITHUB_ENV
echo "::set-output name=stage::dev"

- name: Use output
run: echo "The stage is ${{ steps.set-env.outputs.stage }}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cd_prd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

publish_docker_to_ecr:
name: Publish Docker PromethAI image
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
permissions:
id-token: write
contents: read
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:

build_docker:
name: Build Cognee Backend Docker App Image
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Check out Cognee code
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/community_greetings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [pull_request, issues]

jobs:
greeting:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/first-interaction@v1
with:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/docker_compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev

jobs:
docker-compose-test:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

steps:
- name: Checkout repository
Expand Down
51 changes: 51 additions & 0 deletions .github/workflows/dockerhub.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: build | Build and Push Docker Image to DockerHub

on:
push:
branches:
- main

jobs:
docker-build-and-push:
runs-on: ubuntu-22.04

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Extract Git information
id: git-info
run: |
echo "BRANCH_NAME=${GITHUB_REF_NAME}" >> "$GITHUB_ENV"
echo "COMMIT_SHA=${GITHUB_SHA::7}" >> "$GITHUB_ENV"

- name: Build and Push Docker Image
run: |
IMAGE_NAME=cognee/cognee
TAG_VERSION="${BRANCH_NAME}-${COMMIT_SHA}"

echo "Building image: ${IMAGE_NAME}:${TAG_VERSION}"
docker buildx build \
--platform linux/amd64,linux/arm64 \
--push \
--tag "${IMAGE_NAME}:${TAG_VERSION}" \
--tag "${IMAGE_NAME}:latest" \
.

- name: Verify pushed Docker images
run: |
# Verify both platform variants
for PLATFORM in "linux/amd64" "linux/arm64"; do
echo "Verifying image for $PLATFORM..."
docker buildx imagetools inspect "${IMAGE_NAME}:${TAG_VERSION}" --format "{{.Manifest.$PLATFORM.Digest}}"
done
echo "Successfully verified images in Docker Hub"
44 changes: 44 additions & 0 deletions .github/workflows/pr_lint
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
## Reference: https://github.com/amannn/action-semantic-pull-request
---
name: lint | PR

on:
pull_request:
types:
- opened
- reopened
- edited
- synchronize

permissions:
contents: read

jobs:
pr_title:
permissions:
pull-requests: write
statuses: write
name: Validate & Label PR
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# Configure which types are allowed (newline-delimited).
# From: https://github.com/commitizen/conventional-commit-types/blob/master/index.json
# listing all below
types: |
chore
ci
docs
feat
fix
perf
refactor
revert
test
break
- uses: release-drafter/release-drafter@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
97 changes: 51 additions & 46 deletions .github/workflows/profiling.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
name: test | profiling

on:
push
workflow_dispatch:
pull_request:
types: [labeled, synchronize]

jobs:
profiler:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

steps:
# Checkout the code from the repository with full history
Expand Down Expand Up @@ -44,7 +47,7 @@ jobs:
python-version: '3.10'

- name: Install Poetry
uses: snok/install-poetry@v1.3.2
uses: snok/install-poetry@v1.4.1
with:
virtualenvs-create: true
virtualenvs-in-project: true
Expand All @@ -54,6 +57,8 @@ jobs:
run: |
poetry install --no-interaction --all-extras
poetry run pip install pyinstrument
poetry run pip install parso
poetry run pip install jedi


# Set environment variables for SHAs
Expand All @@ -77,50 +82,50 @@ jobs:
poetry run pyinstrument --renderer json -o base_results.json cognee/api/v1/cognify/code_graph_pipeline.py

# Run profiler on head branch
- name: Run profiler on head branch
env:
HEAD_SHA: ${{ env.HEAD_SHA }}
run: |
echo "Profiling the head branch for code_graph_pipeline.py"
echo "Checking out head SHA: $HEAD_SHA"
git checkout $HEAD_SHA
echo "This is the working directory: $PWD"
# Ensure the script is executable
chmod +x cognee/api/v1/cognify/code_graph_pipeline.py
# Run Scalene
poetry run pyinstrument --renderer json -o head_results.json cognee/api/v1/cognify/code_graph_pipeline.py

# Compare profiling results
- name: Compare profiling results
run: |
python -c '
import json
try:
with open("base_results.json") as f:
base = json.load(f)
with open("head_results.json") as f:
head = json.load(f)
cpu_diff = head.get("total_cpu_samples_python", 0) - base.get("total_cpu_samples_python", 0)
memory_diff = head.get("malloc_samples", 0) - base.get("malloc_samples", 0)
results = [
f"CPU Usage Difference: {cpu_diff}",
f"Memory Usage Difference: {memory_diff} bytes"
]
with open("profiling_diff.txt", "w") as f:
f.write("\\n".join(results) + "\\n")
print("\\n".join(results)) # Print results to terminal
except Exception as e:
error_message = f"Error comparing profiling results: {e}"
with open("profiling_diff.txt", "w") as f:
f.write(error_message + "\\n")
print(error_message) # Print error to terminal
'
# - name: Run profiler on head branch
# env:
# HEAD_SHA: ${{ env.HEAD_SHA }}
# run: |
# echo "Profiling the head branch for code_graph_pipeline.py"
# echo "Checking out head SHA: $HEAD_SHA"
# git checkout $HEAD_SHA
# echo "This is the working directory: $PWD"
# # Ensure the script is executable
# chmod +x cognee/api/v1/cognify/code_graph_pipeline.py
# # Run Scalene
# poetry run pyinstrument --renderer json -o head_results.json cognee/api/v1/cognify/code_graph_pipeline.py

- name: Upload profiling diff artifact
uses: actions/upload-artifact@v3
with:
name: profiling-diff
path: profiling_diff.txt
# # Compare profiling results
# - name: Compare profiling results
# run: |
# python -c '
# import json
# try:
# with open("base_results.json") as f:
# base = json.load(f)
# with open("head_results.json") as f:
# head = json.load(f)
# cpu_diff = head.get("total_cpu_samples_python", 0) - base.get("total_cpu_samples_python", 0)
# memory_diff = head.get("malloc_samples", 0) - base.get("malloc_samples", 0)
# results = [
# f"CPU Usage Difference: {cpu_diff}",
# f"Memory Usage Difference: {memory_diff} bytes"
# ]
# with open("profiling_diff.txt", "w") as f:
# f.write("\\n".join(results) + "\\n")
# print("\\n".join(results)) # Print results to terminal
# except Exception as e:
# error_message = f"Error comparing profiling results: {e}"
# with open("profiling_diff.txt", "w") as f:
# f.write(error_message + "\\n")
# print(error_message) # Print error to terminal
# '
#
# - name: Upload profiling diff artifact
# uses: actions/upload-artifact@v3
# with:
# name: profiling-diff
# path: profiling_diff.txt

# Post results to the pull request
# - name: Post profiling results to PR
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/py_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@
name: lint | code & tests

on:
pull_request:
branches:
- main
- devel
workflow_dispatch:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand All @@ -19,8 +16,8 @@ jobs:
fail-fast: true
matrix:
os:
- ubuntu-latest
python-version: ["3.8.x", "3.9.x", "3.10.x", "3.11.x"]
- ubuntu-22.04
python-version: ["3.10.x", "3.11.x"]

defaults:
run:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_discord_action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
github-releases-to-discord:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/reusable_notebook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

run_notebook_test:
name: test
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
defaults:
run:
shell: bash
Expand All @@ -36,7 +36,7 @@ jobs:
python-version: '3.11.x'

- name: Install Poetry
uses: snok/install-poetry@v1.3.2
uses: snok/install-poetry@v1.4.1
with:
virtualenvs-create: true
virtualenvs-in-project: true
Expand All @@ -58,4 +58,4 @@ jobs:
--to notebook \
--execute ${{ inputs.notebook-location }} \
--output executed_notebook.ipynb \
--ExecutePreprocessor.timeout=1200
--ExecutePreprocessor.timeout=1200
Loading
Loading