-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[TEST] Test beartype in cognify pipeline #193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
c901fa8
feat: add falkordb adapter
borisarzentar 62022a8
Merge remote-tracking branch 'origin/main' into feat/COG-184-add-falk…
borisarzentar 14e2c7e
feat: add FalkorDB integration
borisarzentar 758698a
Merge remote-tracking branch 'origin/main' into feat/COG-184-add-falk…
borisarzentar 897bbac
fix: serialize UUID in pgvector data point payload
borisarzentar f569088
fix: add summaries to the graph
borisarzentar cf5b337
Merge remote-tracking branch 'origin/main' into feat/COG-184-add-falk…
borisarzentar c890636
fix: remove unused import
borisarzentar 9e10c61
fix: resolves pg asyncpg UUID to UUID
hajdul88 19d62f2
fix: add code graph generation pipeline
borisarzentar 9579cc7
Merge remote-tracking branch 'origin/feat/COG-184-add-falkordb' into …
borisarzentar 51a8305
Merge remote-tracking branch 'origin/main' into feat/COG-184-add-falk…
borisarzentar f20c838
Merge remote-tracking branch 'origin/feat/COG-184-add-falkordb' into …
borisarzentar e7e6107
fix: check "updated_at" in edge instead of node
borisarzentar d733bfd
fix: convert qdrant search results to ScoredPoint
borisarzentar 61d8fe2
Add beartype annotations to cognify pipeline tasks
0xideas 2aa2d47
Adapt imports to beartype
0xideas 4ee7c6f
Update lock file
0xideas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: convert qdrant search results to ScoredPoint
- Loading branch information
commit d733bfdf6a29b3c5d649a4df411dd1ca1850674b
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,3 @@ | ||
| from .generate_node_id import generate_node_id | ||
| from .generate_node_name import generate_node_name | ||
| from .generate_edge_name import generate_edge_name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| def generate_edge_name(name: str) -> str: | ||
| return name.lower().replace(" ", "_").replace("'", "") | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| def generate_node_name(name: str) -> str: | ||
| return name.lower().replace(" ", "_").replace("'", "") | ||
| return name.lower().replace("'", "") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add beartype runtime type checking
Given that this PR is specifically about testing beartype in the cognify pipeline, the function should implement runtime type checking using beartype.
Apply this diff:
📝 Committable suggestion
🛠️ Refactor suggestion
Add input validation and handle edge cases
The function should validate input and handle additional edge cases for more robust edge name generation.
Consider this improved implementation: