From 2ef10b3b4b76dc31c19a68ff86d648548e961728 Mon Sep 17 00:00:00 2001 From: Hande <159312713+hande-k@users.noreply.github.com> Date: Sat, 8 Feb 2025 10:37:01 +0100 Subject: [PATCH 1/3] update readme to mention starter repo (#510) ## Description ## 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 ## Summary by CodeRabbit - **Documentation** - Improved grammatical correctness and enhanced clarity in the project documentation. - Refined descriptions for capabilities, user instructions, and community engagement. - Introduced a note about a starter repository to help users get up and running quickly. --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 57293ff16..e1e0e93ff 100644 --- a/README.md +++ b/README.md @@ -14,12 +14,14 @@ We build for developers who need a reliable, production-ready data layer for AI Cognee implements scalable, modular ECL (Extract, Cognify, Load) pipelines that allow you to interconnect and retrieve past conversations, documents, and audio transcriptions while reducing hallucinations, developer effort, and cost. -Cognee merges graph and vector databases to uncover hidden relationships and new patterns in your data. You can automatically model, load and retrieve entities and objects representing your business domain and analyze their relationships, uncovering insights that neither vector stores nor graph stores alone can provide. Learn more about use-cases [here](https://docs.cognee.ai/use_cases) +Cognee merges graph and vector databases to uncover hidden relationships and new patterns in your data. You can automatically model, load and retrieve entities and objects representing your business domain and analyze their relationships, uncovering insights that neither vector stores nor graph stores alone can provide. Learn more about use-cases [here](https://docs.cognee.ai/use_cases). -Try it in a Google Colab notebook or have a look at our documentation +Try it in a Google Colab notebook or have a look at our documentation. -If you have questions, join our Discord community +If you have questions, join our Discord community. + +Have you seen cognee's starter repo? It is designed to help you get started with easy setup and example pipelines. Check it out!
why cognee From 896d189db0ad9d60776605208a94b29fc1803f71 Mon Sep 17 00:00:00 2001 From: Vasilije <8619304+Vasilije1990@users.noreply.github.com> Date: Sat, 8 Feb 2025 11:04:27 +0100 Subject: [PATCH 2/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e1e0e93ff..6fc0b582c 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Try it in a Google Colab Discord community. -Have you seen cognee's starter repo? It is designed to help you get started with easy setup and example pipelines. Check it out! +Have you seen cognee's starter repo? Check it out!
why cognee From 95ee62ad7939621085d9325d9707ae6f9f9641a6 Mon Sep 17 00:00:00 2001 From: Boris Arzentar Date: Sat, 8 Feb 2025 15:21:59 +0100 Subject: [PATCH 3/3] fix: extract index and field name from indexable data points --- cognee/tasks/storage/__init__.py | 1 + cognee/tasks/storage/index_data_points.py | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/cognee/tasks/storage/__init__.py b/cognee/tasks/storage/__init__.py index 156ae6965..f141e26f8 100644 --- a/cognee/tasks/storage/__init__.py +++ b/cognee/tasks/storage/__init__.py @@ -1,2 +1,3 @@ from .add_data_points import add_data_points from .index_data_points import index_data_points +from .index_graph_edges import index_graph_edges diff --git a/cognee/tasks/storage/index_data_points.py b/cognee/tasks/storage/index_data_points.py index 7368fb43c..5a5a75f4e 100644 --- a/cognee/tasks/storage/index_data_points.py +++ b/cognee/tasks/storage/index_data_points.py @@ -33,8 +33,10 @@ async def index_data_points(data_points: list[DataPoint]): indexed_data_point.metadata["index_fields"] = [field_name] index_points[index_name].append(indexed_data_point) - for index_name, indexable_points in index_points.items(): - index_name, field_name = index_name.split("_") + for index_name_and_field, indexable_points in index_points.items(): + first_occurence = index_name_and_field.index("_") + index_name = index_name_and_field[:first_occurence] + field_name = index_name_and_field[first_occurence + 1:] try: await vector_engine.index_data_points(index_name, field_name, indexable_points) except EmbeddingException as e: