-
Notifications
You must be signed in to change notification settings - Fork 3
Knowledge graphs #371
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
Merged
Merged
Knowledge graphs #371
Changes from all commits
Commits
Show all changes
110 commits
Select commit
Hold shift + click to select a range
e5671f6
chore: update submodules
andhreljaKern f19763a
chore: update alembic
andhreljaKern 909d7e0
chore: update submodules
andhreljaKern 1e40b26
chore: update submodules
andhreljaKern 9aebaab
chore: update submodules
andhreljaKern e023d72
perf: add knowledge graph routes
andhreljaKern 6d73d14
org in in endpoints
lumburovskalina b773158
chore: update submodules
andhreljaKern 3096d6b
Return id on creating graph
lumburovskalina eb99eec
perf: update knowledge graphs
andhreljaKern 6621312
chore: update submodules
andhreljaKern a670a22
Merge branch 'knowledge-graphs' of https://github.com/code-kern-ai/re…
andhreljaKern bd9ce64
Update endpoint error fix
lumburovskalina a07fb3b
fix: knowledge graph updates
andhreljaKern d79c3e7
Error fix in endpoint
lumburovskalina 8c7db0d
chore: update submodules
andhreljaKern 8ccfe02
perf: updated get_data endpoint for knowledge graphs
andhreljaKern bd075ac
chore: conflict resolution
andhreljaKern bef9cc6
chore: update submodules
andhreljaKern 5f7b0ca
perf: dynamic group-agg-by
andhreljaKern 2663f5f
perf: push agg_fns to FE
andhreljaKern 8151a41
perf: upgrade get_data endpoint
andhreljaKern 38c914d
fix: stable kg schema
andhreljaKern 5f0f915
fix: stable kg schema
andhreljaKern 10513d4
chore: update submodules
andhreljaKern ceddccb
perf: execute-question kg id
andhreljaKern b958c02
Request execute-question fix
lumburovskalina d3eff5c
chore: update submodules
andhreljaKern 2b7fc96
chore: update submodules
andhreljaKern c623b80
perf: data blocks
andhreljaKern 1e3c0b7
chore: update submodules
andhreljaKern cc10556
perf: sql config validation
andhreljaKern e6122bb
chore: update submodules
andhreljaKern 803dfab
perf: data blocks improvements
andhreljaKern f9b063d
chore: update submodules
andhreljaKern e42f1b9
perf: execute data blocks
andhreljaKern 69d8f52
chore: update submodules
andhreljaKern 48ebe2f
perf: upgrade DataBlock table
andhreljaKern 25b4ac5
perf: include sql_schema to data block table
andhreljaKern 7f8cf2c
chore: update submodules
andhreljaKern 4c97ece
chore: update submodules
andhreljaKern 8061ebc
perf: data block sql schema
andhreljaKern c97a089
perf: allow data block create for all refinery projects
andhreljaKern 2982480
fix: PUT data block optional name and desc
andhreljaKern e62777e
chore: update submodules
andhreljaKern 95a773f
perf(alembic): update models
andhreljaKern c628d1f
perf: data block attributes
andhreljaKern c14d741
fix: data block attributes
andhreljaKern 34e16c3
fix: auto created attrs
andhreljaKern 8116be6
chore: update submodules
andhreljaKern 7e08f3a
chore: update submodules
andhreljaKern aad19ff
fix: data block attribute states
andhreljaKern ce9ac10
chore: update submodules
andhreljaKern 2531147
perf(alembic): upgrade models
andhreljaKern 9a64f99
perf(ac-exec-env): data blocks run on 10 support
andhreljaKern d57077f
Default additionalConfig for LLM Response
lumburovskalina ad48df4
chore: update submodules
andhreljaKern dd59005
perf: data block updates
andhreljaKern b9b3854
perf(alembic): data block updates
andhreljaKern a2e32d8
Merge branch 'dev' into knowledge-graphs
andhreljaKern e324603
chore: conflict resolution
andhreljaKern 9deb830
perf: data blocks run all
andhreljaKern 8ec8e24
perf(data-blocks): LLM response support
andhreljaKern dc11661
perf(data-blocks): run llm on 10 support
andhreljaKern a05e359
perf(data-block): s3 cleanup on deletion
andhreljaKern e6150ca
perf(data-blocks): various enhancements
andhreljaKern 1459c1b
perf: get_record enhancements
andhreljaKern 2024615
perf: support for None and null
andhreljaKern 11c200c
chore: update submodules
andhreljaKern 098fb19
perf: resolve test case issues
andhreljaKern b0d554d
Sample records fix
lumburovskalina 6dbafd0
chore: update submodules
andhreljaKern 1db3051
perf: related data block attrs
andhreljaKern 5127257
perf: add related_data_blocks to attribute
andhreljaKern c375630
perf: internal data blocks execute for cognition pipeline
andhreljaKern 8c5f60b
fix: internal data blocks execution snake case
andhreljaKern 8e01c26
fix(data-block): execute query limit
andhreljaKern 22c68b1
fix: run_llm_playground record ids
andhreljaKern 9c9e845
fix: run_llm_playground record ids
andhreljaKern 654dc83
fix(data-block): attribute create/update ws
andhreljaKern 279d20d
fix: project id resolve from data block attribute updates
andhreljaKern 9837dec
fix: sync schema circular import
andhreljaKern d7bed0e
fix: various data block fixes and anhancements
andhreljaKern 221b4a8
perf: PR review comments
andhreljaKern dc1b29b
chore: update submodules
andhreljaKern 95210d8
perf: add /test-where-clause to refinery
andhreljaKern b799cda
chore: update submodules
andhreljaKern 3c06bb0
fix: PR comments
andhreljaKern 4b46990
fix: PR comments
andhreljaKern 9d6129b
fix: commit sqlData on change
andhreljaKern 4ee7c0d
fix: failure on missing data block
andhreljaKern e8a55da
chore: update submodules
andhreljaKern 6172310
fix(alembic): align to dev
andhreljaKern ee6e65f
perf: rename delete fn
andhreljaKern 4198237
Added project_id to data blocks
lumburovskalina a5b110d
Merge branch 'knowledge-graphs' of github.com:code-kern-ai/refinery-g…
lumburovskalina edb6139
PR comments
lumburovskalina 4906589
chore: update submodules
andhreljaKern 90049a1
fix: PR comments
andhreljaKern 4cb623c
PR comments
lumburovskalina 908436d
Merge branch 'knowledge-graphs' of github.com:code-kern-ai/refinery-g…
lumburovskalina e0761ec
fix: PR review comments
andhreljaKern da5484c
chore: update submodules
andhreljaKern d9b1240
perf: pr comments
andhreljaKern 0436993
chore: update submodules
andhreljaKern d16dba1
perf: pr comments data block
andhreljaKern f6c2612
fix: pr comments
andhreljaKern 603a1ce
chore: conflict resolution
andhreljaKern 7003465
fix(alembic): align to dev changes
andhreljaKern 0a06540
chore: update submodules
andhreljaKern 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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,99 @@ | ||
| """adds data blocks | ||
|
|
||
| Revision ID: 9a8abc15a493 | ||
| Revises: 4ffb627479d3 | ||
| Create Date: 2026-01-20 23:08:30.530156 | ||
|
|
||
| """ | ||
|
|
||
| from alembic import op | ||
| import sqlalchemy as sa | ||
| from sqlalchemy.dialects import postgresql | ||
|
|
||
| # revision identifiers, used by Alembic. | ||
| revision = "9a8abc15a493" | ||
| down_revision = "4ffb627479d3" | ||
| branch_labels = None | ||
| depends_on = None | ||
|
|
||
|
|
||
| def upgrade(): | ||
| # ### commands auto generated by Alembic - please adjust! ### | ||
| op.create_table( | ||
| "data_block", | ||
| sa.Column("id", postgresql.UUID(as_uuid=True), nullable=False), | ||
| sa.Column("organization_id", postgresql.UUID(as_uuid=True), nullable=True), | ||
| sa.Column("project_id", postgresql.UUID(as_uuid=True), nullable=True), | ||
| sa.Column("created_by", postgresql.UUID(as_uuid=True), nullable=True), | ||
| sa.Column("created_at", sa.DateTime(), nullable=True), | ||
| sa.Column("name", sa.String(), nullable=True), | ||
| sa.Column("description", sa.String(), nullable=True), | ||
| sa.Column("type", sa.String(), nullable=True), | ||
| sa.Column("sql_config", sa.JSON(), nullable=True), | ||
| sa.Column("sql_data", sa.ARRAY(sa.JSON()), nullable=True), | ||
| sa.ForeignKeyConstraint(["created_by"], ["user.id"], ondelete="SET NULL"), | ||
| sa.ForeignKeyConstraint( | ||
| ["organization_id"], ["organization.id"], ondelete="CASCADE" | ||
| ), | ||
| sa.ForeignKeyConstraint(["project_id"], ["project.id"], ondelete="CASCADE"), | ||
| sa.PrimaryKeyConstraint("id"), | ||
| ) | ||
| op.create_index( | ||
| op.f("ix_data_block_created_by"), "data_block", ["created_by"], unique=False | ||
| ) | ||
| op.create_index( | ||
| op.f("ix_data_block_organization_id"), | ||
| "data_block", | ||
| ["organization_id"], | ||
| unique=False, | ||
| ) | ||
| op.create_index( | ||
| op.f("ix_data_block_project_id"), "data_block", ["project_id"], unique=False | ||
| ) | ||
| op.create_table( | ||
| "data_block_attributes", | ||
| sa.Column("id", postgresql.UUID(as_uuid=True), nullable=False), | ||
| sa.Column("data_block_id", postgresql.UUID(as_uuid=True), nullable=True), | ||
| sa.Column("name", sa.String(), nullable=True), | ||
| sa.Column("data_type", sa.String(), nullable=True), | ||
| sa.Column("is_primary_key", sa.Boolean(), nullable=True), | ||
| sa.Column("relative_position", sa.Integer(), nullable=True), | ||
| sa.Column("user_created", sa.Boolean(), nullable=True), | ||
| sa.Column("source_code", sa.String(), nullable=True), | ||
| sa.Column("state", sa.String(), nullable=True), | ||
| sa.Column("logs", sa.ARRAY(sa.String()), nullable=True), | ||
| sa.Column("started_at", sa.DateTime(), nullable=True), | ||
| sa.Column("finished_at", sa.DateTime(), nullable=True), | ||
| sa.Column("progress", sa.Float(), nullable=True), | ||
| sa.Column( | ||
| "additional_config", | ||
| sa.JSON(), | ||
| nullable=True, | ||
| comment="used when data_type == LLM_RESPONSE", | ||
| ), | ||
| sa.ForeignKeyConstraint( | ||
| ["data_block_id"], ["data_block.id"], ondelete="CASCADE" | ||
| ), | ||
| sa.PrimaryKeyConstraint("id"), | ||
| ) | ||
| op.create_index( | ||
| op.f("ix_data_block_attributes_data_block_id"), | ||
| "data_block_attributes", | ||
| ["data_block_id"], | ||
| unique=False, | ||
| ) | ||
| # ### end Alembic commands ### | ||
|
|
||
|
|
||
| def downgrade(): | ||
| # ### commands auto generated by Alembic - please adjust! ### | ||
| op.drop_index( | ||
| op.f("ix_data_block_attributes_data_block_id"), | ||
| table_name="data_block_attributes", | ||
| ) | ||
| op.drop_table("data_block_attributes") | ||
| op.drop_index(op.f("ix_data_block_project_id"), table_name="data_block") | ||
| op.drop_index(op.f("ix_data_block_organization_id"), table_name="data_block") | ||
| op.drop_index(op.f("ix_data_block_created_by"), table_name="data_block") | ||
| op.drop_table("data_block") | ||
| # ### end Alembic commands ### |
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.