Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

chore(llma): disable actions embedding workflow and semantic search (#64759)

Georgiy Tarasove8115b64266e
diff --git a/ee/hogai/chat_agent/insights_graph/graph.py b/ee/hogai/chat_agent/insights_graph/graph.py
index cfa2e281c4d4..5b4f9ce0059e 100644
--- a/ee/hogai/chat_agent/insights_graph/graph.py
+++ b/ee/hogai/chat_agent/insights_graph/graph.py
@@ -142,9 +142,10 @@ class InsightsGraph(BaseAssistantGraph[AssistantState, PartialAssistantState]):
def add_query_creation_flow(self, next_node: AssistantNodeName = AssistantNodeName.QUERY_EXECUTOR):
"""Add all nodes and edges EXCEPT query execution."""
+ # Semantic actions search (RAG context) is disabled — go straight to the query planner.
+ self.add_edge(AssistantNodeName.START, AssistantNodeName.QUERY_PLANNER)
return (
- self.add_rag_context()
- .add_query_planner()
+ self.add_query_planner()
.add_trends_generator(next_node=next_node)
.add_funnel_generator(next_node=next_node)
.add_retention_generator(next_node=next_node)
diff --git a/posthog/temporal/schedule.py b/posthog/temporal/schedule.py
index 6fc3d28d252e..d91d11485ea8 100644
--- a/posthog/temporal/schedule.py
+++ b/posthog/temporal/schedule.py
@@ -20,9 +20,6 @@ from temporalio.client import (
ScheduleSpec,
)
-from posthog.hogql_queries.ai.vector_search_query_runner import LATEST_ACTIONS_EMBEDDING_VERSION
-from posthog.temporal.ai import SyncVectorsInputs
-from posthog.temporal.ai.sync_vectors import EmbeddingVersion
from posthog.temporal.ai_observability.eval_reports.schedule import (
create_count_trigger_schedule,
create_eval_reports_schedule,
@@ -101,20 +98,10 @@ from ee.billing.salesforce_enrichment.constants import DEFAULT_CHUNK_SIZE
logger = structlog.get_logger(__name__)
-async def create_sync_vectors_schedule(client: Client):
- sync_vectors_schedule = Schedule(
- action=ScheduleActionStartWorkflow(
- "ai-sync-vectors",
- asdict(SyncVectorsInputs(embedding_versions=EmbeddingVersion(actions=LATEST_ACTIONS_EMBEDDING_VERSION))),
- id="ai-sync-vectors-schedule",
- task_queue=settings.MAX_AI_TASK_QUEUE,
- ),
- spec=ScheduleSpec(intervals=[ScheduleIntervalSpec(every=timedelta(minutes=30))]),
- )
+async def cleanup_sync_vectors_schedule(client: Client):
+ """Disabled: delete the actions embedding sync schedule. Any in-flight runs die on their own execution_timeout."""
if await a_schedule_exists(client, "ai-sync-vectors-schedule"):
- await a_update_schedule(client, "ai-sync-vectors-schedule", sync_vectors_schedule)
- else:
- await a_create_schedule(client, "ai-sync-vectors-schedule", sync_vectors_schedule, trigger_immediately=True)
+ await a_delete_schedule(client, "ai-sync-vectors-schedule")
async def create_run_quota_limiting_schedule(client: Client):
@@ -664,7 +651,7 @@ async def create_error_tracking_recommendations_refresh_schedule(client: Client)
schedules = [
- create_sync_vectors_schedule,
+ cleanup_sync_vectors_schedule,
create_run_quota_limiting_schedule,
create_upgrade_queries_schedule,
create_count_all_playlists_schedule,