fix: Use DataPoint instead of ExtendableDataPoint in get_all_subclasses (#588)
<!-- .github/pull_request_template.md --> ## Description <!-- Provide a clear description of the changes in this PR --> - Use DataPoint instead of ExtendableDataPoint when calling get_all_subclasses in the get_triplets function of the GraphCompletionRetriever ## 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 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Refactor** - Updated the internal data handling for retrieving information, ensuring a more consistent and reliable output for end-users. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
parent
653f5e40dd
commit
3d4312577e
1 changed files with 2 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
from typing import Any, Optional
|
||||
|
||||
from cognee.infrastructure.engine import ExtendableDataPoint
|
||||
from cognee.infrastructure.engine import DataPoint
|
||||
from cognee.modules.graph.utils.convert_node_to_data_point import get_all_subclasses
|
||||
from cognee.modules.retrieval.base_retriever import BaseRetriever
|
||||
from cognee.modules.retrieval.utils.brute_force_triplet_search import brute_force_triplet_search
|
||||
|
|
@ -35,7 +35,7 @@ class GraphCompletionRetriever(BaseRetriever):
|
|||
|
||||
async def get_triplets(self, query: str) -> list:
|
||||
"""Retrieves relevant graph triplets."""
|
||||
subclasses = get_all_subclasses(ExtendableDataPoint)
|
||||
subclasses = get_all_subclasses(DataPoint)
|
||||
vector_index_collections = []
|
||||
|
||||
for subclass in subclasses:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue