diff --git a/README.md b/README.md index 57293ff16..6fc0b582c 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? Check it out!
why cognee 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: