MCPcopy Create free account

hub / github.com/chatbi/chatbi / functions

Functions811 in github.com/chatbi/chatbi

Functiondecorator
(func)
chatbi/dependencies.py:501
Functiondecorator
(func: Callable)
chatbi/middleware/cache.py:206
Functiondecorator
(func: F)
chatbi/database/database.py:122
Functiondecorator
(func)
chatbi/database/connection_manager.py:34
Functiondecorator
(cls: type[DatabaseAdapter])
chatbi/database/drivers/factory.py:280
Functiondecorator
(f)
chatbi/domain/chat/service.py:76
Functiondefault
(obj)
chatbi/utils.py:33
Methoddelete
Delete a value from the cache
chatbi/cache/memory.py:66
Methoddelete
Delete all fields for an ID from Redis
chatbi/cache/redis.py:185
Methoddelete
删除用户
chatbi/domain/auth/repository.py:118
Methoddelete
Delete a project
chatbi/domain/mdl/repository.py:108
Methoddelete
Delete a project
chatbi/domain/mdl/repository.py:207
Methoddelete
Delete a model
chatbi/domain/mdl/repository.py:383
Methoddelete
Delete entity by ID asynchronously. Args: id_value: Primary key value Returns: True if deleted, Fal
chatbi/domain/common/repository.py:522
FunctiondeleteUser
( params: { // path /** userId */ userId?: string; }, options?: { [key: string]: any }, )
web/src/services/demo/UserController.ts:82
Methoddelete_by_token
删除会话
chatbi/domain/auth/repository.py:193
Methoddelete_collection
Delete a collection
chatbi/database/qdrant.py:279
Functiondelete_datasource
Delete a datasource. Args: datasource_id: The ID of the datasource to delete db: Database session Returns: Succ
chatbi/domain/datasource/router.py:210
Methoddelete_datasource
Delete a datasource. Args: datasource_id: Datasource ID Returns: True if successful, False if not f
chatbi/domain/datasource/repository.py:255
Methoddelete_expired
删除过期会话
chatbi/domain/auth/repository.py:159
Methoddelete_expired
删除过期会话
chatbi/domain/auth/repository.py:205
Functiondelete_model
Delete an MDL model
chatbi/domain/mdl/router.py:198
Methoddelete_points_by_filter
Delete points matching filter
chatbi/database/qdrant.py:150
Methoddelete_points_by_filter
Delete points matching filter
chatbi/database/qdrant.py:289
Functiondelete_project
Delete an MDL project
chatbi/domain/mdl/router.py:128
Methoddelete_sync
Delete entity by ID synchronously. Args: id_value: Primary key value Returns: True if deleted, Fals
chatbi/domain/common/repository.py:354
Functiondelete_user
删除用户(仅管理员) **需要鉴权**: 是(管理员)
chatbi/domain/auth/router.py:262
Methoddispatch
Process a request with caching for eligible GET requests.
chatbi/middleware/cache.py:120
Methoddispatch
(self, request: Request, call_next: Callable)
chatbi/middleware/standard_response.py:78
Methoddispatch
Process a request and apply rate limiting if necessary. Args: request: FastAPI request call_next: Next middl
chatbi/middleware/rate_limiter.py:80
Methoddispatch
(self, request: Request, call_next)
chatbi/middleware/request.py:11
Functiondowngrade
()
chatbi/migrations/versions/0001_initial_schema.py:306
FunctionerrorHandler
()
web/src/app.tsx:103
FunctionerrorThrower
()
web/src/app.tsx:106
Methodexecute_batch
Execute the same SQL query with different parameters in a batch. Args: sql: SQL query string params_list: Li
chatbi/database/database.py:320
Methodexecute_func
(query_sql: str)
chatbi/domain/chat/service.py:775
Methodexecute_many
Execute multiple SQL queries in batch with improved performance. Args: query: SQL query template params: Lis
chatbi/database/drivers/sqlite_adapter.py:237
Functionexecute_query
Execute an SQL query against a datasource. Args: query: Query to execute datasource_id: The ID of the datasource to query
chatbi/domain/datasource/router.py:273
Methodexecute_query
Execute SQL query and return results as dictionaries. Args: sql: SQL query string params: Query parameters
chatbi/database/database.py:294
Methodexecute_query
Execute SQL query with parameters and return results as dictionaries. Args: query: SQL query string params:
chatbi/database/database.py:508
Methodexecute_query
Execute a query on the specified database with retry capability. Args: db_type: Type of database to connect to
chatbi/database/connection_manager.py:173
Methodexecute_query
Execute a query in the DuckDB database. Args: query: SQL query to execute parameters: Query parameters
chatbi/database/drivers/duckdb_adapter.py:177
Methodexecute_query
Execute a query on the MySQL database. Args: connection_info: MySQL connection parameters query: SQL query t
chatbi/database/drivers/mysql_adapter.py:114
Methodexecute_query
Execute a query on the database. Args: connection_info: Database connection parameters query: SQL query to e
chatbi/database/drivers/base.py:63
Methodexecute_query
Execute a query on the PostgreSQL database. Args: connection_info: PostgreSQL connection parameters query: S
chatbi/database/drivers/postgres_adapter.py:142
Functionexecute_sql_script
Execute a SQL script with multiple statements. Args: script: SQL script string with multiple statements Returns: bool:
chatbi/database/database.py:779
Functionexecute_time_measure
(key="default", decimals=4)
chatbi/utils.py:54
Functionextract_sql
r"""Extracts the SQL query from the LLM response. Example: ```python extract_sql("Here's the SQL query in a code block: ```sql\nSELECT *
chatbi/agent/utils.py:6
Methodfrom_dict
Create model instance from dictionary. Args: data: Dictionary containing model attributes Returns:
chatbi/domain/common/entities.py:61
Methodfrom_dict
Create entity from dictionary data.
chatbi/domain/common/entities.py:108
Methodfrom_domain
从领域模型创建
chatbi/domain/auth/entities.py:87
Methodfrom_domain
Create ORM entity from domain model
chatbi/domain/mdl/entities.py:67
Methodfrom_domain
Create ORM entity from domain model
chatbi/domain/mdl/entities.py:182
Methodgenerate
Generate text from prompt (async, non-streaming) Args: prompt: Input prompt temperature: Sampling temperatur
chatbi/agent/llm/openai.py:42
FunctiongenerateSql
(question: string, visualize = false)
web/src/services/chat/ChatService.ts:27
FunctiongenerateVisualize
(id: string, question: string)
web/src/services/chat/ChatService.ts:70
Functiongenerate_error_response
Generate a standardized error response dictionary. Args: error: The exception that occurred request: The FastAPI request obj
chatbi/middleware/error_handler.py:460
Methodgenerate_id
Generate a unique ID for the cache entry
chatbi/cache/memory.py:22
Methodgenerate_id
Generate a unique ID for the cache entry
chatbi/cache/redis.py:82
Functiongenerate_sql
Generate SQL from natural language question. Args: request: FastAPI request object dto: Chat data repo: Repository i
chatbi/domain/chat/router.py:240
Methodgenerate_stream
Generate text from prompt with streaming Args: prompt: Input prompt temperature: Sampling temperature
chatbi/agent/llm/openai.py:68
Functiongenerate_visualize
Generate visualization configuration for query results. Args: request: FastAPI request object dto: Chat data repo: R
chatbi/domain/chat/router.py:322
Functiongeneric_exception_handler
Handle any unhandled exception.
chatbi/middleware/error_handler.py:402
FunctiongetInitialState
()
web/src/app.tsx:10
FunctiongetUserDetail
( params: { // path /** userId */ userId?: string; }, options?: { [key: string]: any }, )
web/src/services/demo/UserController.ts:43
Functionget_adapter
Get a database adapter instance. Args: db_type: Type of database Returns: DatabaseAdapter instance
chatbi/database/drivers/factory.py:312
Functionget_admin_user
Verify the user has admin privileges. Args: user: Current authenticated user Returns: User: User information if admin
chatbi/dependencies.py:338
Methodget_all
Get all cache entries, respecting TTL
chatbi/cache/memory.py:80
Methodget_all
Get all values from the cache - limited to prevent memory issues
chatbi/cache/redis.py:117
Methodget_all
Get all values from the cache. Returns: List[Dict[str, Any]]: A list of all cached values
chatbi/cache/base.py:34
Methodget_all
Get all projects with pagination
chatbi/domain/mdl/repository.py:167
Methodget_all
Get all entities with pagination asynchronously. Args: skip: Number of records to skip limit: Maximum number
chatbi/domain/common/repository.py:454
Methodget_all_datasources
Get all datasources. Returns: List of all datasources
chatbi/domain/datasource/repository.py:174
Methodget_all_sync
Get all entities with pagination synchronously. Args: skip: Number of records to skip limit: Maximum number
chatbi/domain/common/repository.py:300
Functionget_async_db
Get asynchronous PostgreSQL database instance. Returns: AsyncPostgresDB instance
chatbi/database/database.py:758
Functionget_async_qdrant_client
Get asynchronous Qdrant manager instance.
chatbi/dependencies.py:415
Functionget_async_session
Get a database session using async context manager pattern. This is the preferred way to get a session for most async database operations.
chatbi/database/database.py:597
Functionget_auth_service
获取认证服务
chatbi/domain/auth/router.py:33
Methodget_by_datasource
Get all projects for a datasource
chatbi/domain/mdl/repository.py:141
Methodget_by_email
根据邮箱获取用户
chatbi/domain/auth/repository.py:95
Methodget_by_id
根据 ID 获取用户
chatbi/domain/auth/repository.py:83
Methodget_by_id
Get project by ID with models and columns
chatbi/domain/mdl/repository.py:33
Methodget_by_id
Get project by ID with models and columns
chatbi/domain/mdl/repository.py:128
Methodget_by_id
Get model by ID with columns
chatbi/domain/mdl/repository.py:312
Methodget_by_id_or_error
Get entity by ID or raise NotFoundError asynchronously. Args: id_value: Primary key value Returns:
chatbi/domain/common/repository.py:435
Methodget_by_id_sync
Get entity by ID synchronously. This is a convenience method for when you need synchronous access and are sure you're using
chatbi/domain/common/repository.py:283
Methodget_by_owner
Get all projects for an owner
chatbi/domain/mdl/repository.py:154
Methodget_by_project
Get all models for a project
chatbi/domain/mdl/repository.py:323
Methodget_by_query_id
Get diagnosis result by query ID.
chatbi/domain/diagnosis/repository.py:16
Methodget_by_query_id
Get correction logs by query ID.
chatbi/domain/diagnosis/repository.py:37
Methodget_by_token
根据 Refresh Token 获取会话
chatbi/domain/auth/repository.py:184
Methodget_by_username
根据用户名获取用户
chatbi/domain/auth/repository.py:88
Functionget_cache
Get a test value from cache. Args: request: FastAPI request object Returns: Standardized response with cached value
chatbi/domain/chat/router.py:112
Functionget_cache_client
Get cache client dependency. Returns: Cache client instance
chatbi/dependencies.py:238
Methodget_chat_messages_by_session_id
Get chat messages by session ID. Args: session_id: Chat session ID Returns: List of chat messages
chatbi/domain/chat/repository.py:53
Methodget_chat_messages_by_session_id
Get chat messages by session ID asynchronously. Args: session_id: Chat session ID Returns: List of
chatbi/domain/chat/repository.py:320
Methodget_chat_sessions_by_user_id
Get chat sessions for a specific user. Args: user_id: User identifier limit: Maximum number of sessions to r
chatbi/domain/chat/repository.py:177
Methodget_chat_sessions_by_user_id
Get chat sessions for a specific user asynchronously. Args: user_id: User identifier limit: Maximum number o
chatbi/domain/chat/repository.py:442
Methodget_chat_stats
Get chat statistics. Returns: Dictionary of statistics about chats
chatbi/domain/chat/repository.py:249
Methodget_chat_stats
Get chat statistics asynchronously. Returns: Dictionary of statistics about chats
chatbi/domain/chat/repository.py:514
← previousnext →501–600 of 811, ranked by callers