cognee/cognitive_architecture/modules/cognify/graph/create_semantic_graph.py
2024-03-08 13:09:01 +01:00

17 lines
No EOL
402 B
Python

from cognitive_architecture.infrastructure.graph.get_graph_client import get_graph_client
def create_semantic_graph(
text_input: str,
filename: str,
context,
response_model: Type[BaseModel]
) -> KnowledgeGraph:
graph_type = GraphDBType.NEO4J
# Call the get_graph_client function with the selected graph type
graph_client = get_graph_client(graph_type)
GraphDBInterface