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
Method
get_column
Get a column by name.
chatbi/domain/datasource/models.py:138
Method
get_connection_info
Convert datasource config to ConnectionInfo object. Returns: ConnectionInfo: Connection parameters
chatbi/database/datasource.py:57
Method
get_connection_info
Convert generic connection info to specific type
chatbi/domain/datasource/dtos.py:352
Method
get_content_type
Get Prometheus metrics content type. Returns: Content type string
chatbi/observability/metrics.py:300
Function
get_current_user
Get the current authenticated user from JWT token. Args: credentials: HTTP Bearer token credentials session: Async database
chatbi/dependencies.py:290
Function
get_datasource
Get a specific datasource by ID. Args: datasource_id: The ID of the datasource repo: Datasource repository Returns:
chatbi/domain/datasource/router.py:125
Function
get_datasource_connection_metrics
Get metrics about datasource connections. Returns: Dict containing connection metrics
chatbi/database/datasource.py:129
Function
get_datasource_types
Get all supported database types. Returns: List of database types with descriptions
chatbi/domain/datasource/router.py:344
Function
get_diagnosis_prompt
Generate prompt for data diagnosis.
chatbi/agent/prompts/diagnosis_prompt.py:15
Method
get_full_table_name
Get fully qualified table name.
chatbi/domain/datasource/models.py:149
Function
get_langfuse_observer
Get the global Langfuse observer instance. Returns: Singleton LangfuseObserver instance
chatbi/observability/langfuse_observer.py:296
Function
get_logger
Get configured logger instance. Returns: Logger instance
chatbi/dependencies.py:362
Function
get_mdl_service
Create MDL service with injected repositories
chatbi/domain/mdl/router.py:54
Function
get_me
获取当前登录用户信息 **需要鉴权**: 是 **返回**: - user_id: 用户 ID - username: 用户名 - email: 邮箱 - is_active: 是否激活 - is_admin: 是否管理员
chatbi/domain/auth/router.py:127
Function
get_metrics
Get Prometheus metrics Returns: Prometheus metrics in text format Example: ``` curl http://localhost:80
chatbi/routers/metrics.py:16
Method
get_metrics
Get current rate limiting metrics. Returns: Dict with metrics
chatbi/middleware/enhanced_rate_limiter.py:277
Method
get_metrics
Get connection metrics. Returns: Current connection metrics
chatbi/database/connection_manager.py:386
Method
get_metrics
Get Prometheus metrics in text format. Returns: Metrics in Prometheus text format
chatbi/observability/metrics.py:291
Function
get_model
Get MDL model by ID
chatbi/domain/mdl/router.py:169
Method
get_openai_model
()
chatbi/agent/llm/__init__.py:25
Method
get_or_create_session
Get existing session or create new one Args: session_id: Session ID user_id: User ID project_id:
chatbi/pipelines/ask/session_manager.py:98
Method
get_primary_key_columns
Get all primary key columns.
chatbi/domain/datasource/models.py:145
Function
get_project
Get MDL project by ID
chatbi/domain/mdl/router.py:99
Function
get_qdrant_client
Get synchronous Qdrant manager instance.
chatbi/dependencies.py:410
Method
get_recent_chat_sessions
Get most recent chat sessions across all users. Args: limit: Maximum number of sessions to return Returns:
chatbi/domain/chat/repository.py:202
Method
get_recent_chat_sessions
Get most recent chat sessions across all users asynchronously. Args: limit: Maximum number of sessions to return
chatbi/domain/chat/repository.py:467
Function
get_schema
Retrieve database schema information from a datasource. Args: datasource_id: The ID of the datasource db: Database session
chatbi/domain/datasource/router.py:313
Method
get_schema_metadata
Get database schema metadata. Args: db_type: Type of database connection_info: Connection parameters
chatbi/database/connection_manager.py:283
Method
get_schema_metadata
Retrieve database schema metadata. Args: connection_info: Connection parameters Returns: Schema met
chatbi/database/drivers/duckdb_adapter.py:246
Method
get_schema_metadata
Get MySQL database schema metadata. Args: connection_info: MySQL connection parameters Returns: Sch
chatbi/database/drivers/mysql_adapter.py:201
Method
get_schema_metadata
Get database schema metadata. Args: connection_info: Database connection parameters Returns: Schema
chatbi/database/drivers/base.py:89
Method
get_schema_metadata
Get PostgreSQL database schema metadata. Args: connection_info: PostgreSQL connection parameters Returns:
chatbi/database/drivers/postgres_adapter.py:229
Method
get_schemas
Get database schema information including tables and their columns. Returns: List of dictionaries with table schema info
chatbi/database/database.py:348
Function
get_session
Get a conversation by ID. Args: request: FastAPI request object id: Conversation ID repo: Repository instance from d
chatbi/domain/chat/router.py:143
Method
get_session_count
Get active session count
chatbi/pipelines/ask/session_manager.py:183
Method
get_table
Get a table by name.
chatbi/domain/datasource/models.py:200
Method
get_table_schema
Get schema information for a specific table with improved error handling. Args: table_name: Name of the table R
chatbi/database/drivers/sqlite_adapter.py:343
Method
get_table_schema
Get schema information for a specific table. Args: table_name: Name of the table Returns: List of c
chatbi/database/drivers/base.py:162
Method
get_tables
Get list of tables in the database. Returns: List of table names Raises: DatabaseError: If operatio
chatbi/database/drivers/base.py:148
Method
get_tables_with_schema
Get all tables in a specific schema.
chatbi/domain/datasource/models.py:207
Method
get_val
(key, default=None)
chatbi/database/drivers/postgres_adapter.py:42
Function
handleCancel
()
web/src/pages/DataSource/components/SaveQueryModal.tsx:35
Function
handleClear
()
web/src/pages/DataSource/components/CodeEditor.tsx:55
Function
handleColumnClick
(tableName: string, columnName: string)
web/src/pages/DataSource/Query.tsx:136
Function
handleConfirm
()
web/src/components/Chat/ClarificationWidget.tsx:25
Function
handleCopyToClipboard
()
web/src/pages/DataSource/components/QueryResultTable.tsx:263
Function
handleDatasourceChange
(value: string)
web/src/pages/Playground/index.tsx:226
Function
handleDownloadCSV
()
web/src/pages/DataSource/components/QueryResultTable.tsx:254
Function
handleEditorChange
(value: string | undefined)
web/src/pages/DataSource/components/CodeEditor.tsx:36
Function
handleEditorDidMount
(editor, monaco)
web/src/pages/DataSource/components/CodeEditor.tsx:59
Function
handleExecuteQuery
()
web/src/pages/DataSource/Query.tsx:170
Function
handleExpand
(newExpandedKeys: string[])
web/src/pages/DataSource/components/SchemaExplorer.tsx:231
Function
handleFileChange
(info: UploadChangeParam<UploadFile<File>>)
web/src/components/CsvReader/CsvReader.tsx:12
Function
handleFileChange
(info)
web/src/pages/Playground/index.tsx:283
Function
handleFormat
()
web/src/pages/DataSource/components/CodeEditor.tsx:40
Function
handleJSONDownload
()
web/src/pages/DataSource/components/QueryResultTable.tsx:279
Function
handleOk
()
web/src/pages/DataSource/components/SaveQueryModal.tsx:20
Function
handleSaveQuery
(name: string, description: string)
web/src/pages/DataSource/Query.tsx:147
Function
handleSearch
(e: React.ChangeEvent<HTMLInputElement>)
web/src/pages/DataSource/components/SchemaExplorer.tsx:207
Function
handleSubmit
(values: any)
web/src/pages/DataSource/components/DataSourceForm.tsx:83
Function
handleTableClick
(tableName: string)
web/src/pages/DataSource/Query.tsx:132
Function
handleTestConnection
()
web/src/pages/DataSource/components/DataSourceForm.tsx:52
Function
handleTypeChange
(value: string)
web/src/pages/DataSource/components/DataSourceForm.tsx:47
Method
has
Check if a key exists in the cache, respecting TTL
chatbi/cache/memory.py:35
Method
has
Check if a key exists in Redis
chatbi/cache/redis.py:170
Method
has
Check if a key exists in the cache. Args: id: Unique identifier for the cached item field: The specific fiel
chatbi/cache/base.py:55
Function
health_check
Health check endpoint for monitoring. Checks the status of the database and returns health information.
chatbi/main.py:105
Function
health_check
Health check endpoint Returns: Health status of Ask service
chatbi/domain/ask/router.py:136
Function
health_check
Health check endpoint Returns: Simple health status
chatbi/routers/metrics.py:40
Method
health_check
Check Qdrant health
chatbi/database/qdrant.py:201
Function
http_exception_handler
Handle Starlette HTTP exceptions.
chatbi/middleware/error_handler.py:307
Method
index_question
Index a question into history Args: question_id: Unique question ID project_id: Project ID quest
chatbi/pipelines/retrieval/history_retrieval.py:37
Method
init_ChatSession
Initialize a new chat session using the repository. Args: dto: Chat data transfer object Returns: N
chatbi/domain/chat/service.py:205
Function
init_conversation
Initialize a new conversation. Args: request: FastAPI request object dto: Chat data db: Database session from depend
chatbi/domain/chat/router.py:175
Function
inner_decorator
(func)
chatbi/utils.py:55
Method
is_connected
Check if the adapter has an active connection.
chatbi/database/drivers/mysql_adapter.py:36
Method
is_connected
Check if the adapter has an active connection.
chatbi/database/drivers/postgres_adapter.py:36
Function
layout
()
web/src/app.tsx:15
Function
list_datasources
List all datasources with optional filtering and pagination. Args: repo: Datasource repository skip: Number of records to sk
chatbi/domain/datasource/router.py:84
Function
list_models
List models in a project
chatbi/domain/mdl/router.py:142
Function
list_projects
List MDL projects
chatbi/domain/mdl/router.py:66
Function
login
用户登录接口 **请求参数**: - username: 用户名 - password: 密码 **返回**: - access_token: 访问令牌(有效期 30 分钟) - refresh_token: 刷新令牌(有效期 7 天)
chatbi/domain/auth/router.py:42
Function
logout
用户登出接口(清除 Refresh Token) **请求头**: - Authorization: Bearer <refresh_token>
chatbi/domain/auth/router.py:99
Function
main
()
chatbi/examples/duckdb.py:25
Function
make_cache_key
Generate a cache key for a request with additional parameters.
chatbi/middleware/cache.py:383
Method
map_fields
(cls, data: Any)
chatbi/domain/datasource/dtos.py:528
Method
map_schema_name
(cls, data: Any)
chatbi/domain/datasource/dtos.py:596
Method
model
(self)
chatbi/agent/llm/__init__.py:21
Function
modifyUser
( params: { // path /** userId */ userId?: string; }, body?: API.UserInfoVO, options?: { [
web/src/services/demo/UserController.ts:60
Function
onPromptsItemClick
(info)
web/src/models/chat.tsx:403
Function
onResponse
({ response })
web/src/services/client.ts:22
Function
queryUserList
( params: { // query /** keyword */ keyword?: string; /** current */ current?: number;
web/src/services/demo/UserController.ts:6
Function
rate_limit
Decorator for applying custom rate limits to specific endpoints. Usage: ```python @router.post("/api/v1/expensive-operation")
chatbi/dependencies.py:480
Method
record_cache_hit
Record cache hit. Args: cache_type: Type of cache (mdl, query, etc.)
chatbi/observability/metrics.py:266
Method
record_cache_miss
Record cache miss. Args: cache_type: Type of cache
chatbi/observability/metrics.py:274
Function
refresh_token
刷新访问令牌接口 **请求参数**: - refresh_token: 刷新令牌 **返回**: - access_token: 新的访问令牌 - refresh_token: 新的刷新令牌
chatbi/domain/auth/router.py:73
Function
register_adapter
Decorator to register a database adapter class. Args: db_type: The database type this adapter handles Returns: Decorato
chatbi/database/drivers/factory.py:269
Function
register_cache_implementation
Register a new cache implementation. This allows extending the caching system with custom implementations. Args: cache_type: Na
chatbi/cache/__init__.py:63
Function
renderAva
(message: Chat.IChatMessage)
web/src/models/chat.tsx:80
Function
renderInsight
(message: Chat.IChatMessage)
web/src/models/chat.tsx:33
← previous
next →
601–700 of 811, ranked by callers