feat(graphiti): Integrate Langfuse Tracer for enhanced monitoring and tracing of Graphiti operations
feat(graphiti): Define entity and edge types in new graphiti_schema for structured data extraction feat(graphiti): Enhance ingest_episode_event_step with schema integration for improved episode processing
This commit is contained in:
@@ -12,6 +12,8 @@ from graphiti_core.llm_client import LLMConfig
|
||||
from graphiti_core.llm_client.openai_generic_client import OpenAIGenericClient
|
||||
from graphiti_core.embedder import OpenAIEmbedder, OpenAIEmbedderConfig
|
||||
|
||||
from services.graphiti_tracer import build_langfuse_tracer
|
||||
|
||||
|
||||
class GraphitiError(Exception):
|
||||
"""Fehler beim Zugriff auf den Graphiti-Client."""
|
||||
@@ -89,12 +91,15 @@ async def _build_graphiti() -> Graphiti:
|
||||
)
|
||||
)
|
||||
|
||||
tracer = build_langfuse_tracer(span_prefix="graphiti", ctx=None)
|
||||
|
||||
client = Graphiti(
|
||||
uri=neo4j_uri,
|
||||
user=neo4j_user,
|
||||
password=neo4j_password,
|
||||
llm_client=llm_client,
|
||||
embedder=embedder,
|
||||
tracer=tracer,
|
||||
)
|
||||
await client.build_indices_and_constraints()
|
||||
return client
|
||||
|
||||
Reference in New Issue
Block a user