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
decorator
(func)
chatbi/dependencies.py:501
Function
decorator
(func: Callable)
chatbi/middleware/cache.py:206
Function
decorator
(func: F)
chatbi/database/database.py:122
Function
decorator
(func)
chatbi/database/connection_manager.py:34
Function
decorator
(cls: type[DatabaseAdapter])
chatbi/database/drivers/factory.py:280
Function
decorator
(f)
chatbi/domain/chat/service.py:76
Function
default
(obj)
chatbi/utils.py:33
Method
delete
Delete a value from the cache
chatbi/cache/memory.py:66
Method
delete
Delete all fields for an ID from Redis
chatbi/cache/redis.py:185
Method
delete
删除用户
chatbi/domain/auth/repository.py:118
Method
delete
Delete a project
chatbi/domain/mdl/repository.py:108
Method
delete
Delete a project
chatbi/domain/mdl/repository.py:207
Method
delete
Delete a model
chatbi/domain/mdl/repository.py:383
Method
delete
Delete entity by ID asynchronously. Args: id_value: Primary key value Returns: True if deleted, Fal
chatbi/domain/common/repository.py:522
Function
deleteUser
( params: { // path /** userId */ userId?: string; }, options?: { [key: string]: any }, )
web/src/services/demo/UserController.ts:82
Method
delete_by_token
删除会话
chatbi/domain/auth/repository.py:193
Method
delete_collection
Delete a collection
chatbi/database/qdrant.py:279
Function
delete_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
Method
delete_datasource
Delete a datasource. Args: datasource_id: Datasource ID Returns: True if successful, False if not f
chatbi/domain/datasource/repository.py:255
Method
delete_expired
删除过期会话
chatbi/domain/auth/repository.py:159
Method
delete_expired
删除过期会话
chatbi/domain/auth/repository.py:205
Function
delete_model
Delete an MDL model
chatbi/domain/mdl/router.py:198
Method
delete_points_by_filter
Delete points matching filter
chatbi/database/qdrant.py:150
Method
delete_points_by_filter
Delete points matching filter
chatbi/database/qdrant.py:289
Function
delete_project
Delete an MDL project
chatbi/domain/mdl/router.py:128
Method
delete_sync
Delete entity by ID synchronously. Args: id_value: Primary key value Returns: True if deleted, Fals
chatbi/domain/common/repository.py:354
Function
delete_user
删除用户(仅管理员) **需要鉴权**: 是(管理员)
chatbi/domain/auth/router.py:262
Method
dispatch
Process a request with caching for eligible GET requests.
chatbi/middleware/cache.py:120
Method
dispatch
(self, request: Request, call_next: Callable)
chatbi/middleware/standard_response.py:78
Method
dispatch
Process a request and apply rate limiting if necessary. Args: request: FastAPI request call_next: Next middl
chatbi/middleware/rate_limiter.py:80
Method
dispatch
(self, request: Request, call_next)
chatbi/middleware/request.py:11
Function
downgrade
()
chatbi/migrations/versions/0001_initial_schema.py:306
Function
errorHandler
()
web/src/app.tsx:103
Function
errorThrower
()
web/src/app.tsx:106
Method
execute_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
Method
execute_func
(query_sql: str)
chatbi/domain/chat/service.py:775
Method
execute_many
Execute multiple SQL queries in batch with improved performance. Args: query: SQL query template params: Lis
chatbi/database/drivers/sqlite_adapter.py:237
Function
execute_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
Method
execute_query
Execute SQL query and return results as dictionaries. Args: sql: SQL query string params: Query parameters
chatbi/database/database.py:294
Method
execute_query
Execute SQL query with parameters and return results as dictionaries. Args: query: SQL query string params:
chatbi/database/database.py:508
Method
execute_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
Method
execute_query
Execute a query in the DuckDB database. Args: query: SQL query to execute parameters: Query parameters
chatbi/database/drivers/duckdb_adapter.py:177
Method
execute_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
Method
execute_query
Execute a query on the database. Args: connection_info: Database connection parameters query: SQL query to e
chatbi/database/drivers/base.py:63
Method
execute_query
Execute a query on the PostgreSQL database. Args: connection_info: PostgreSQL connection parameters query: S
chatbi/database/drivers/postgres_adapter.py:142
Function
execute_sql_script
Execute a SQL script with multiple statements. Args: script: SQL script string with multiple statements Returns: bool:
chatbi/database/database.py:779
Function
execute_time_measure
(key="default", decimals=4)
chatbi/utils.py:54
Function
extract_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
Method
from_dict
Create model instance from dictionary. Args: data: Dictionary containing model attributes Returns:
chatbi/domain/common/entities.py:61
Method
from_dict
Create entity from dictionary data.
chatbi/domain/common/entities.py:108
Method
from_domain
从领域模型创建
chatbi/domain/auth/entities.py:87
Method
from_domain
Create ORM entity from domain model
chatbi/domain/mdl/entities.py:67
Method
from_domain
Create ORM entity from domain model
chatbi/domain/mdl/entities.py:182
Method
generate
Generate text from prompt (async, non-streaming) Args: prompt: Input prompt temperature: Sampling temperatur
chatbi/agent/llm/openai.py:42
Function
generateSql
(question: string, visualize = false)
web/src/services/chat/ChatService.ts:27
Function
generateVisualize
(id: string, question: string)
web/src/services/chat/ChatService.ts:70
Function
generate_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
Method
generate_id
Generate a unique ID for the cache entry
chatbi/cache/memory.py:22
Method
generate_id
Generate a unique ID for the cache entry
chatbi/cache/redis.py:82
Function
generate_sql
Generate SQL from natural language question. Args: request: FastAPI request object dto: Chat data repo: Repository i
chatbi/domain/chat/router.py:240
Method
generate_stream
Generate text from prompt with streaming Args: prompt: Input prompt temperature: Sampling temperature
chatbi/agent/llm/openai.py:68
Function
generate_visualize
Generate visualization configuration for query results. Args: request: FastAPI request object dto: Chat data repo: R
chatbi/domain/chat/router.py:322
Function
generic_exception_handler
Handle any unhandled exception.
chatbi/middleware/error_handler.py:402
Function
getInitialState
()
web/src/app.tsx:10
Function
getUserDetail
( params: { // path /** userId */ userId?: string; }, options?: { [key: string]: any }, )
web/src/services/demo/UserController.ts:43
Function
get_adapter
Get a database adapter instance. Args: db_type: Type of database Returns: DatabaseAdapter instance
chatbi/database/drivers/factory.py:312
Function
get_admin_user
Verify the user has admin privileges. Args: user: Current authenticated user Returns: User: User information if admin
chatbi/dependencies.py:338
Method
get_all
Get all cache entries, respecting TTL
chatbi/cache/memory.py:80
Method
get_all
Get all values from the cache - limited to prevent memory issues
chatbi/cache/redis.py:117
Method
get_all
Get all values from the cache. Returns: List[Dict[str, Any]]: A list of all cached values
chatbi/cache/base.py:34
Method
get_all
Get all projects with pagination
chatbi/domain/mdl/repository.py:167
Method
get_all
Get all entities with pagination asynchronously. Args: skip: Number of records to skip limit: Maximum number
chatbi/domain/common/repository.py:454
Method
get_all_datasources
Get all datasources. Returns: List of all datasources
chatbi/domain/datasource/repository.py:174
Method
get_all_sync
Get all entities with pagination synchronously. Args: skip: Number of records to skip limit: Maximum number
chatbi/domain/common/repository.py:300
Function
get_async_db
Get asynchronous PostgreSQL database instance. Returns: AsyncPostgresDB instance
chatbi/database/database.py:758
Function
get_async_qdrant_client
Get asynchronous Qdrant manager instance.
chatbi/dependencies.py:415
Function
get_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
Function
get_auth_service
获取认证服务
chatbi/domain/auth/router.py:33
Method
get_by_datasource
Get all projects for a datasource
chatbi/domain/mdl/repository.py:141
Method
get_by_email
根据邮箱获取用户
chatbi/domain/auth/repository.py:95
Method
get_by_id
根据 ID 获取用户
chatbi/domain/auth/repository.py:83
Method
get_by_id
Get project by ID with models and columns
chatbi/domain/mdl/repository.py:33
Method
get_by_id
Get project by ID with models and columns
chatbi/domain/mdl/repository.py:128
Method
get_by_id
Get model by ID with columns
chatbi/domain/mdl/repository.py:312
Method
get_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
Method
get_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
Method
get_by_owner
Get all projects for an owner
chatbi/domain/mdl/repository.py:154
Method
get_by_project
Get all models for a project
chatbi/domain/mdl/repository.py:323
Method
get_by_query_id
Get diagnosis result by query ID.
chatbi/domain/diagnosis/repository.py:16
Method
get_by_query_id
Get correction logs by query ID.
chatbi/domain/diagnosis/repository.py:37
Method
get_by_token
根据 Refresh Token 获取会话
chatbi/domain/auth/repository.py:184
Method
get_by_username
根据用户名获取用户
chatbi/domain/auth/repository.py:88
Function
get_cache
Get a test value from cache. Args: request: FastAPI request object Returns: Standardized response with cached value
chatbi/domain/chat/router.py:112
Function
get_cache_client
Get cache client dependency. Returns: Cache client instance
chatbi/dependencies.py:238
Method
get_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
Method
get_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
Method
get_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
Method
get_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
Method
get_chat_stats
Get chat statistics. Returns: Dictionary of statistics about chats
chatbi/domain/chat/repository.py:249
Method
get_chat_stats
Get chat statistics asynchronously. Returns: Dictionary of statistics about chats
chatbi/domain/chat/repository.py:514
← previous
next →
501–600 of 811, ranked by callers