Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
458eeac
Count the number of tokens in documents
alekszievr Jan 28, 2025
51eadef
Merge branch 'COG-970-refactor-tokenizing' into feat/cog-1071-input-t…
alekszievr Jan 28, 2025
ba608a4
Merge branch 'COG-970-refactor-tokenizing' into feat/cog-1071-input-t…
alekszievr Jan 28, 2025
f6663ab
save token count to relational db
alekszievr Jan 28, 2025
9182be8
Merge branch 'COG-970-refactor-tokenizing' into feat/cog-1132-add-num…
alekszievr Jan 28, 2025
72dfec4
Add metrics to metric table
alekszievr Jan 28, 2025
9bd5917
Merge branch 'dev' into feat/cog-1071-input-token-counting
dexters1 Jan 29, 2025
227d94e
Merge branch 'feat/cog-1071-input-token-counting' into feat/cog-1132-…
alekszievr Jan 29, 2025
22b6459
Store list as json instead of array in relational db table
alekszievr Jan 29, 2025
9764441
Merge branch 'dev' into feat/cog-1132-add-num-tokens-to-metric-table
alekszievr Jan 29, 2025
100e7d7
Sum in sql instead of python
alekszievr Jan 29, 2025
c182d47
Unify naming
alekszievr Jan 29, 2025
44fa2cd
Return data_points in descriptive metric calculation task
alekszievr Jan 29, 2025
06030ff
Graph metrics getter template in graph db interface and adapters
alekszievr Jan 29, 2025
48a51a3
Merge branch 'dev' into feat/cog-1082-metrics-in-graphdb-interface
alekszievr Jan 30, 2025
9a94db8
remove _table from table name
alekszievr Jan 30, 2025
57fb338
Merge branch 'dev' into feat/cog-1082-metrics-in-graphdb-interface
alekszievr Jan 31, 2025
e8dcef1
Merge branch 'dev' into feat/cog-1082-metrics-in-graphdb-interface
alekszievr Feb 1, 2025
b0f6ba7
Merge branch 'dev' into feat/cog-1082-metrics-in-graphdb-interface
alekszievr Feb 3, 2025
268d778
Use modules for adding to db instead of infrastructure
alekszievr Feb 3, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove _table from table name
  • Loading branch information
alekszievr committed Jan 30, 2025
commit 9a94db8dd41239034f6d85ba7e2ce2c190066a59
2 changes: 1 addition & 1 deletion cognee/modules/data/models/GraphMetrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


class GraphMetrics(Base):
__tablename__ = "graph_metrics_table"
__tablename__ = "graph_metrics"

# TODO: Change ID to reflect unique id of graph database
id = Column(UUID, primary_key=True, default=uuid4)
Expand Down
2 changes: 1 addition & 1 deletion cognee/tasks/storage/descriptive_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ async def store_descriptive_metrics(data_points: list[DataPoint]):
token_count_sum = await fetch_token_count(db_engine)
graph_metrics = await graph_engine.get_graph_metrics()

table_name = "graph_metrics_table"
table_name = "graph_metrics"
metrics_dict = {"id": uuid.uuid4(), "num_tokens": token_count_sum} | graph_metrics

await db_engine.insert_data(table_name, metrics_dict)
Expand Down
Loading