mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-10-24 09:25:21 +08:00
refactor: remove beta diagnostics collection and reporting (#2616)
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from langbot.pkg.telemetry import diagnostics
|
||||
|
||||
import posixpath
|
||||
import re
|
||||
from typing import TYPE_CHECKING, Any
|
||||
@@ -73,7 +71,6 @@ class RAGRuntimeService:
|
||||
raise WorkspaceNotFoundError('Knowledge base not found')
|
||||
return kb_uuid
|
||||
|
||||
@diagnostics.observe('api', 'knowledge.vector_upsert', source='agent')
|
||||
async def vector_upsert(
|
||||
self,
|
||||
execution_context: ExecutionContext,
|
||||
@@ -101,7 +98,6 @@ class RAGRuntimeService:
|
||||
documents=documents,
|
||||
)
|
||||
|
||||
@diagnostics.observe('api', 'knowledge.vector_search', source='agent')
|
||||
async def vector_search(
|
||||
self,
|
||||
execution_context: ExecutionContext,
|
||||
@@ -126,7 +122,6 @@ class RAGRuntimeService:
|
||||
vector_weight=vector_weight,
|
||||
)
|
||||
|
||||
@diagnostics.observe('api', 'knowledge.vector_delete', source='agent')
|
||||
async def vector_delete(
|
||||
self,
|
||||
execution_context: ExecutionContext,
|
||||
@@ -163,7 +158,6 @@ class RAGRuntimeService:
|
||||
)
|
||||
return count
|
||||
|
||||
@diagnostics.observe('api', 'knowledge.vector_list', source='agent')
|
||||
async def vector_list(
|
||||
self,
|
||||
execution_context: ExecutionContext,
|
||||
@@ -192,7 +186,6 @@ class RAGRuntimeService:
|
||||
offset=offset,
|
||||
)
|
||||
|
||||
@diagnostics.observe('api', 'knowledge.get_file_stream', source='agent')
|
||||
async def get_file_stream(
|
||||
self,
|
||||
execution_context: ExecutionContext,
|
||||
|
||||
Reference in New Issue
Block a user