Abhay Singh
Abhay Singh
## Description `NeptuneGraphDB` does not implement `is_empty`, which `GraphDBInterface` declares as an `@abstractmethod`: ```python # graph_db_interface.py @abstractmethod async def is_empty(self) -> bool: """Return True when the graph contains no nodes."""...
## Description `NeptuneGraphDB.get_graph_metrics` unpacks the connected-components helper in the wrong order: ```python num_cluster, list_clsuter_size = await self._get_connected_components_stat() ... "num_connected_components": num_cluster, # gets the LIST "sizes_of_connected_components": list_clsuter_size, # gets the INT...
## Description `Neo4jAdapter.has_edge` has two defects: ```python query = f""" MATCH (from_node: `{BASE_LABEL}`)-[:`{edge_label}`]->(to_node: `{BASE_LABEL}`) WHERE from_node.id = $from_node_id AND to_node.id = $to_node_id RETURN COUNT(relationship) > 0 AS edge_exists # 'relationship'...
## Description `Neo4jAdapter.has_node` calls the async `query` method without awaiting it: ```python async def has_node(self, node_id: str) -> bool: results = self.query( # 0 else False ``` `query` is an...
## Description While reading the dataset management code I found `datasets.has_data` passes the wrong argument to the authorization helper: ```python @staticmethod async def has_data(dataset_id: str, user: Optional[User] = None) ->...
## Description While reading through the local file storage adapter I noticed `get_size` calls `file_exists` without awaiting it: ```python async def get_size(self, file_path: str) -> int: parsed_storage_path = get_parsed_path(self.storage_path) return...
## Description While following CONTRIBUTING.md to set the project up, the "Running Simple Example" step failed for me. It tells you to run: python examples/python/simple_example.py but that file doesn't exist...
## Description `MistralAdapter.acreate_structured_output` calls: ```python response = await self.aclient.chat.completions.create( model=self.model, messages=messages, response_model=response_model, ... ) if response.choices and response.choices[0].message ...: content = response.choices[0].message.content return response_model.model_validate_json(content) ``` `self.aclient` is built with `instructor.from_litellm(...)`,...
## Description When a cognify or memify pipeline run errors, both routers build the HTTP 500 response `detail` like this: ```python detail = getattr(first_err, "error", None) or str(first_err) # cognify...
## Description `GET /v1/datasets/{dataset_id}/data` and `GET /v1/datasets/{dataset_id}/data/{data_id}/raw` authorize the request like this: ```python dataset = await get_authorized_existing_datasets([dataset_id], "read", user) if dataset is None: return JSONResponse(status_code=404, ...) dataset_id = dataset[0].id #...