cognee 0.3.4.dev1__py3-none-any.whl → 0.3.4.dev2__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.
@@ -16,7 +16,7 @@ def get_checks_router():
16
16
  api_token = request.headers.get("X-Api-Key")
17
17
 
18
18
  if api_token is None:
19
- return CloudApiKeyMissingError()
19
+ raise CloudApiKeyMissingError()
20
20
 
21
21
  return await check_api_key(api_token)
22
22
 
@@ -113,7 +113,7 @@ class TemporalRetriever(GraphCompletionRetriever):
113
113
  logger.info(
114
114
  "No timestamps identified based on the query, performing retrieval using triplet search on events and entities."
115
115
  )
116
- triplets = await self.get_context(query)
116
+ triplets = await self.get_triplets(query)
117
117
  return await self.resolve_edges_to_text(triplets)
118
118
 
119
119
  if ids:
@@ -122,7 +122,7 @@ class TemporalRetriever(GraphCompletionRetriever):
122
122
  logger.info(
123
123
  "No events identified based on timestamp filtering, performing retrieval using triplet search on events and entities."
124
124
  )
125
- triplets = await self.get_context(query)
125
+ triplets = await self.get_triplets(query)
126
126
  return await self.resolve_edges_to_text(triplets)
127
127
 
128
128
  vector_engine = get_vector_engine()
cognee/root_dir.py CHANGED
@@ -20,6 +20,11 @@ def ensure_absolute_path(path: str) -> str:
20
20
  """
21
21
  if path is None:
22
22
  raise ValueError("Path cannot be None")
23
+
24
+ # Check if it's an S3 URL - S3 URLs are absolute by definition
25
+ if path.startswith("s3://"):
26
+ return path
27
+
23
28
  path_obj = Path(path).expanduser()
24
29
  if path_obj.is_absolute():
25
30
  return str(path_obj.resolve())
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cognee
3
- Version: 0.3.4.dev1
3
+ Version: 0.3.4.dev2
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
@@ -5,7 +5,7 @@ cognee/context_global_variables.py,sha256=X0PDjVwwB8qaDTGtdjHRzKvUo9fv4ygmxLz6g0
5
5
  cognee/get_token.py,sha256=6qrXc5P0zal6zo90gVYlZHv5g5bpic9i_J_2mAkNri0,634
6
6
  cognee/low_level.py,sha256=ffJMBQDYwXiYk_clHCCy7N7zIjJqhUUulNJ8ot4Xx0E,131
7
7
  cognee/pipelines.py,sha256=LjD3onu__-UK2v1O1UFHaJHtd6frhmZVZHKagWWu6_s,210
8
- cognee/root_dir.py,sha256=ktsvc5mjSWX2asC6uZK1PToubmREi02Sje5LQupQCVM,671
8
+ cognee/root_dir.py,sha256=hdUEVacdMOy0GBJksFciL_eW_CtXiHI6K-tL2SotHuQ,793
9
9
  cognee/version.py,sha256=isN9gXpAwkYR82cmhx-2ani8KylouByqM6iULr85Hyk,874
10
10
  cognee/api/.env.example,sha256=T3e9QDX8feK8cGBQUaRqORg1Y-1e-EFpByrvqehJqC4,265
11
11
  cognee/api/DTO.py,sha256=D-IN7PpNI6ypf7fhLif1wrsA-OV12th9B-1iTyu63qM,357
@@ -18,7 +18,7 @@ cognee/api/v1/add/add.py,sha256=cmqOlCzeRRanh1Ml6uUr5pK3LCJS-2b36E2A_Hxk3Uc,7315
18
18
  cognee/api/v1/add/routers/__init__.py,sha256=4c7wJoaUCQ7nqV_-BGYigevAL2mYORo6LFLciKtmVlU,43
19
19
  cognee/api/v1/add/routers/get_add_router.py,sha256=p1CCcinWIY7CBaFZ7NQU2HsIiv2IFHWFwthnWHiI46Q,3523
20
20
  cognee/api/v1/cloud/routers/__init__.py,sha256=eoFJLGLK0XbJdZbuX2M08OpThMxZIrmf3hT99YLBbPM,49
21
- cognee/api/v1/cloud/routers/get_checks_router.py,sha256=ymFHOKtUnl-gMKL4LQthD_oI6sl6rrxG13DgRrWtEzI,687
21
+ cognee/api/v1/cloud/routers/get_checks_router.py,sha256=IVORYxX5oG8CoESG5oyh71DQdd9EEReVdVvjpK5_AoY,686
22
22
  cognee/api/v1/cognify/__init__.py,sha256=EKVvqVlvd4MMx3dcVH3NPvxuQflcuJijo0WldrE8XqQ,29
23
23
  cognee/api/v1/cognify/code_graph_pipeline.py,sha256=gRU0GSTyYSNg-jT84pDbSH3alkFG3UNNgZOi9ZtJkCk,4107
24
24
  cognee/api/v1/cognify/cognify.py,sha256=gLLkcw1WQ1awdfoyZCdV_UzYSIaRHIBP0ltaR2W5y_w,12053
@@ -556,7 +556,7 @@ cognee/modules/retrieval/graph_summary_completion_retriever.py,sha256=3AMisk3fOb
556
556
  cognee/modules/retrieval/insights_retriever.py,sha256=1pcYd34EfKk85MSPFQ8b-ZbSARmnauks8TxXfNOxvOw,4953
557
557
  cognee/modules/retrieval/natural_language_retriever.py,sha256=zJz35zRmBP8-pRlkoxxSxn3-jtG2lUW0xcu58bq9Ebs,5761
558
558
  cognee/modules/retrieval/summaries_retriever.py,sha256=joXYphypACm2JiCjbC8nBS61m1q2oYkzyIt9bdgALNw,3384
559
- cognee/modules/retrieval/temporal_retriever.py,sha256=EUEYN94LpoWfbPjsToe_pC3rFsUUTIPA5K6wNjv8Nds,5685
559
+ cognee/modules/retrieval/temporal_retriever.py,sha256=wqDpEdIuLkLUJcQzAhkrx3GY5lQCkilOFbBFG9WOlOM,5687
560
560
  cognee/modules/retrieval/user_qa_feedback.py,sha256=-VEOsE_t0FiTy00OpOMWAYv12YSLPieAcMsu82vm7h4,3366
561
561
  cognee/modules/retrieval/context_providers/DummyContextProvider.py,sha256=9GsvINc7ekRyRWO5IefFGyytRYqsSlhpwAOw6Q691cA,419
562
562
  cognee/modules/retrieval/context_providers/SummarizedTripletSearchContextProvider.py,sha256=ypO6yWLxvmRsj_5dyYdvXTbztJmB_ioLrgyG6bF5WGA,894
@@ -889,9 +889,9 @@ distributed/tasks/queued_add_edges.py,sha256=kz1DHE05y-kNHORQJjYWHUi6Q1QWUp_v3Dl
889
889
  distributed/tasks/queued_add_nodes.py,sha256=aqK4Ij--ADwUWknxYpiwbYrpa6CcvFfqHWbUZW4Kh3A,452
890
890
  distributed/workers/data_point_saving_worker.py,sha256=jFmA0-P_0Ru2IUDrSug0wML-5goAKrGtlBm5BA5Ryw4,3229
891
891
  distributed/workers/graph_saving_worker.py,sha256=oUYl99CdhlrPAIsUOHbHnS3d4XhGoV0_OIbCO8wYzRg,3648
892
- cognee-0.3.4.dev1.dist-info/METADATA,sha256=6bowgjMT-6oiTpzQfG_eEjB3vtlxkwyu0bJeUmqbsYU,15097
893
- cognee-0.3.4.dev1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
894
- cognee-0.3.4.dev1.dist-info/entry_points.txt,sha256=GCCTsNg8gzOJkolq7dR7OK1VlIAO202dGDnMI8nm8oQ,55
895
- cognee-0.3.4.dev1.dist-info/licenses/LICENSE,sha256=pHHjSQj1DD8SDppW88MMs04TPk7eAanL1c5xj8NY7NQ,11344
896
- cognee-0.3.4.dev1.dist-info/licenses/NOTICE.md,sha256=6L3saP3kSpcingOxDh-SGjMS8GY79Rlh2dBNLaO0o5c,339
897
- cognee-0.3.4.dev1.dist-info/RECORD,,
892
+ cognee-0.3.4.dev2.dist-info/METADATA,sha256=bPHsZZiZEo6spQLzpKDqBj8Gf_yyfvAjwavk6lRram4,15097
893
+ cognee-0.3.4.dev2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
894
+ cognee-0.3.4.dev2.dist-info/entry_points.txt,sha256=GCCTsNg8gzOJkolq7dR7OK1VlIAO202dGDnMI8nm8oQ,55
895
+ cognee-0.3.4.dev2.dist-info/licenses/LICENSE,sha256=pHHjSQj1DD8SDppW88MMs04TPk7eAanL1c5xj8NY7NQ,11344
896
+ cognee-0.3.4.dev2.dist-info/licenses/NOTICE.md,sha256=6L3saP3kSpcingOxDh-SGjMS8GY79Rlh2dBNLaO0o5c,339
897
+ cognee-0.3.4.dev2.dist-info/RECORD,,