MCPcopy Create free account

hub / github.com/chatbi/chatbi / functions

Functions811 in github.com/chatbi/chatbi

FunctionrenderMarkdown
(message: Chat.IChatMessage)
web/src/models/chat.tsx:29
FunctionrenderTable
(message: Chat.IChatMessage)
web/src/models/chat.tsx:37
Methodreplay
(self, *args, **kwargs)
tests/verify_scenario_sales.py:13
Methodreplay
Summarize answer from query results Args: question: User's question query_metadata: Executed Query Metadata
chatbi/agent/answer_agent.py:126
Methodreplay
Generate reasoning plan for a query Args: question: User's natural language question mdl_context: Retrieved
chatbi/agent/reasoning_agent.py:95
Methodreplay
Generate chart configuration Args: question: User's question query_metadata: Executed Query Metadata
chatbi/agent/chart_agent.py:146
Methodreply
(self, *args, **kwargs)
tests/verify_scenario_sales.py:12
Methodreply
( self, id: str, question: str, sql: str | None = None, table_schema:
chatbi/agent/visualize_agent.py:51
Methodreply
(self, id: str, question: str, table_schema: str)
chatbi/agent/schema_agent.py:38
Methodreply
Generate insights from data.
chatbi/agent/diagnosis_agent.py:14
Functionrequires_cache
Decorator to ensure required cache fields exist before executing a method. Args: required_fields: List of field names that must exis
chatbi/domain/chat/service.py:57
Methodreset_for_client
Reset rate limit for a specific client.
chatbi/middleware/rate_limiter.py:261
Methodreset_user_limits
Manually reset rate limits for a specific user (admin function). Args: user_id: User ID to reset
chatbi/middleware/enhanced_rate_limiter.py:289
Functionroot
Root endpoint for application status.
chatbi/main.py:99
Methodrun
Retrieve relevant MDL context for a question Args: question: User's natural language question project_id: MD
chatbi/pipelines/retrieval/mdl_retrieval.py:41
FunctionrunSql
( id: string, sql: string, timeout: number | null = 30, max_rows: number | null = 1000, )
web/src/services/chat/ChatService.ts:45
Methodrun_health_check
Run health check on the connection system. Returns: Health check results
chatbi/database/connection_manager.py:341
Functionrun_sql
Execute SQL query and return results. Args: request: FastAPI request object dto: Run SQL request data repo: Reposito
chatbi/domain/chat/router.py:279
Methodrun_streaming
Generate natural language answer with streaming Args: question: User's question cube_query: Executed Cube Qu
chatbi/agent/answer_agent.py:188
Methodsave_chat_history
Save a chat history record asynchronously. Args: history_data: Dictionary containing history record attributes
chatbi/domain/chat/repository.py:419
Methodsearch
Search for similar vectors
chatbi/database/qdrant.py:249
Methodsearch_chat_messages
Search chat messages by content. Args: query: Search text to look for in message content limit: Maximum numb
chatbi/domain/chat/repository.py:223
Methodsearch_chat_messages
Search chat messages by content asynchronously. Args: query: Search text to look for in message content limi
chatbi/domain/chat/repository.py:486
Methodserialize_datetime
Convert datetime and date objects to ISO format strings
chatbi/domain/chat/service.py:723
Methodset
Set a value in the cache with optional TTL
chatbi/cache/memory.py:53
Methodset_active_sessions
Update active sessions gauge. Args: count: Number of active sessions
chatbi/observability/metrics.py:282
Functionset_cache
Set a test value in cache. Args: request: FastAPI request object Returns: Standardized response with cache result
chatbi/domain/chat/router.py:81
Methodset_cost
Record LLM cost
chatbi/observability/metrics.py:429
Methodset_many
Set multiple fields at once for better performance
chatbi/cache/redis.py:211
Methodset_status
Set HTTP status code
chatbi/observability/metrics.py:348
Methodset_tokens
Record token usage
chatbi/observability/metrics.py:415
Methodshould_visualize
Determine if data is suitable for visualization. Args: df: DataFrame with query results Returns: Tr
chatbi/domain/chat/service.py:924
Methodshutdown
Shutdown Langfuse client (应用关闭时调用).
chatbi/observability/langfuse_observer.py:281
Functionshutdown_event
Clean up resources during application shutdown.
chatbi/main.py:78
Functionstartup_event
Initialize resources during application startup.
chatbi/main.py:59
Functionsync_mdl
Trigger MDL indexing from Cube.js metadata This endpoint: 1. Fetches metadata from Cube.js API 2. Transforms cubes to MDL models
chatbi/domain/mdl/router.py:212
Functionsync_wrapper
Wrapper for synchronous functions.
chatbi/dependencies.py:122
Functiontest_ambiguity_flow
(chat_service)
tests/verify_intelligence_flow.py:53
Functiontest_chat
Test endpoint for chat functionality. Args: request: FastAPI request object dto: Chat data Returns: Standardize
chatbi/domain/chat/router.py:57
Functiontest_config
_summary_: Test the config endpoint, which should return a JSON response with the current config.
chatbi/tests/test_main.py:22
Functiontest_connection
Test connection to a database without creating a datasource. Args: data: Connection information to test Returns: Connec
chatbi/domain/datasource/router.py:241
Methodtest_connection
Test a database connection without storing it. Args: db_type: Type of database to connect to connection_info
chatbi/database/connection_manager.py:247
Methodtest_connection
Test if a connection to DuckDB can be established. Args: connection_info: DuckDB connection parameters Returns:
chatbi/database/drivers/duckdb_adapter.py:124
Methodtest_connection
Test the connection to the database. Args: connection_info: Connection parameters Returns: Tuple of
chatbi/database/drivers/sqlite_adapter.py:378
Methodtest_connection
Test a MySQL database connection without storing it. Args: connection_info: MySQL connection parameters Returns
chatbi/database/drivers/mysql_adapter.py:65
Methodtest_connection
Test a database connection without storing it. Args: connection_info: Database connection parameters Returns:
chatbi/database/drivers/base.py:49
Methodtest_connection
Test a PostgreSQL database connection without storing it. Args: connection_info: PostgreSQL connection parameters
chatbi/database/drivers/postgres_adapter.py:94
Methodtest_connection
Test database connection. Args: connection_params: Connection parameters Returns: True if connectio
chatbi/domain/datasource/repository.py:273
Functiontest_execution_pipeline_max_retries
()
tests/test_sql_correction.py:75
Functiontest_execution_pipeline_retry_success
()
tests/test_sql_correction.py:36
Functiontest_execution_pipeline_success_first_try
()
tests/test_sql_correction.py:13
Functiontest_health
_summary_: Test the health endpoint, which should return a JSON response with status 'ok'.
chatbi/tests/test_main.py:15
Functiontest_root
_summary_: Test the root endpoint, which should redirect to the docs endpoint.
chatbi/tests/test_main.py:8
Functiontest_success_flow_with_insight
(chat_service)
tests/verify_intelligence_flow.py:74
Functiontest_update_config
_summary_: Test the update config endpoint, which should return a JSON response with the updated config.
chatbi/tests/test_main.py:29
Methodto_dict
Convert column definition to dictionary representation.
chatbi/domain/datasource/models.py:82
Methodto_dict
Convert table definition to dictionary representation.
chatbi/domain/datasource/models.py:155
Methodto_dict
Convert database schema to dictionary representation.
chatbi/domain/datasource/models.py:211
Methodto_dict
Convert connection details to dictionary representation. Args: include_secrets: Whether to include secret values (defaul
chatbi/domain/datasource/models.py:248
Methodto_dict
Convert entity to dictionary representation.
chatbi/domain/common/entities.py:99
Methodto_domain
转换为领域模型
chatbi/domain/auth/entities.py:76
Methodto_domain
Convert ORM entity to domain model
chatbi/domain/mdl/entities.py:45
Methodto_domain
Convert ORM entity to domain model
chatbi/domain/mdl/entities.py:168
Methodto_domain_model
Convert ORM entity to domain entity.
chatbi/domain/datasource/entities.py:71
Methodto_domain_model
Convert ORM entity to domain entity.
chatbi/domain/chat/entities.py:49
Methodto_domain_model
Convert ORM entity to domain entity.
chatbi/domain/chat/entities.py:93
Methodto_domain_model
(self)
chatbi/domain/diagnosis/entities.py:17
Methodto_domain_model
(self)
chatbi/domain/diagnosis/entities.py:40
Functionto_json
(df: pd.DataFrame)
chatbi/utils.py:11
Methodto_orm_entity
Convert domain entity to ORM entity.
chatbi/domain/datasource/entities.py:154
Methodto_orm_entity
Convert domain entity to ORM entity.
chatbi/domain/chat/entities.py:210
Methodto_orm_entity
Convert domain entity to ORM entity.
chatbi/domain/chat/entities.py:257
Methodtrack_agent
Track agent execution. Args: agent_name: Agent name Returns: Context manager
chatbi/observability/metrics.py:255
Methodtrack_llm_call
Track LLM API call. Args: model: Model name (e.g., "gpt-4") agent: Agent name (e.g., "QueryReasoningAgent")
chatbi/observability/metrics.py:243
Methodtrack_pipeline_step
Track pipeline step execution. Args: pipeline: Pipeline name (e.g., "AskPipeline") step: Step name (e.g., "MD
chatbi/observability/metrics.py:231
Functiontrack_request
Track request for analytics purposes. Args: user_id: User ID from API key verification user_agent: User agent from request h
chatbi/dependencies.py:585
Methodtrack_request
Track HTTP request metrics. Args: endpoint: API endpoint path method: HTTP method Returns:
chatbi/observability/metrics.py:219
Methodtransaction
Context manager for transaction handling with improved error management. Usage: async with adapter.transaction():
chatbi/database/drivers/sqlite_adapter.py:268
Functiontransactional
Decorator for transaction management. Ensures that database operations are committed on success and rolled back on error. Also prevents
chatbi/dependencies.py:105
Functiontrim
(str: string)
web/src/utils/format.ts:2
Methodupdate
更新用户
chatbi/domain/auth/repository.py:102
Methodupdate
Update project fields
chatbi/domain/mdl/repository.py:91
Methodupdate
Update project fields
chatbi/domain/mdl/repository.py:190
Methodupdate
Update model fields
chatbi/domain/mdl/repository.py:350
Methodupdate
Update existing entity. Args: entity: Entity to update Returns: Updated entity
chatbi/domain/common/repository.py:253
Methodupdate
Update existing entity asynchronously. Args: entity: Entity to update Returns: Updated entity
chatbi/domain/common/repository.py:502
Methodupdate_chat_session
Update an existing chat session. Args: id: Session ID update_data: Dictionary containing fields to update
chatbi/domain/chat/repository.py:121
Methodupdate_chat_session
Update an existing chat session asynchronously. Args: id: Session ID update_data: Dictionary containing fiel
chatbi/domain/chat/repository.py:390
Functionupdate_config
(cfg: ConfigModel)
chatbi/main.py:141
Functionupdate_datasource
Update an existing datasource. Args: data: Updated datasource properties datasource_id: The ID of the datasource to update
chatbi/domain/datasource/router.py:174
Methodupdate_datasource
Update an existing datasource. Args: datasource_id: Datasource ID datasource_data: Updated datasource data
chatbi/domain/datasource/repository.py:230
Functionupdate_model
Update an MDL model
chatbi/domain/mdl/router.py:185
Functionupdate_project
Update an MDL project
chatbi/domain/mdl/router.py:115
Methodupdate_sync
Update existing entity synchronously. Args: entity: Entity to update Returns: Updated entity
chatbi/domain/common/repository.py:340
Functionupdate_user
更新用户(管理员可更新任何用户,普通用户只能更新自己) **需要鉴权**: 是 **请求参数**: - email: 邮箱(可选) - password: 密码(可选) - is_active: 是否激活(可选,仅管理员) - is_ad
chatbi/domain/auth/router.py:201
Functionupgrade
()
chatbi/migrations/versions/0001_initial_schema.py:21
Methodupsert_points
Insert or update points in collection
chatbi/database/qdrant.py:235
FunctionuseUser
()
web/src/models/global.ts:5
Methodvacuum
Optimize database by rebuilding it to reclaim unused space. Raises: DatabaseError: If operation fails
chatbi/database/drivers/sqlite_adapter.py:364
Methodvalidate_config
Validate that at least one field is provided.
chatbi/config.py:322
← previousnext →701–800 of 811, ranked by callers