cognee 0.2.1.dev7__py3-none-any.whl → 0.2.2.dev0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- cognee/api/client.py +3 -1
- cognee/api/v1/datasets/routers/get_datasets_router.py +2 -2
- cognee/infrastructure/databases/graph/kuzu/adapter.py +31 -9
- cognee/infrastructure/databases/graph/kuzu/kuzu_migrate.py +281 -0
- cognee/infrastructure/databases/graph/neo4j_driver/adapter.py +103 -64
- cognee/infrastructure/databases/relational/sqlalchemy/SqlAlchemyAdapter.py +10 -3
- cognee/infrastructure/databases/vector/create_vector_engine.py +3 -11
- cognee/modules/data/models/Data.py +2 -2
- cognee/modules/data/processing/document_types/UnstructuredDocument.py +2 -5
- cognee/modules/graph/cognee_graph/CogneeGraph.py +39 -20
- cognee/modules/graph/methods/get_formatted_graph_data.py +1 -1
- cognee/modules/pipelines/operations/run_tasks.py +1 -1
- cognee/modules/pipelines/operations/run_tasks_distributed.py +1 -1
- cognee/modules/retrieval/chunks_retriever.py +23 -1
- cognee/modules/retrieval/code_retriever.py +64 -5
- cognee/modules/retrieval/completion_retriever.py +12 -10
- cognee/modules/retrieval/graph_completion_retriever.py +1 -1
- cognee/modules/retrieval/insights_retriever.py +4 -0
- cognee/modules/retrieval/natural_language_retriever.py +6 -10
- cognee/modules/retrieval/summaries_retriever.py +23 -1
- cognee/modules/retrieval/utils/brute_force_triplet_search.py +23 -4
- cognee/modules/settings/get_settings.py +0 -4
- cognee/modules/settings/save_vector_db_config.py +1 -1
- cognee/tests/unit/modules/retrieval/graph_completion_retriever_test.py +84 -9
- {cognee-0.2.1.dev7.dist-info → cognee-0.2.2.dev0.dist-info}/METADATA +5 -7
- {cognee-0.2.1.dev7.dist-info → cognee-0.2.2.dev0.dist-info}/RECORD +29 -29
- cognee/tests/test_weaviate.py +0 -94
- {cognee-0.2.1.dev7.dist-info → cognee-0.2.2.dev0.dist-info}/WHEEL +0 -0
- {cognee-0.2.1.dev7.dist-info → cognee-0.2.2.dev0.dist-info}/licenses/LICENSE +0 -0
- {cognee-0.2.1.dev7.dist-info → cognee-0.2.2.dev0.dist-info}/licenses/NOTICE.md +0 -0
|
@@ -6,7 +6,7 @@ from cognee.infrastructure.databases.vector import get_vectordb_config
|
|
|
6
6
|
class VectorDBConfig(BaseModel):
|
|
7
7
|
url: str
|
|
8
8
|
api_key: str
|
|
9
|
-
provider: Union[Literal["lancedb"], Literal["qdrant"], Literal["
|
|
9
|
+
provider: Union[Literal["lancedb"], Literal["qdrant"], Literal["pgvector"]]
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
async def save_vector_db_config(vector_db_config: VectorDBConfig):
|
|
@@ -28,18 +28,38 @@ class TestGraphCompletionRetriever:
|
|
|
28
28
|
|
|
29
29
|
class Company(DataPoint):
|
|
30
30
|
name: str
|
|
31
|
+
description: str
|
|
31
32
|
|
|
32
33
|
class Person(DataPoint):
|
|
33
34
|
name: str
|
|
35
|
+
description: str
|
|
34
36
|
works_for: Company
|
|
35
37
|
|
|
36
|
-
company1 = Company(name="Figma")
|
|
37
|
-
company2 = Company(name="Canva")
|
|
38
|
-
person1 = Person(
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
company1 = Company(name="Figma", description="Figma is a company")
|
|
39
|
+
company2 = Company(name="Canva", description="Canvas is a company")
|
|
40
|
+
person1 = Person(
|
|
41
|
+
name="Steve Rodger",
|
|
42
|
+
description="This is description about Steve Rodger",
|
|
43
|
+
works_for=company1,
|
|
44
|
+
)
|
|
45
|
+
person2 = Person(
|
|
46
|
+
name="Ike Loma", description="This is description about Ike Loma", works_for=company1
|
|
47
|
+
)
|
|
48
|
+
person3 = Person(
|
|
49
|
+
name="Jason Statham",
|
|
50
|
+
description="This is description about Jason Statham",
|
|
51
|
+
works_for=company1,
|
|
52
|
+
)
|
|
53
|
+
person4 = Person(
|
|
54
|
+
name="Mike Broski",
|
|
55
|
+
description="This is description about Mike Broski",
|
|
56
|
+
works_for=company2,
|
|
57
|
+
)
|
|
58
|
+
person5 = Person(
|
|
59
|
+
name="Christina Mayer",
|
|
60
|
+
description="This is description about Christina Mayer",
|
|
61
|
+
works_for=company2,
|
|
62
|
+
)
|
|
43
63
|
|
|
44
64
|
entities = [company1, company2, person1, person2, person3, person4, person5]
|
|
45
65
|
|
|
@@ -49,8 +69,63 @@ class TestGraphCompletionRetriever:
|
|
|
49
69
|
|
|
50
70
|
context = await retriever.get_context("Who works at Canva?")
|
|
51
71
|
|
|
52
|
-
|
|
53
|
-
assert "
|
|
72
|
+
# Ensure the top-level sections are present
|
|
73
|
+
assert "Nodes:" in context, "Missing 'Nodes:' section in context"
|
|
74
|
+
assert "Connections:" in context, "Missing 'Connections:' section in context"
|
|
75
|
+
|
|
76
|
+
# --- Nodes headers ---
|
|
77
|
+
assert "Node: Steve Rodger" in context, "Missing node header for Steve Rodger"
|
|
78
|
+
assert "Node: Figma" in context, "Missing node header for Figma"
|
|
79
|
+
assert "Node: Ike Loma" in context, "Missing node header for Ike Loma"
|
|
80
|
+
assert "Node: Jason Statham" in context, "Missing node header for Jason Statham"
|
|
81
|
+
assert "Node: Mike Broski" in context, "Missing node header for Mike Broski"
|
|
82
|
+
assert "Node: Canva" in context, "Missing node header for Canva"
|
|
83
|
+
assert "Node: Christina Mayer" in context, "Missing node header for Christina Mayer"
|
|
84
|
+
|
|
85
|
+
# --- Node contents ---
|
|
86
|
+
assert (
|
|
87
|
+
"__node_content_start__\nThis is description about Steve Rodger\n__node_content_end__"
|
|
88
|
+
in context
|
|
89
|
+
), "Description block for Steve Rodger altered"
|
|
90
|
+
assert "__node_content_start__\nFigma is a company\n__node_content_end__" in context, (
|
|
91
|
+
"Description block for Figma altered"
|
|
92
|
+
)
|
|
93
|
+
assert (
|
|
94
|
+
"__node_content_start__\nThis is description about Ike Loma\n__node_content_end__"
|
|
95
|
+
in context
|
|
96
|
+
), "Description block for Ike Loma altered"
|
|
97
|
+
assert (
|
|
98
|
+
"__node_content_start__\nThis is description about Jason Statham\n__node_content_end__"
|
|
99
|
+
in context
|
|
100
|
+
), "Description block for Jason Statham altered"
|
|
101
|
+
assert (
|
|
102
|
+
"__node_content_start__\nThis is description about Mike Broski\n__node_content_end__"
|
|
103
|
+
in context
|
|
104
|
+
), "Description block for Mike Broski altered"
|
|
105
|
+
assert "__node_content_start__\nCanvas is a company\n__node_content_end__" in context, (
|
|
106
|
+
"Description block for Canva altered"
|
|
107
|
+
)
|
|
108
|
+
assert (
|
|
109
|
+
"__node_content_start__\nThis is description about Christina Mayer\n__node_content_end__"
|
|
110
|
+
in context
|
|
111
|
+
), "Description block for Christina Mayer altered"
|
|
112
|
+
|
|
113
|
+
# --- Connections ---
|
|
114
|
+
assert "Steve Rodger --[works_for]--> Figma" in context, (
|
|
115
|
+
"Connection Steve Rodger→Figma missing or changed"
|
|
116
|
+
)
|
|
117
|
+
assert "Ike Loma --[works_for]--> Figma" in context, (
|
|
118
|
+
"Connection Ike Loma→Figma missing or changed"
|
|
119
|
+
)
|
|
120
|
+
assert "Jason Statham --[works_for]--> Figma" in context, (
|
|
121
|
+
"Connection Jason Statham→Figma missing or changed"
|
|
122
|
+
)
|
|
123
|
+
assert "Mike Broski --[works_for]--> Canva" in context, (
|
|
124
|
+
"Connection Mike Broski→Canva missing or changed"
|
|
125
|
+
)
|
|
126
|
+
assert "Christina Mayer --[works_for]--> Canva" in context, (
|
|
127
|
+
"Connection Christina Mayer→Canva missing or changed"
|
|
128
|
+
)
|
|
54
129
|
|
|
55
130
|
@pytest.mark.asyncio
|
|
56
131
|
async def test_graph_completion_context_complex(self):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cognee
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2.dev0
|
|
4
4
|
Summary: Cognee - is a library for enriching LLM context with a semantic layer for better understanding and reasoning.
|
|
5
5
|
Project-URL: Homepage, https://www.cognee.ai
|
|
6
6
|
Project-URL: Repository, https://github.com/topoteretes/cognee
|
|
@@ -134,8 +134,6 @@ Provides-Extra: posthog
|
|
|
134
134
|
Requires-Dist: posthog<4,>=3.5.0; extra == 'posthog'
|
|
135
135
|
Provides-Extra: qdrant
|
|
136
136
|
Requires-Dist: qdrant-client<2,>=1.14.2; extra == 'qdrant'
|
|
137
|
-
Provides-Extra: weaviate
|
|
138
|
-
Requires-Dist: weaviate-client<5.0.0,>=4.9.6; extra == 'weaviate'
|
|
139
137
|
Description-Content-Type: text/markdown
|
|
140
138
|
|
|
141
139
|
<div align="center">
|
|
@@ -156,7 +154,7 @@ Description-Content-Type: text/markdown
|
|
|
156
154
|
·
|
|
157
155
|
<a href="https://www.reddit.com/r/AIMemory/">Join r/AIMemory</a>
|
|
158
156
|
.
|
|
159
|
-
<a href="https://
|
|
157
|
+
<a href="https://docs.cognee.ai/">Docs</a>
|
|
160
158
|
.
|
|
161
159
|
<a href="https://github.com/topoteretes/cognee-community">cognee community repo</a>
|
|
162
160
|
</p>
|
|
@@ -183,7 +181,7 @@ Description-Content-Type: text/markdown
|
|
|
183
181
|
|
|
184
182
|
|
|
185
183
|
|
|
186
|
-
**🚀 We
|
|
184
|
+
**🚀 We launched Cogwit beta (Fully-hosted AI Memory): Sign up [here](https://platform.cognee.ai/)! 🚀**
|
|
187
185
|
|
|
188
186
|
Build dynamic memory for Agents and replace RAG using scalable, modular ECL (Extract, Cognify, Load) pipelines.
|
|
189
187
|
|
|
@@ -325,9 +323,9 @@ Try cognee UI out locally [here](https://docs.cognee.ai/how-to-guides/cognee-ui)
|
|
|
325
323
|
|
|
326
324
|
## Demos
|
|
327
325
|
|
|
328
|
-
1.
|
|
326
|
+
1. Cogwit Beta demo:
|
|
329
327
|
|
|
330
|
-
[
|
|
328
|
+
[Cogwit Beta](https://github.com/user-attachments/assets/fa520cd2-2913-4246-a444-902ea5242cb0)
|
|
331
329
|
|
|
332
330
|
2. Simple GraphRAG demo
|
|
333
331
|
|
|
@@ -9,7 +9,7 @@ cognee/version.py,sha256=isN9gXpAwkYR82cmhx-2ani8KylouByqM6iULr85Hyk,874
|
|
|
9
9
|
cognee/api/.env.example,sha256=T3e9QDX8feK8cGBQUaRqORg1Y-1e-EFpByrvqehJqC4,265
|
|
10
10
|
cognee/api/DTO.py,sha256=D-IN7PpNI6ypf7fhLif1wrsA-OV12th9B-1iTyu63qM,357
|
|
11
11
|
cognee/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
12
|
-
cognee/api/client.py,sha256=
|
|
12
|
+
cognee/api/client.py,sha256=rbzxvaCNn7d4P8kcFqPC_8SMTSC15NWow3XYBVENtG8,7268
|
|
13
13
|
cognee/api/v1/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
14
14
|
cognee/api/v1/add/__init__.py,sha256=JOyEOWtj-L8D_QtNDNCQMdf-Y8TXby4Plvco-5esbmo,21
|
|
15
15
|
cognee/api/v1/add/add.py,sha256=r8FpH3qkLhr7Tx82vlut7tG2NvuqPu2RLV1okHIJYhY,6969
|
|
@@ -26,7 +26,7 @@ cognee/api/v1/config/config.py,sha256=cHnSh1_8RFTzpHF45nBFR-1wCBZk1wRvfyEgNsW7Wy
|
|
|
26
26
|
cognee/api/v1/datasets/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
27
27
|
cognee/api/v1/datasets/datasets.py,sha256=GVPjzE_CMb2arIg0qn9aXpbN2DUQFPzIBq1a-uIbTdc,1325
|
|
28
28
|
cognee/api/v1/datasets/routers/__init__.py,sha256=F-hptvX-CC9cUHoKJVIFSI5hZ_wPjaN-rpvdA4rXWTk,53
|
|
29
|
-
cognee/api/v1/datasets/routers/get_datasets_router.py,sha256=
|
|
29
|
+
cognee/api/v1/datasets/routers/get_datasets_router.py,sha256=B_5d7tMo8je6dw2tuhTB6DSR4sZGL7il2jnZ_FyJWSA,16767
|
|
30
30
|
cognee/api/v1/delete/__init__.py,sha256=ZtgOK5grmkjGh7I5SlEYUxF7beiGUjEf0ZEYcdzpCJ8,27
|
|
31
31
|
cognee/api/v1/delete/delete.py,sha256=n67mpiTAdwJytsitlg5O7r7bzkYqbRFt8n2KkCuG590,9987
|
|
32
32
|
cognee/api/v1/delete/exceptions.py,sha256=wF9oNxAFJ8NCMxVV4FFO2biA9u0UXjFI5QsvUNuUlLk,1499
|
|
@@ -124,13 +124,14 @@ cognee/infrastructure/databases/graph/graph_db_interface.py,sha256=nHQweHqpOpWM6
|
|
|
124
124
|
cognee/infrastructure/databases/graph/supported_databases.py,sha256=0UIYcQ15p7-rq5y_2A-E9ydcXyP6frdg8T5e5ECDDMI,25
|
|
125
125
|
cognee/infrastructure/databases/graph/use_graph_adapter.py,sha256=a_T2NIhSw-cxn909ejiAYcMCFBh13j79TpaZJhokWxc,173
|
|
126
126
|
cognee/infrastructure/databases/graph/kuzu/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
127
|
-
cognee/infrastructure/databases/graph/kuzu/adapter.py,sha256=
|
|
127
|
+
cognee/infrastructure/databases/graph/kuzu/adapter.py,sha256=PEKvi4Jr7hbcdKCkfnpd-NuPHBvxNO7GE-qr2h-JMT0,61126
|
|
128
|
+
cognee/infrastructure/databases/graph/kuzu/kuzu_migrate.py,sha256=prJxwlZCWJ6w6upVO2KrsfHu2UGb5BwrvSCyU_rkLEQ,10536
|
|
128
129
|
cognee/infrastructure/databases/graph/kuzu/remote_kuzu_adapter.py,sha256=j0GOZl2yTvB_9JbulPec9gfQLoiTH-t932-uW3Ufr_0,7324
|
|
129
130
|
cognee/infrastructure/databases/graph/kuzu/show_remote_kuzu_stats.py,sha256=l5TQUORnoCusIrPNbTuNDzVvUUAMjQNak-9I8KT7N3I,1044
|
|
130
131
|
cognee/infrastructure/databases/graph/memgraph/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
131
132
|
cognee/infrastructure/databases/graph/memgraph/memgraph_adapter.py,sha256=eoOpDEn6lw6rVXxj00Ek3lkLjxLDLtTmQbjezMYf850,34376
|
|
132
133
|
cognee/infrastructure/databases/graph/neo4j_driver/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
133
|
-
cognee/infrastructure/databases/graph/neo4j_driver/adapter.py,sha256=
|
|
134
|
+
cognee/infrastructure/databases/graph/neo4j_driver/adapter.py,sha256=ZXR9X9ytlWIJMZbTFN41Wjr4cliK5ncEzMLWFHAEEbs,40448
|
|
134
135
|
cognee/infrastructure/databases/graph/neo4j_driver/deadlock_retry.py,sha256=A4e_8YMZ2TUQ5WxtGvaBHpSDOFKTmO0zGCTX9gnKSrM,2103
|
|
135
136
|
cognee/infrastructure/databases/graph/neo4j_driver/neo4j_metrics_utils.py,sha256=1Q2domzVvCy6c1dgnS6HmeyIMlwiFcatLmvcA8xvvr8,5940
|
|
136
137
|
cognee/infrastructure/databases/graph/networkx/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -143,13 +144,13 @@ cognee/infrastructure/databases/relational/create_db_and_tables.py,sha256=sldlFg
|
|
|
143
144
|
cognee/infrastructure/databases/relational/create_relational_engine.py,sha256=qEAlSftp641CPmn-ud5N1NHW9EL5FxkUjYMXik_g4JM,1533
|
|
144
145
|
cognee/infrastructure/databases/relational/get_migration_relational_engine.py,sha256=5RtH281iIQo3vqgwmKT0nuiJp9jNd7vw6xRUjc5xIDM,1070
|
|
145
146
|
cognee/infrastructure/databases/relational/get_relational_engine.py,sha256=De51ieg9eFhRLX08k9oNc-oszvt_9J5DHebqI1qI8_U,741
|
|
146
|
-
cognee/infrastructure/databases/relational/sqlalchemy/SqlAlchemyAdapter.py,sha256=
|
|
147
|
+
cognee/infrastructure/databases/relational/sqlalchemy/SqlAlchemyAdapter.py,sha256=Xy43nHzxmINcePdaOrAw7msvPYaJV9-C_AFqOQxjh24,27373
|
|
147
148
|
cognee/infrastructure/databases/relational/sqlalchemy/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
148
149
|
cognee/infrastructure/databases/utils/__init__.py,sha256=4C0ncZG-O6bOFJpKgscCHu6D5vodLWRIKpe-WT4Ijbs,75
|
|
149
150
|
cognee/infrastructure/databases/utils/get_or_create_dataset_database.py,sha256=wn7pRgeX-BU0L191_6pgT9P54uhVQlGMPqxQdvIlv4Y,2101
|
|
150
151
|
cognee/infrastructure/databases/vector/__init__.py,sha256=7MdGJ3Mxdh2RyDq39rcjD99liIa-yGXxDUzq--1qQZs,291
|
|
151
152
|
cognee/infrastructure/databases/vector/config.py,sha256=xKHkUAs8pohFtWC1-5GMFIKYr4jOfKZtIZYTG5qHr70,2598
|
|
152
|
-
cognee/infrastructure/databases/vector/create_vector_engine.py,sha256=
|
|
153
|
+
cognee/infrastructure/databases/vector/create_vector_engine.py,sha256=zWedSFdmFz9ZwWwGnaCLtskmjhxfHjug1pNRl5dYKvw,4078
|
|
153
154
|
cognee/infrastructure/databases/vector/get_vector_engine.py,sha256=y4TMWJ6B6DxwKF9PMfjB6WqujPnVhf0oR2j35Q-KhvA,272
|
|
154
155
|
cognee/infrastructure/databases/vector/supported_databases.py,sha256=0UIYcQ15p7-rq5y_2A-E9ydcXyP6frdg8T5e5ECDDMI,25
|
|
155
156
|
cognee/infrastructure/databases/vector/use_vector_adapter.py,sha256=ab2x6-sxVDu_tf4zWChN_ngqv8LaLYk2VCtBjZEyjaM,174
|
|
@@ -318,7 +319,7 @@ cognee/modules/data/methods/get_datasets.py,sha256=EZyDPGzZaZL2yC8yuWDz0HFgUCptf
|
|
|
318
319
|
cognee/modules/data/methods/get_datasets_by_name.py,sha256=PT8QWKBiqfmwx2AtDxtaq-sWCJJOjJWI_7teZosv6XQ,731
|
|
319
320
|
cognee/modules/data/methods/get_unique_dataset_id.py,sha256=ngWFcPpMIpEZbIUNQCICeOpM5o5Xy2i2z8WISlQrAlE,333
|
|
320
321
|
cognee/modules/data/methods/load_or_create_datasets.py,sha256=4Ka7pAQtzsG8UgtOrcJvwe-zZ0B4NvhaukkBJS8rH8s,2195
|
|
321
|
-
cognee/modules/data/models/Data.py,sha256=
|
|
322
|
+
cognee/modules/data/models/Data.py,sha256=nN3Yaym5XPPdMl5dkf7by6ZJZSpGS4-PWkLl-YOa8D4,1736
|
|
322
323
|
cognee/modules/data/models/Dataset.py,sha256=PKBeZ6yAW3kidbgGcA5aLGW7-fEj5JVgUwKL5DJcHoo,1302
|
|
323
324
|
cognee/modules/data/models/DatasetData.py,sha256=wIUqZGXLznRUObz6nl3wuW_OD2hiyBZX2H93lhaD4eI,498
|
|
324
325
|
cognee/modules/data/models/GraphMetrics.py,sha256=_GCQBYfHbPmfH154AKJPJNQUSG0SOwI_Db-SPfqjIus,1123
|
|
@@ -337,7 +338,7 @@ cognee/modules/data/processing/document_types/Document.py,sha256=v94JqsQmKDqog2J
|
|
|
337
338
|
cognee/modules/data/processing/document_types/ImageDocument.py,sha256=6wgsRLYwL-RLWKNdo9n65kegsvBZkRFtjlptgtxJqKg,721
|
|
338
339
|
cognee/modules/data/processing/document_types/PdfDocument.py,sha256=MQ6qx2C5chtD6KDBhqV70IKbeCAWBsrb9UrkoM8Vdco,1189
|
|
339
340
|
cognee/modules/data/processing/document_types/TextDocument.py,sha256=lANyFq-BzYDQcd_LNNj5xUCuQREUiIGL3dCv_83VW60,778
|
|
340
|
-
cognee/modules/data/processing/document_types/UnstructuredDocument.py,sha256=
|
|
341
|
+
cognee/modules/data/processing/document_types/UnstructuredDocument.py,sha256=Et-_of-Xm2oihEkYtnAD5YaNmTTPW9V94t7ZxvqGp4M,1263
|
|
341
342
|
cognee/modules/data/processing/document_types/__init__.py,sha256=US1CmchkTIbWgzRFIwniSTVI_p_cmHuyDaxQwjTZmhI,244
|
|
342
343
|
cognee/modules/data/processing/document_types/exceptions/__init__.py,sha256=NA4yw1l-TVr06nzaK9vpBAECRIHrp_d0BAGAhLtCcjc,164
|
|
343
344
|
cognee/modules/data/processing/document_types/exceptions/exceptions.py,sha256=pE24qj7DpxmlouKQHjdj7dqykzj1wlaAsXyltOva-lA,429
|
|
@@ -355,13 +356,13 @@ cognee/modules/engine/utils/generate_node_id.py,sha256=sHDyJVL9qFFoSXYsrlsE2VC7Y
|
|
|
355
356
|
cognee/modules/engine/utils/generate_node_name.py,sha256=UMYi0h2Vx--cj8Ppji13cq0D_71JtvPYUDVUUPQKCkw,83
|
|
356
357
|
cognee/modules/graph/relationship_manager.py,sha256=J4AA45FvF5z7EtrhGGrLa_-rW_xZ7-J52awOohzv1jA,1635
|
|
357
358
|
cognee/modules/graph/cognee_graph/CogneeAbstractGraph.py,sha256=rZM8fv4BPlrBdVKedMsqED53tCtQDzypVUryM1xkf7E,1093
|
|
358
|
-
cognee/modules/graph/cognee_graph/CogneeGraph.py,sha256=
|
|
359
|
+
cognee/modules/graph/cognee_graph/CogneeGraph.py,sha256=uSgRwvL6XXUt_JNTFjAQ9MBWBCxwKytbZvuKia9bTGE,7932
|
|
359
360
|
cognee/modules/graph/cognee_graph/CogneeGraphElements.py,sha256=tdwA8Z7RyTmlmdNG3A3Vnwi5YM14QEu18nHYmmbROns,5517
|
|
360
361
|
cognee/modules/graph/cognee_graph/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
361
362
|
cognee/modules/graph/exceptions/__init__.py,sha256=WUh8QcjerEyiBFItLvPfG_YaP5mgG9NFZeROROjSMbM,205
|
|
362
363
|
cognee/modules/graph/exceptions/exceptions.py,sha256=TJbE8XJDsFDvAzR7jYJRLbS3nmZTFCAAuBJJ4tPcg2s,770
|
|
363
364
|
cognee/modules/graph/methods/__init__.py,sha256=jVNRdhln1xkJQbl4a-8DuBALcV0l0dCk0zXUbShBFKc,63
|
|
364
|
-
cognee/modules/graph/methods/get_formatted_graph_data.py,sha256=
|
|
365
|
+
cognee/modules/graph/methods/get_formatted_graph_data.py,sha256=ww3RvPS99LXeIQDYqgVAo0VQ_mL4WHGE7aaknK_MnWo,1388
|
|
365
366
|
cognee/modules/graph/models/EdgeType.py,sha256=Q1gvrrAfVL5RHU6YmRlHMZ7wNx3zB3EYwiDf7CFjIHk,194
|
|
366
367
|
cognee/modules/graph/utils/__init__.py,sha256=8a8de1VYmEfUuNTfViaOIVV4kBIBdXYS5_USbOqKJyg,394
|
|
367
368
|
cognee/modules/graph/utils/convert_node_to_data_point.py,sha256=5EFBNDL2xZlWIZDskzB8fnmsNGy7b6k5SOdZRvLvKLM,622
|
|
@@ -411,9 +412,9 @@ cognee/modules/pipelines/operations/log_pipeline_run_initiated.py,sha256=5Gz7T1Y
|
|
|
411
412
|
cognee/modules/pipelines/operations/log_pipeline_run_start.py,sha256=0mxQJNwIEjlFd2xYDFo87SxMrOY0C2r-o6Ss2AHm2Zw,1203
|
|
412
413
|
cognee/modules/pipelines/operations/pipeline.py,sha256=bDTW_HSMR8aXHvC5gXAdzfJMU1u8eRprEBDNfekACB4,7258
|
|
413
414
|
cognee/modules/pipelines/operations/run_parallel.py,sha256=FtSBWv3-FKoVf2slsISQsBEW6yBroXzdNlnvmBOqNA0,479
|
|
414
|
-
cognee/modules/pipelines/operations/run_tasks.py,sha256=
|
|
415
|
+
cognee/modules/pipelines/operations/run_tasks.py,sha256=GV8r3sh_2V7RnbsdbvtaJAngSEfZmnqVxMjIHlEAWYs,3933
|
|
415
416
|
cognee/modules/pipelines/operations/run_tasks_base.py,sha256=zfOabXKhKyoFlZ-kqcGLuqELBt15OsyVhkgWhqvGn6w,2619
|
|
416
|
-
cognee/modules/pipelines/operations/run_tasks_distributed.py,sha256=
|
|
417
|
+
cognee/modules/pipelines/operations/run_tasks_distributed.py,sha256=E8z3a4a-DaH84jLA2rCi1FV18cAl-UN6BIESmlKM6X8,2868
|
|
417
418
|
cognee/modules/pipelines/operations/run_tasks_with_telemetry.py,sha256=S2RnZSH0fGhXt4giYMrYKyuYNOGfQ2iJUF63AyMAuAc,1674
|
|
418
419
|
cognee/modules/pipelines/queues/pipeline_run_info_queues.py,sha256=Ud-gjKuvfaVK2QXSOR4rASG6DT-13z_XHW3-9IOdRNI,985
|
|
419
420
|
cognee/modules/pipelines/tasks/task.py,sha256=VIdABgACBM8hIZ3gxyUDKZlZveRKREuBuqIUemOdTb0,3332
|
|
@@ -423,17 +424,17 @@ cognee/modules/pipelines/utils/generate_pipeline_run_id.py,sha256=uWe8vzD4pcZWCK
|
|
|
423
424
|
cognee/modules/retrieval/EntityCompletionRetriever.py,sha256=AUi0hTaYLE6dZbuOwVj-HNSGukCCbvXA8GuBnmUp1_E,3977
|
|
424
425
|
cognee/modules/retrieval/__init__.py,sha256=skqAG7z2GDGZ6mKs9Kaxev69i5v5vgFNfmrFj3eLKm0,66
|
|
425
426
|
cognee/modules/retrieval/base_retriever.py,sha256=nuzdpWQ3OmWQ0Y0rW8eMLFgbT8zMrNj3Yo-bRwyykWE,489
|
|
426
|
-
cognee/modules/retrieval/chunks_retriever.py,sha256=
|
|
427
|
-
cognee/modules/retrieval/code_retriever.py,sha256=
|
|
428
|
-
cognee/modules/retrieval/completion_retriever.py,sha256=
|
|
427
|
+
cognee/modules/retrieval/chunks_retriever.py,sha256=ff9VGIEaaedO-p237PdmZ6jPJwgHzS0CihvDingsNiI,3548
|
|
428
|
+
cognee/modules/retrieval/code_retriever.py,sha256=khn5flX_05EWcUHmmyAs4nz0xrzG1I0QvGGwWSGn2xM,8889
|
|
429
|
+
cognee/modules/retrieval/completion_retriever.py,sha256=plfB63jEJW7o96jxw0dYRYY0inHehmjgHigwMFw8Jt8,3533
|
|
429
430
|
cognee/modules/retrieval/cypher_search_retriever.py,sha256=qzXIrUp3edeKnYQqd2nJCRndCJX9hCle2t78a-A28w0,2817
|
|
430
431
|
cognee/modules/retrieval/graph_completion_context_extension_retriever.py,sha256=fqZo7AI2AR_OsfGjZl_ewAU17es_AgsJVQKKcbuvLTk,4067
|
|
431
432
|
cognee/modules/retrieval/graph_completion_cot_retriever.py,sha256=Y_G44FcVOICvR3k1FD-5emkSDUDkbOBElukuBT3pKKE,5473
|
|
432
|
-
cognee/modules/retrieval/graph_completion_retriever.py,sha256=
|
|
433
|
+
cognee/modules/retrieval/graph_completion_retriever.py,sha256=K6Gm2Q6t0eYhU6cWloAfIiMHYwVJfkAu7K-r1lewUrM,7184
|
|
433
434
|
cognee/modules/retrieval/graph_summary_completion_retriever.py,sha256=oOwZGChdjah-MqKg0ZQRfHYk1y0_8x7Xakh472qlFE0,2263
|
|
434
|
-
cognee/modules/retrieval/insights_retriever.py,sha256=
|
|
435
|
-
cognee/modules/retrieval/natural_language_retriever.py,sha256
|
|
436
|
-
cognee/modules/retrieval/summaries_retriever.py,sha256=
|
|
435
|
+
cognee/modules/retrieval/insights_retriever.py,sha256=2qSJuMC-lsbCR-OYU4FQfDT_-UI-lX4wR7qtGRcfwhI,4397
|
|
436
|
+
cognee/modules/retrieval/natural_language_retriever.py,sha256=MsUrOs7inzsoNT_dNzLp_jp2958Ks330hLJWbnB4AjI,6084
|
|
437
|
+
cognee/modules/retrieval/summaries_retriever.py,sha256=UgO6v6zpHqhFrEWLcsFr12zYZisiUWMyS5jiwp6zEak,3374
|
|
437
438
|
cognee/modules/retrieval/context_providers/DummyContextProvider.py,sha256=9GsvINc7ekRyRWO5IefFGyytRYqsSlhpwAOw6Q691cA,419
|
|
438
439
|
cognee/modules/retrieval/context_providers/SummarizedTripletSearchContextProvider.py,sha256=ypO6yWLxvmRsj_5dyYdvXTbztJmB_ioLrgyG6bF5WGA,894
|
|
439
440
|
cognee/modules/retrieval/context_providers/TripletSearchContextProvider.py,sha256=m_ndKKPrPUtuWRphwc43n0CXWtgwu90NjNOvvQOPcjs,3761
|
|
@@ -443,7 +444,7 @@ cognee/modules/retrieval/entity_extractors/__init__.py,sha256=47DEQpj8HBSa-_TImW
|
|
|
443
444
|
cognee/modules/retrieval/exceptions/__init__.py,sha256=9yC54Z5HmoDnti9_yFLXK9_l3aHAlCTDfPGMMTN7WfM,187
|
|
444
445
|
cognee/modules/retrieval/exceptions/exceptions.py,sha256=ILB3aMg3F8yI6XRxs21tFasySXNRxMeASJAjrk7eIVg,1168
|
|
445
446
|
cognee/modules/retrieval/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
446
|
-
cognee/modules/retrieval/utils/brute_force_triplet_search.py,sha256=
|
|
447
|
+
cognee/modules/retrieval/utils/brute_force_triplet_search.py,sha256=B1Yrnc6vRjZ1OSKYDrXkM2J0UwdyQdkXJ-pwZnI9Yss,7651
|
|
447
448
|
cognee/modules/retrieval/utils/completion.py,sha256=wAc0M3CGnwuw28u5q_eaoH2SJmF7tAdXvLEwodv5IQA,1121
|
|
448
449
|
cognee/modules/retrieval/utils/description_to_codepart_search.py,sha256=Mjgdn_QR0vTJlc72vK5daCysvekAaxCKEvWE97I_dF4,6381
|
|
449
450
|
cognee/modules/retrieval/utils/stop_words.py,sha256=HP8l2leoLf6u7tnWHrYhgVMY_TX6yetGIae8DTsTEH4,883
|
|
@@ -461,9 +462,9 @@ cognee/modules/search/types/SearchType.py,sha256=KQTL9P6LOlbjB1z_LT1tovmQ4TC98dP
|
|
|
461
462
|
cognee/modules/search/types/__init__.py,sha256=tOM_-qzqR4_4V5YZPXB_g9AUj9pobGMmCdNDRIpCPNs,35
|
|
462
463
|
cognee/modules/settings/__init__.py,sha256=_SZQgCQnnnIHLJuKOMO9uWzXNBQxwYHHMUSBp0qa2uQ,210
|
|
463
464
|
cognee/modules/settings/get_current_settings.py,sha256=R2lOusG5Q2PMa2-2vDndh3Lm7nXyZVkdzTV7vQHT81Y,1642
|
|
464
|
-
cognee/modules/settings/get_settings.py,sha256
|
|
465
|
+
cognee/modules/settings/get_settings.py,sha256=692NgItiBjLeLdL57AJ0coSBrCKvEleNpZ8olU9eyvc,4306
|
|
465
466
|
cognee/modules/settings/save_llm_config.py,sha256=fvvDJc_RGkqthrfD7pw7TNFuFc3-Y3QlJWpVl9OsVw8,504
|
|
466
|
-
cognee/modules/settings/save_vector_db_config.py,sha256=
|
|
467
|
+
cognee/modules/settings/save_vector_db_config.py,sha256=r3kmCNniYuraBH5sSP6jcsVP2-DB8QWSUzDIq7OgSog,671
|
|
467
468
|
cognee/modules/storage/utils/__init__.py,sha256=PcUVyMCZZw5hf3GPxB-vq-FUo1BBaSWL7sTKmZsZnkM,1848
|
|
468
469
|
cognee/modules/users/__init__.py,sha256=QRpoulUGvGvpoTvnPcVqmLavZEK1vSCOhoNomK6vwM4,80
|
|
469
470
|
cognee/modules/users/get_fastapi_users.py,sha256=jm0nMEnzHuJoiCCO1FzgHHzilLRlIuontUr9Jn-f0sc,594
|
|
@@ -624,7 +625,6 @@ cognee/tests/test_s3_file_storage.py,sha256=62tvIFyh_uTP0TFF9Ck4Y-sxWPW-cwJKYEJU
|
|
|
624
625
|
cognee/tests/test_search_db.py,sha256=e3J19yX8IgRI0DSlOp6o-TZjvSLmKn8Fbch8b2BolCA,8996
|
|
625
626
|
cognee/tests/test_starter_pipelines.py,sha256=X1J8RDD0bFMKnRETyi5nyaF4TYdmUIu0EuD3WQwShNs,2475
|
|
626
627
|
cognee/tests/test_telemetry.py,sha256=FIneuVofSKWFYqxNC88sT_P5GPzgfjVyqDCf2TYBE2E,4130
|
|
627
|
-
cognee/tests/test_weaviate.py,sha256=1mR_4VABrjoJ-KJu0cyG1txJ1Szj861PkSUN-NNNsLY,6142
|
|
628
628
|
cognee/tests/integration/documents/AudioDocument_test.py,sha256=0mJnlWRc7gWqOxAUfdSSIxntcUrzkPXhlsd-MFsiRoM,2790
|
|
629
629
|
cognee/tests/integration/documents/ImageDocument_test.py,sha256=vrb3uti0RF6a336LLI95i8fso3hOFw9AFe1NxPnOf6k,2802
|
|
630
630
|
cognee/tests/integration/documents/PdfDocument_test.py,sha256=27idYdl_eN6r92A4vUqLZdl9qrlf3pFfGcMhk7TYpsk,1803
|
|
@@ -679,7 +679,7 @@ cognee/tests/unit/modules/pipelines/run_tasks_with_context_test.py,sha256=Bi5XgQ
|
|
|
679
679
|
cognee/tests/unit/modules/retrieval/chunks_retriever_test.py,sha256=qJcwBW65PNOfWpvxh77EFd1d73o0MGJ9-mbAmrMhUEI,5891
|
|
680
680
|
cognee/tests/unit/modules/retrieval/graph_completion_retriever_context_extension_test.py,sha256=TBhRhQVZFJ7m-GjFuI7lP5F8oj04XPKvVt_cGSLWmlM,6748
|
|
681
681
|
cognee/tests/unit/modules/retrieval/graph_completion_retriever_cot_test.py,sha256=RqptHU4PT4FNtcPBJi7Y1ww1NJb0jqvL2gHf8wRbylA,6563
|
|
682
|
-
cognee/tests/unit/modules/retrieval/graph_completion_retriever_test.py,sha256=
|
|
682
|
+
cognee/tests/unit/modules/retrieval/graph_completion_retriever_test.py,sha256=zTbGpe-4yZBuLXom0Ml1mDCOEUWBLQ1TdLUBTQrLfvQ,8867
|
|
683
683
|
cognee/tests/unit/modules/retrieval/insights_retriever_test.py,sha256=xkbxlNiHY6evVbBYMncllXDNs3nNC_jZeYP47oT8vG0,8592
|
|
684
684
|
cognee/tests/unit/modules/retrieval/rag_completion_retriever_test.py,sha256=3A5FvbN4-x8N7wccB9vbVVv9neLFRM6KkZjTkLu0MSo,6101
|
|
685
685
|
cognee/tests/unit/modules/retrieval/summaries_retriever_test.py,sha256=IfhDyVuKUrjCEy22-Mva9w7li2mtPZT9FlNIFvpFMKw,4950
|
|
@@ -707,8 +707,8 @@ distributed/tasks/queued_add_edges.py,sha256=kz1DHE05y-kNHORQJjYWHUi6Q1QWUp_v3Dl
|
|
|
707
707
|
distributed/tasks/queued_add_nodes.py,sha256=aqK4Ij--ADwUWknxYpiwbYrpa6CcvFfqHWbUZW4Kh3A,452
|
|
708
708
|
distributed/workers/data_point_saving_worker.py,sha256=jFmA0-P_0Ru2IUDrSug0wML-5goAKrGtlBm5BA5Ryw4,3229
|
|
709
709
|
distributed/workers/graph_saving_worker.py,sha256=oUYl99CdhlrPAIsUOHbHnS3d4XhGoV0_OIbCO8wYzRg,3648
|
|
710
|
-
cognee-0.2.
|
|
711
|
-
cognee-0.2.
|
|
712
|
-
cognee-0.2.
|
|
713
|
-
cognee-0.2.
|
|
714
|
-
cognee-0.2.
|
|
710
|
+
cognee-0.2.2.dev0.dist-info/METADATA,sha256=omEOYqvxhpAQfopA9SvfbqG7h_qRcTJOQInxBd6jLiI,14437
|
|
711
|
+
cognee-0.2.2.dev0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
712
|
+
cognee-0.2.2.dev0.dist-info/licenses/LICENSE,sha256=pHHjSQj1DD8SDppW88MMs04TPk7eAanL1c5xj8NY7NQ,11344
|
|
713
|
+
cognee-0.2.2.dev0.dist-info/licenses/NOTICE.md,sha256=6L3saP3kSpcingOxDh-SGjMS8GY79Rlh2dBNLaO0o5c,339
|
|
714
|
+
cognee-0.2.2.dev0.dist-info/RECORD,,
|
cognee/tests/test_weaviate.py
DELETED
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import os
|
|
2
|
-
import pathlib
|
|
3
|
-
import cognee
|
|
4
|
-
from cognee.infrastructure.files.storage import get_storage_config
|
|
5
|
-
from cognee.modules.search.operations import get_history
|
|
6
|
-
from cognee.modules.users.methods import get_default_user
|
|
7
|
-
from cognee.shared.logging_utils import get_logger
|
|
8
|
-
from cognee.modules.search.types import SearchType
|
|
9
|
-
|
|
10
|
-
logger = get_logger()
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
async def main():
|
|
14
|
-
cognee.config.set_vector_db_provider("weaviate")
|
|
15
|
-
data_directory_path = str(
|
|
16
|
-
pathlib.Path(
|
|
17
|
-
os.path.join(pathlib.Path(__file__).parent, ".data_storage/test_weaviate")
|
|
18
|
-
).resolve()
|
|
19
|
-
)
|
|
20
|
-
cognee.config.data_root_directory(data_directory_path)
|
|
21
|
-
cognee_directory_path = str(
|
|
22
|
-
pathlib.Path(
|
|
23
|
-
os.path.join(pathlib.Path(__file__).parent, ".cognee_system/test_weaviate")
|
|
24
|
-
).resolve()
|
|
25
|
-
)
|
|
26
|
-
cognee.config.system_root_directory(cognee_directory_path)
|
|
27
|
-
|
|
28
|
-
await cognee.prune.prune_data()
|
|
29
|
-
await cognee.prune.prune_system(metadata=True)
|
|
30
|
-
|
|
31
|
-
dataset_name = "cs_explanations"
|
|
32
|
-
|
|
33
|
-
explanation_file_path = os.path.join(
|
|
34
|
-
pathlib.Path(__file__).parent, "test_data/Natural_language_processing.txt"
|
|
35
|
-
)
|
|
36
|
-
await cognee.add([explanation_file_path], dataset_name)
|
|
37
|
-
|
|
38
|
-
text = """A quantum computer is a computer that takes advantage of quantum mechanical phenomena.
|
|
39
|
-
At small scales, physical matter exhibits properties of both particles and waves, and quantum computing leverages this behavior, specifically quantum superposition and entanglement, using specialized hardware that supports the preparation and manipulation of quantum states.
|
|
40
|
-
Classical physics cannot explain the operation of these quantum devices, and a scalable quantum computer could perform some calculations exponentially faster (with respect to input size scaling) than any modern "classical" computer. In particular, a large-scale quantum computer could break widely used encryption schemes and aid physicists in performing physical simulations; however, the current state of the technology is largely experimental and impractical, with several obstacles to useful applications. Moreover, scalable quantum computers do not hold promise for many practical tasks, and for many important tasks quantum speedups are proven impossible.
|
|
41
|
-
The basic unit of information in quantum computing is the qubit, similar to the bit in traditional digital electronics. Unlike a classical bit, a qubit can exist in a superposition of its two "basis" states. When measuring a qubit, the result is a probabilistic output of a classical bit, therefore making quantum computers nondeterministic in general. If a quantum computer manipulates the qubit in a particular way, wave interference effects can amplify the desired measurement results. The design of quantum algorithms involves creating procedures that allow a quantum computer to perform calculations efficiently and quickly.
|
|
42
|
-
Physically engineering high-quality qubits has proven challenging. If a physical qubit is not sufficiently isolated from its environment, it suffers from quantum decoherence, introducing noise into calculations. Paradoxically, perfectly isolating qubits is also undesirable because quantum computations typically need to initialize qubits, perform controlled qubit interactions, and measure the resulting quantum states. Each of those operations introduces errors and suffers from noise, and such inaccuracies accumulate.
|
|
43
|
-
In principle, a non-quantum (classical) computer can solve the same computational problems as a quantum computer, given enough time. Quantum advantage comes in the form of time complexity rather than computability, and quantum complexity theory shows that some quantum algorithms for carefully selected tasks require exponentially fewer computational steps than the best known non-quantum algorithms. Such tasks can in theory be solved on a large-scale quantum computer whereas classical computers would not finish computations in any reasonable amount of time. However, quantum speedup is not universal or even typical across computational tasks, since basic tasks such as sorting are proven to not allow any asymptotic quantum speedup. Claims of quantum supremacy have drawn significant attention to the discipline, but are demonstrated on contrived tasks, while near-term practical use cases remain limited.
|
|
44
|
-
"""
|
|
45
|
-
|
|
46
|
-
await cognee.add([text], dataset_name)
|
|
47
|
-
|
|
48
|
-
await cognee.cognify([dataset_name])
|
|
49
|
-
|
|
50
|
-
from cognee.infrastructure.databases.vector import get_vector_engine
|
|
51
|
-
|
|
52
|
-
vector_engine = get_vector_engine()
|
|
53
|
-
random_node = (await vector_engine.search("Entity_name", "Quantum computer"))[0]
|
|
54
|
-
random_node_name = random_node.payload["text"]
|
|
55
|
-
|
|
56
|
-
search_results = await cognee.search(
|
|
57
|
-
query_text=random_node_name, query_type=SearchType.INSIGHTS
|
|
58
|
-
)
|
|
59
|
-
assert len(search_results) != 0, "The search results list is empty."
|
|
60
|
-
print("\n\nExtracted sentences are:\n")
|
|
61
|
-
for result in search_results:
|
|
62
|
-
print(f"{result}\n")
|
|
63
|
-
|
|
64
|
-
search_results = await cognee.search(query_type=SearchType.CHUNKS, query_text=random_node_name)
|
|
65
|
-
assert len(search_results) != 0, "The search results list is empty."
|
|
66
|
-
print("\n\nExtracted chunks are:\n")
|
|
67
|
-
for result in search_results:
|
|
68
|
-
print(f"{result}\n")
|
|
69
|
-
|
|
70
|
-
search_results = await cognee.search(
|
|
71
|
-
query_type=SearchType.SUMMARIES, query_text=random_node_name
|
|
72
|
-
)
|
|
73
|
-
assert len(search_results) != 0, "Query related summaries don't exist."
|
|
74
|
-
print("\nExtracted summaries are:\n")
|
|
75
|
-
for result in search_results:
|
|
76
|
-
print(f"{result}\n")
|
|
77
|
-
|
|
78
|
-
user = await get_default_user()
|
|
79
|
-
history = await get_history(user.id)
|
|
80
|
-
assert len(history) == 6, "Search history is not correct."
|
|
81
|
-
|
|
82
|
-
await cognee.prune.prune_data()
|
|
83
|
-
data_root_directory = get_storage_config()["data_root_directory"]
|
|
84
|
-
assert not os.path.isdir(data_root_directory), "Local data files are not deleted"
|
|
85
|
-
|
|
86
|
-
await cognee.prune.prune_system(metadata=True)
|
|
87
|
-
collections = await get_vector_engine().client.collections.list_all()
|
|
88
|
-
assert len(collections) == 0, "Weaviate vector database is not empty"
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
if __name__ == "__main__":
|
|
92
|
-
import asyncio
|
|
93
|
-
|
|
94
|
-
asyncio.run(main())
|
|
File without changes
|
|
File without changes
|
|
File without changes
|