MCPcopy Create free account

hub / github.com/chatbi/chatbi / functions

Functions811 in github.com/chatbi/chatbi

Methodget_column
Get a column by name.
chatbi/domain/datasource/models.py:138
Methodget_connection_info
Convert datasource config to ConnectionInfo object. Returns: ConnectionInfo: Connection parameters
chatbi/database/datasource.py:57
Methodget_connection_info
Convert generic connection info to specific type
chatbi/domain/datasource/dtos.py:352
Methodget_content_type
Get Prometheus metrics content type. Returns: Content type string
chatbi/observability/metrics.py:300
Functionget_current_user
Get the current authenticated user from JWT token. Args: credentials: HTTP Bearer token credentials session: Async database
chatbi/dependencies.py:290
Functionget_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
Functionget_datasource_connection_metrics
Get metrics about datasource connections. Returns: Dict containing connection metrics
chatbi/database/datasource.py:129
Functionget_datasource_types
Get all supported database types. Returns: List of database types with descriptions
chatbi/domain/datasource/router.py:344
Functionget_diagnosis_prompt
Generate prompt for data diagnosis.
chatbi/agent/prompts/diagnosis_prompt.py:15
Methodget_full_table_name
Get fully qualified table name.
chatbi/domain/datasource/models.py:149
Functionget_langfuse_observer
Get the global Langfuse observer instance. Returns: Singleton LangfuseObserver instance
chatbi/observability/langfuse_observer.py:296
Functionget_logger
Get configured logger instance. Returns: Logger instance
chatbi/dependencies.py:362
Functionget_mdl_service
Create MDL service with injected repositories
chatbi/domain/mdl/router.py:54
Functionget_me
获取当前登录用户信息 **需要鉴权**: 是 **返回**: - user_id: 用户 ID - username: 用户名 - email: 邮箱 - is_active: 是否激活 - is_admin: 是否管理员
chatbi/domain/auth/router.py:127
Functionget_metrics
Get Prometheus metrics Returns: Prometheus metrics in text format Example: ``` curl http://localhost:80
chatbi/routers/metrics.py:16
Methodget_metrics
Get current rate limiting metrics. Returns: Dict with metrics
chatbi/middleware/enhanced_rate_limiter.py:277
Methodget_metrics
Get connection metrics. Returns: Current connection metrics
chatbi/database/connection_manager.py:386
Methodget_metrics
Get Prometheus metrics in text format. Returns: Metrics in Prometheus text format
chatbi/observability/metrics.py:291
Functionget_model
Get MDL model by ID
chatbi/domain/mdl/router.py:169
Methodget_openai_model
()
chatbi/agent/llm/__init__.py:25
Methodget_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
Methodget_primary_key_columns
Get all primary key columns.
chatbi/domain/datasource/models.py:145
Functionget_project
Get MDL project by ID
chatbi/domain/mdl/router.py:99
Functionget_qdrant_client
Get synchronous Qdrant manager instance.
chatbi/dependencies.py:410
Methodget_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
Methodget_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
Functionget_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
Methodget_schema_metadata
Get database schema metadata. Args: db_type: Type of database connection_info: Connection parameters
chatbi/database/connection_manager.py:283
Methodget_schema_metadata
Retrieve database schema metadata. Args: connection_info: Connection parameters Returns: Schema met
chatbi/database/drivers/duckdb_adapter.py:246
Methodget_schema_metadata
Get MySQL database schema metadata. Args: connection_info: MySQL connection parameters Returns: Sch
chatbi/database/drivers/mysql_adapter.py:201
Methodget_schema_metadata
Get database schema metadata. Args: connection_info: Database connection parameters Returns: Schema
chatbi/database/drivers/base.py:89
Methodget_schema_metadata
Get PostgreSQL database schema metadata. Args: connection_info: PostgreSQL connection parameters Returns:
chatbi/database/drivers/postgres_adapter.py:229
Methodget_schemas
Get database schema information including tables and their columns. Returns: List of dictionaries with table schema info
chatbi/database/database.py:348
Functionget_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
Methodget_session_count
Get active session count
chatbi/pipelines/ask/session_manager.py:183
Methodget_table
Get a table by name.
chatbi/domain/datasource/models.py:200
Methodget_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
Methodget_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
Methodget_tables
Get list of tables in the database. Returns: List of table names Raises: DatabaseError: If operatio
chatbi/database/drivers/base.py:148
Methodget_tables_with_schema
Get all tables in a specific schema.
chatbi/domain/datasource/models.py:207
Methodget_val
(key, default=None)
chatbi/database/drivers/postgres_adapter.py:42
FunctionhandleCancel
()
web/src/pages/DataSource/components/SaveQueryModal.tsx:35
FunctionhandleClear
()
web/src/pages/DataSource/components/CodeEditor.tsx:55
FunctionhandleColumnClick
(tableName: string, columnName: string)
web/src/pages/DataSource/Query.tsx:136
FunctionhandleConfirm
()
web/src/components/Chat/ClarificationWidget.tsx:25
FunctionhandleCopyToClipboard
()
web/src/pages/DataSource/components/QueryResultTable.tsx:263
FunctionhandleDatasourceChange
(value: string)
web/src/pages/Playground/index.tsx:226
FunctionhandleDownloadCSV
()
web/src/pages/DataSource/components/QueryResultTable.tsx:254
FunctionhandleEditorChange
(value: string | undefined)
web/src/pages/DataSource/components/CodeEditor.tsx:36
FunctionhandleEditorDidMount
(editor, monaco)
web/src/pages/DataSource/components/CodeEditor.tsx:59
FunctionhandleExecuteQuery
()
web/src/pages/DataSource/Query.tsx:170
FunctionhandleExpand
(newExpandedKeys: string[])
web/src/pages/DataSource/components/SchemaExplorer.tsx:231
FunctionhandleFileChange
(info: UploadChangeParam<UploadFile<File>>)
web/src/components/CsvReader/CsvReader.tsx:12
FunctionhandleFileChange
(info)
web/src/pages/Playground/index.tsx:283
FunctionhandleFormat
()
web/src/pages/DataSource/components/CodeEditor.tsx:40
FunctionhandleJSONDownload
()
web/src/pages/DataSource/components/QueryResultTable.tsx:279
FunctionhandleOk
()
web/src/pages/DataSource/components/SaveQueryModal.tsx:20
FunctionhandleSaveQuery
(name: string, description: string)
web/src/pages/DataSource/Query.tsx:147
FunctionhandleSearch
(e: React.ChangeEvent<HTMLInputElement>)
web/src/pages/DataSource/components/SchemaExplorer.tsx:207
FunctionhandleSubmit
(values: any)
web/src/pages/DataSource/components/DataSourceForm.tsx:83
FunctionhandleTableClick
(tableName: string)
web/src/pages/DataSource/Query.tsx:132
FunctionhandleTestConnection
()
web/src/pages/DataSource/components/DataSourceForm.tsx:52
FunctionhandleTypeChange
(value: string)
web/src/pages/DataSource/components/DataSourceForm.tsx:47
Methodhas
Check if a key exists in the cache, respecting TTL
chatbi/cache/memory.py:35
Methodhas
Check if a key exists in Redis
chatbi/cache/redis.py:170
Methodhas
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
Functionhealth_check
Health check endpoint for monitoring. Checks the status of the database and returns health information.
chatbi/main.py:105
Functionhealth_check
Health check endpoint Returns: Health status of Ask service
chatbi/domain/ask/router.py:136
Functionhealth_check
Health check endpoint Returns: Simple health status
chatbi/routers/metrics.py:40
Methodhealth_check
Check Qdrant health
chatbi/database/qdrant.py:201
Functionhttp_exception_handler
Handle Starlette HTTP exceptions.
chatbi/middleware/error_handler.py:307
Methodindex_question
Index a question into history Args: question_id: Unique question ID project_id: Project ID quest
chatbi/pipelines/retrieval/history_retrieval.py:37
Methodinit_ChatSession
Initialize a new chat session using the repository. Args: dto: Chat data transfer object Returns: N
chatbi/domain/chat/service.py:205
Functioninit_conversation
Initialize a new conversation. Args: request: FastAPI request object dto: Chat data db: Database session from depend
chatbi/domain/chat/router.py:175
Functioninner_decorator
(func)
chatbi/utils.py:55
Methodis_connected
Check if the adapter has an active connection.
chatbi/database/drivers/mysql_adapter.py:36
Methodis_connected
Check if the adapter has an active connection.
chatbi/database/drivers/postgres_adapter.py:36
Functionlayout
()
web/src/app.tsx:15
Functionlist_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
Functionlist_models
List models in a project
chatbi/domain/mdl/router.py:142
Functionlist_projects
List MDL projects
chatbi/domain/mdl/router.py:66
Functionlogin
用户登录接口 **请求参数**: - username: 用户名 - password: 密码 **返回**: - access_token: 访问令牌(有效期 30 分钟) - refresh_token: 刷新令牌(有效期 7 天)
chatbi/domain/auth/router.py:42
Functionlogout
用户登出接口(清除 Refresh Token) **请求头**: - Authorization: Bearer <refresh_token>
chatbi/domain/auth/router.py:99
Functionmain
()
chatbi/examples/duckdb.py:25
Functionmake_cache_key
Generate a cache key for a request with additional parameters.
chatbi/middleware/cache.py:383
Methodmap_fields
(cls, data: Any)
chatbi/domain/datasource/dtos.py:528
Methodmap_schema_name
(cls, data: Any)
chatbi/domain/datasource/dtos.py:596
Methodmodel
(self)
chatbi/agent/llm/__init__.py:21
FunctionmodifyUser
( params: { // path /** userId */ userId?: string; }, body?: API.UserInfoVO, options?: { [
web/src/services/demo/UserController.ts:60
FunctiononPromptsItemClick
(info)
web/src/models/chat.tsx:403
FunctiononResponse
({ response })
web/src/services/client.ts:22
FunctionqueryUserList
( params: { // query /** keyword */ keyword?: string; /** current */ current?: number;
web/src/services/demo/UserController.ts:6
Functionrate_limit
Decorator for applying custom rate limits to specific endpoints. Usage: ```python @router.post("/api/v1/expensive-operation")
chatbi/dependencies.py:480
Methodrecord_cache_hit
Record cache hit. Args: cache_type: Type of cache (mdl, query, etc.)
chatbi/observability/metrics.py:266
Methodrecord_cache_miss
Record cache miss. Args: cache_type: Type of cache
chatbi/observability/metrics.py:274
Functionrefresh_token
刷新访问令牌接口 **请求参数**: - refresh_token: 刷新令牌 **返回**: - access_token: 新的访问令牌 - refresh_token: 新的刷新令牌
chatbi/domain/auth/router.py:73
Functionregister_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
Functionregister_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
FunctionrenderAva
(message: Chat.IChatMessage)
web/src/models/chat.tsx:80
FunctionrenderInsight
(message: Chat.IChatMessage)
web/src/models/chat.tsx:33
← previousnext →601–700 of 811, ranked by callers