Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chatbi/chatbi
/ functions
Functions
811 in github.com/chatbi/chatbi
⨍
Functions
811
◇
Types & classes
325
↳
Endpoints
45
Function
renderMarkdown
(message: Chat.IChatMessage)
web/src/models/chat.tsx:29
Function
renderTable
(message: Chat.IChatMessage)
web/src/models/chat.tsx:37
Method
replay
(self, *args, **kwargs)
tests/verify_scenario_sales.py:13
Method
replay
Summarize answer from query results Args: question: User's question query_metadata: Executed Query Metadata
chatbi/agent/answer_agent.py:126
Method
replay
Generate reasoning plan for a query Args: question: User's natural language question mdl_context: Retrieved
chatbi/agent/reasoning_agent.py:95
Method
replay
Generate chart configuration Args: question: User's question query_metadata: Executed Query Metadata
chatbi/agent/chart_agent.py:146
Method
reply
(self, *args, **kwargs)
tests/verify_scenario_sales.py:12
Method
reply
( self, id: str, question: str, sql: str | None = None, table_schema:
chatbi/agent/visualize_agent.py:51
Method
reply
(self, id: str, question: str, table_schema: str)
chatbi/agent/schema_agent.py:38
Method
reply
Generate insights from data.
chatbi/agent/diagnosis_agent.py:14
Function
requires_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
Method
reset_for_client
Reset rate limit for a specific client.
chatbi/middleware/rate_limiter.py:261
Method
reset_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
Function
root
Root endpoint for application status.
chatbi/main.py:99
Method
run
Retrieve relevant MDL context for a question Args: question: User's natural language question project_id: MD
chatbi/pipelines/retrieval/mdl_retrieval.py:41
Function
runSql
( id: string, sql: string, timeout: number | null = 30, max_rows: number | null = 1000, )
web/src/services/chat/ChatService.ts:45
Method
run_health_check
Run health check on the connection system. Returns: Health check results
chatbi/database/connection_manager.py:341
Function
run_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
Method
run_streaming
Generate natural language answer with streaming Args: question: User's question cube_query: Executed Cube Qu
chatbi/agent/answer_agent.py:188
Method
save_chat_history
Save a chat history record asynchronously. Args: history_data: Dictionary containing history record attributes
chatbi/domain/chat/repository.py:419
Method
search
Search for similar vectors
chatbi/database/qdrant.py:249
Method
search_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
Method
search_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
Method
serialize_datetime
Convert datetime and date objects to ISO format strings
chatbi/domain/chat/service.py:723
Method
set
Set a value in the cache with optional TTL
chatbi/cache/memory.py:53
Method
set_active_sessions
Update active sessions gauge. Args: count: Number of active sessions
chatbi/observability/metrics.py:282
Function
set_cache
Set a test value in cache. Args: request: FastAPI request object Returns: Standardized response with cache result
chatbi/domain/chat/router.py:81
Method
set_cost
Record LLM cost
chatbi/observability/metrics.py:429
Method
set_many
Set multiple fields at once for better performance
chatbi/cache/redis.py:211
Method
set_status
Set HTTP status code
chatbi/observability/metrics.py:348
Method
set_tokens
Record token usage
chatbi/observability/metrics.py:415
Method
should_visualize
Determine if data is suitable for visualization. Args: df: DataFrame with query results Returns: Tr
chatbi/domain/chat/service.py:924
Method
shutdown
Shutdown Langfuse client (应用关闭时调用).
chatbi/observability/langfuse_observer.py:281
Function
shutdown_event
Clean up resources during application shutdown.
chatbi/main.py:78
Function
startup_event
Initialize resources during application startup.
chatbi/main.py:59
Function
sync_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
Function
sync_wrapper
Wrapper for synchronous functions.
chatbi/dependencies.py:122
Function
test_ambiguity_flow
(chat_service)
tests/verify_intelligence_flow.py:53
Function
test_chat
Test endpoint for chat functionality. Args: request: FastAPI request object dto: Chat data Returns: Standardize
chatbi/domain/chat/router.py:57
Function
test_config
_summary_: Test the config endpoint, which should return a JSON response with the current config.
chatbi/tests/test_main.py:22
Function
test_connection
Test connection to a database without creating a datasource. Args: data: Connection information to test Returns: Connec
chatbi/domain/datasource/router.py:241
Method
test_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
Method
test_connection
Test if a connection to DuckDB can be established. Args: connection_info: DuckDB connection parameters Returns:
chatbi/database/drivers/duckdb_adapter.py:124
Method
test_connection
Test the connection to the database. Args: connection_info: Connection parameters Returns: Tuple of
chatbi/database/drivers/sqlite_adapter.py:378
Method
test_connection
Test a MySQL database connection without storing it. Args: connection_info: MySQL connection parameters Returns
chatbi/database/drivers/mysql_adapter.py:65
Method
test_connection
Test a database connection without storing it. Args: connection_info: Database connection parameters Returns:
chatbi/database/drivers/base.py:49
Method
test_connection
Test a PostgreSQL database connection without storing it. Args: connection_info: PostgreSQL connection parameters
chatbi/database/drivers/postgres_adapter.py:94
Method
test_connection
Test database connection. Args: connection_params: Connection parameters Returns: True if connectio
chatbi/domain/datasource/repository.py:273
Function
test_execution_pipeline_max_retries
()
tests/test_sql_correction.py:75
Function
test_execution_pipeline_retry_success
()
tests/test_sql_correction.py:36
Function
test_execution_pipeline_success_first_try
()
tests/test_sql_correction.py:13
Function
test_health
_summary_: Test the health endpoint, which should return a JSON response with status 'ok'.
chatbi/tests/test_main.py:15
Function
test_root
_summary_: Test the root endpoint, which should redirect to the docs endpoint.
chatbi/tests/test_main.py:8
Function
test_success_flow_with_insight
(chat_service)
tests/verify_intelligence_flow.py:74
Function
test_update_config
_summary_: Test the update config endpoint, which should return a JSON response with the updated config.
chatbi/tests/test_main.py:29
Method
to_dict
Convert column definition to dictionary representation.
chatbi/domain/datasource/models.py:82
Method
to_dict
Convert table definition to dictionary representation.
chatbi/domain/datasource/models.py:155
Method
to_dict
Convert database schema to dictionary representation.
chatbi/domain/datasource/models.py:211
Method
to_dict
Convert connection details to dictionary representation. Args: include_secrets: Whether to include secret values (defaul
chatbi/domain/datasource/models.py:248
Method
to_dict
Convert entity to dictionary representation.
chatbi/domain/common/entities.py:99
Method
to_domain
转换为领域模型
chatbi/domain/auth/entities.py:76
Method
to_domain
Convert ORM entity to domain model
chatbi/domain/mdl/entities.py:45
Method
to_domain
Convert ORM entity to domain model
chatbi/domain/mdl/entities.py:168
Method
to_domain_model
Convert ORM entity to domain entity.
chatbi/domain/datasource/entities.py:71
Method
to_domain_model
Convert ORM entity to domain entity.
chatbi/domain/chat/entities.py:49
Method
to_domain_model
Convert ORM entity to domain entity.
chatbi/domain/chat/entities.py:93
Method
to_domain_model
(self)
chatbi/domain/diagnosis/entities.py:17
Method
to_domain_model
(self)
chatbi/domain/diagnosis/entities.py:40
Function
to_json
(df: pd.DataFrame)
chatbi/utils.py:11
Method
to_orm_entity
Convert domain entity to ORM entity.
chatbi/domain/datasource/entities.py:154
Method
to_orm_entity
Convert domain entity to ORM entity.
chatbi/domain/chat/entities.py:210
Method
to_orm_entity
Convert domain entity to ORM entity.
chatbi/domain/chat/entities.py:257
Method
track_agent
Track agent execution. Args: agent_name: Agent name Returns: Context manager
chatbi/observability/metrics.py:255
Method
track_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
Method
track_pipeline_step
Track pipeline step execution. Args: pipeline: Pipeline name (e.g., "AskPipeline") step: Step name (e.g., "MD
chatbi/observability/metrics.py:231
Function
track_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
Method
track_request
Track HTTP request metrics. Args: endpoint: API endpoint path method: HTTP method Returns:
chatbi/observability/metrics.py:219
Method
transaction
Context manager for transaction handling with improved error management. Usage: async with adapter.transaction():
chatbi/database/drivers/sqlite_adapter.py:268
Function
transactional
Decorator for transaction management. Ensures that database operations are committed on success and rolled back on error. Also prevents
chatbi/dependencies.py:105
Function
trim
(str: string)
web/src/utils/format.ts:2
Method
update
更新用户
chatbi/domain/auth/repository.py:102
Method
update
Update project fields
chatbi/domain/mdl/repository.py:91
Method
update
Update project fields
chatbi/domain/mdl/repository.py:190
Method
update
Update model fields
chatbi/domain/mdl/repository.py:350
Method
update
Update existing entity. Args: entity: Entity to update Returns: Updated entity
chatbi/domain/common/repository.py:253
Method
update
Update existing entity asynchronously. Args: entity: Entity to update Returns: Updated entity
chatbi/domain/common/repository.py:502
Method
update_chat_session
Update an existing chat session. Args: id: Session ID update_data: Dictionary containing fields to update
chatbi/domain/chat/repository.py:121
Method
update_chat_session
Update an existing chat session asynchronously. Args: id: Session ID update_data: Dictionary containing fiel
chatbi/domain/chat/repository.py:390
Function
update_config
(cfg: ConfigModel)
chatbi/main.py:141
Function
update_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
Method
update_datasource
Update an existing datasource. Args: datasource_id: Datasource ID datasource_data: Updated datasource data
chatbi/domain/datasource/repository.py:230
Function
update_model
Update an MDL model
chatbi/domain/mdl/router.py:185
Function
update_project
Update an MDL project
chatbi/domain/mdl/router.py:115
Method
update_sync
Update existing entity synchronously. Args: entity: Entity to update Returns: Updated entity
chatbi/domain/common/repository.py:340
Function
update_user
更新用户(管理员可更新任何用户,普通用户只能更新自己) **需要鉴权**: 是 **请求参数**: - email: 邮箱(可选) - password: 密码(可选) - is_active: 是否激活(可选,仅管理员) - is_ad
chatbi/domain/auth/router.py:201
Function
upgrade
()
chatbi/migrations/versions/0001_initial_schema.py:21
Method
upsert_points
Insert or update points in collection
chatbi/database/qdrant.py:235
Function
useUser
()
web/src/models/global.ts:5
Method
vacuum
Optimize database by rebuilding it to reclaim unused space. Raises: DatabaseError: If operation fails
chatbi/database/drivers/sqlite_adapter.py:364
Method
validate_config
Validate that at least one field is provided.
chatbi/config.py:322
← previous
next →
701–800 of 811, ranked by callers