Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chatbi/chatbi
/ types & classes
Types & classes
325 in github.com/chatbi/chatbi
⨍
Functions
811
◇
Types & classes
325
↳
Endpoints
45
↓ 70 callers
Class
DatabaseError
Exception raised for database-related errors
chatbi/exceptions/__init__.py:39
↓ 27 callers
Class
AgentMessage
chatbi/agent/agent_message.py:3
↓ 22 callers
Class
StandardResponse
Standardized response model for all API endpoints. This model provides a consistent structure for all API responses with: - A status fie
chatbi/middleware/standard_response.py:21
↓ 11 callers
Class
UnauthorizedError
Exception raised for authentication failures
chatbi/exceptions/__init__.py:96
↓ 10 callers
Class
ChatService
Service for chat functionality, including SQL generation, data querying, and visualization generation using the repository pattern.
chatbi/domain/chat/service.py:122
↓ 10 callers
Class
NotFoundError
Exception raised when a requested resource is not found
chatbi/exceptions/__init__.py:73
↓ 8 callers
Class
DatasourceService
Service for managing datasources with optimized database operations. Uses repository pattern, connection pooling, and standardized error
chatbi/domain/datasource/service.py:34
↓ 7 callers
Class
RepositoryDependency
Generic dependency provider for repository classes. Automatically handles injecting the appropriate session type based on current contex
chatbi/dependencies.py:56
↓ 6 callers
Class
DatabaseType
Enum for supported database types
chatbi/domain/datasource/dtos.py:22
↓ 5 callers
Class
IntentClassificationAgent
Agent for classifying user question intent and detecting ambiguity
chatbi/agent/intent_agent.py:29
↓ 4 callers
Class
MDLModelDetailDTO
Detailed response DTO with full columns and relationships
chatbi/domain/mdl/dtos.py:146
↓ 4 callers
Class
MDLProjectDetailDTO
Detailed response DTO with full models and metrics
chatbi/domain/mdl/dtos.py:78
↓ 4 callers
Class
MockPrediction
tests/verify_ambiguity_threshold.py:7
↓ 4 callers
Class
SQLExecutionPipeline
chatbi/pipelines/execution/execution_pipeline.py:13
↓ 4 callers
Class
ValidationError
Exception raised for data validation errors
chatbi/exceptions/__init__.py:56
↓ 3 callers
Class
AsyncPostgresDB
Asynchronous PostgreSQL database access with connection pooling. Provides high-performance non-blocking database operations.
chatbi/database/database.py:444
↓ 3 callers
Class
BadRequestError
Exception raised for invalid request data
chatbi/exceptions/__init__.py:164
↓ 3 callers
Class
ChatDTO
Data Transfer Object for chat requests.
chatbi/domain/chat/dtos.py:14
↓ 3 callers
Class
ChatMessage
Individual message within a chat session.
chatbi/domain/chat/entities.py:65
↓ 3 callers
Class
ChatSession
Chat session entity representing a conversation thread.
chatbi/domain/chat/entities.py:26
↓ 3 callers
Class
DuckDbConnectionInfo
Connection info for DuckDB datasource.
chatbi/domain/datasource/dtos.py:223
↓ 3 callers
Class
MemoryCache
In-memory cache implementation with TTL support. This implementation stores cache entries and their expiration times in memory. It's eff
chatbi/cache/memory.py:8
↓ 3 callers
Class
OpenaiModel
OpenAI-compatible LLM provider
chatbi/agent/llm/openai.py:19
↓ 3 callers
Class
PostgresConnectionInfo
Connection info for PostgreSQL datasource.
chatbi/domain/datasource/dtos.py:277
↓ 3 callers
Class
UnauthorizedError
Exception raised for authentication errors
chatbi/exceptions.py:62
↓ 3 callers
Class
UserDTO
用户信息响应
chatbi/domain/auth/dtos.py:26
↓ 2 callers
Class
AuthService
认证服务
chatbi/domain/auth/service.py:20
↓ 2 callers
Class
BigQueryConnectionInfo
Connection info for BigQuery datasource.
chatbi/domain/datasource/dtos.py:229
↓ 2 callers
Class
CacheResponse
Response model for cache operations.
chatbi/domain/chat/dtos.py:83
↓ 2 callers
Class
ChatHistory
History of chat interactions and operations for analytics and audit. This entity consolidates the functionality from the previous Conversati
chatbi/domain/chat/entities.py:150
↓ 2 callers
Class
ClickHouseConnectionInfo
Connection info for ClickHouse datasource.
chatbi/domain/datasource/dtos.py:237
↓ 2 callers
Class
ConversationResponse
Response model for conversation operations.
chatbi/domain/chat/dtos.py:120
↓ 2 callers
Class
Datasource
Database model for storing datasource connection information. Represents a data source configuration that users can connect to for queries.
chatbi/domain/datasource/entities.py:29
↓ 2 callers
Class
Failure
An object representing an operation that failed for the reason given in `message`.
chatbi/agent/validator/result.py:15
↓ 2 callers
Class
InsightSummary
Summary of the insight generated.
chatbi/domain/diagnosis/dtos.py:17
↓ 2 callers
Class
LangfuseObserver
Observer for tracking LLM calls with Langfuse. Features: - Automatic trace/generation creation for LLM calls - Token counting and cos
chatbi/observability/langfuse_observer.py:20
↓ 2 callers
Class
MDLModel
Represents a business entity in the semantic layer
chatbi/domain/mdl/models.py:72
↓ 2 callers
Class
MDLProject
Container for MDL models and metrics
chatbi/domain/mdl/models.py:122
↓ 2 callers
Class
MSSqlConnectionInfo
Connection info for Microsoft SQL Server datasource.
chatbi/domain/datasource/dtos.py:247
↓ 2 callers
Class
MockPrediction
tests/verify_deep_intelligence.py:8
↓ 2 callers
Class
MySqlConnectionInfo
Connection info for MySQL datasource.
chatbi/domain/datasource/dtos.py:261
↓ 2 callers
Class
PostgresDB
Synchronous PostgreSQL database access with connection pooling. Provides standardized methods for database access with proper connection
chatbi/database/database.py:218
↓ 2 callers
Class
ServiceUnavailableError
Exception raised when a required service is unavailable
chatbi/exceptions/__init__.py:146
↓ 2 callers
Class
SnowflakeConnectionInfo
Connection info for Snowflake datasource.
chatbi/domain/datasource/dtos.py:287
↓ 2 callers
Class
TokenResponse
Token 响应
chatbi/domain/auth/dtos.py:17
↓ 2 callers
Class
TrinoConnectionInfo
Connection info for Trino datasource.
chatbi/domain/datasource/dtos.py:299
↓ 1 callers
Class
APIConfig
API configuration settings.
chatbi/config.py:128
↓ 1 callers
Class
AgentTracker
Context manager for tracking agent executions
chatbi/observability/metrics.py:437
↓ 1 callers
Class
AnswerSummarizationAgent
Agent for generating natural language answers
chatbi/agent/answer_agent.py:21
↓ 1 callers
Class
AskPipeline
Complete question answering pipeline
chatbi/pipelines/ask/ask_pipeline.py:32
↓ 1 callers
Class
AsyncQdrantManager
Qdrant connection manager (asynchronous)
chatbi/database/qdrant.py:165
↓ 1 callers
Class
AsyncUserRepository
用户仓储(异步)
chatbi/domain/auth/repository.py:70
↓ 1 callers
Class
AsyncUserSessionRepository
用户会话仓储(异步)
chatbi/domain/auth/repository.py:171
↓ 1 callers
Class
CacheConfig
Cache configuration settings.
chatbi/config.py:82
↓ 1 callers
Class
ChartGenerationAgent
Agent for generating chart configurations
chatbi/agent/chart_agent.py:26
↓ 1 callers
Class
ChatMessageEntity
Domain entity representing a chat message. This is a pure domain entity that's not tied to the ORM, but can be converted to and from the
chatbi/domain/chat/entities.py:225
↓ 1 callers
Class
ChatRepository
Repository for chat operations using synchronous database access. Provides methods for managing chat sessions, messages, history and statist
chatbi/domain/chat/repository.py:23
↓ 1 callers
Class
ChatSessionEntity
Domain entity representing a chat session. This is a pure domain entity that's not tied to the ORM, but can be converted to and from the
chatbi/domain/chat/entities.py:180
↓ 1 callers
Class
CommonResponse
Common response format for chat operations.
chatbi/domain/chat/dtos.py:70
↓ 1 callers
Class
Config
Application configuration class.
chatbi/config.py:190
↓ 1 callers
Class
ConnectionManager
Enhanced connection manager for database connections. This class provides a centralized interface for database connections with advanced
chatbi/database/connection_manager.py:70
↓ 1 callers
Class
ConnectionUrl
Generic connection URL.
chatbi/domain/datasource/dtos.py:271
↓ 1 callers
Class
ConversationContext
Represents the context maintained for a conversation. This includes things like the current schema, generated SQL, and other state that
chatbi/domain/chat/models.py:44
↓ 1 callers
Class
CorrectionLog
ORM entity for Correction Log.
chatbi/domain/diagnosis/entities.py:27
↓ 1 callers
Class
CorrectionLogRepository
Repository for accessing correction logs.
chatbi/domain/diagnosis/repository.py:31
↓ 1 callers
Class
DataSourceEntity
Domain entity representing a data source configuration. This is a pure domain entity that's not tied to the ORM, but can be converted to
chatbi/domain/datasource/entities.py:124
↓ 1 callers
Class
DataSourceListResponse
Response model for listing datasources with pagination information
chatbi/domain/datasource/dtos.py:187
↓ 1 callers
Class
DataSourceResponse
Response model for datasource information
chatbi/domain/datasource/dtos.py:155
↓ 1 callers
Class
DataSourceTestResponse
Response model for connection test results
chatbi/domain/datasource/dtos.py:374
↓ 1 callers
Class
DatabaseConfig
Database connection configuration.
chatbi/config.py:54
↓ 1 callers
Class
DatasourceRepository
Repository for datasource operations.
chatbi/domain/datasource/repository.py:22
↓ 1 callers
Class
DiagnosisAgent
chatbi/agent/diagnosis_agent.py:10
↓ 1 callers
Class
DiagnosisRepository
Repository for accessing diagnosis results.
chatbi/domain/diagnosis/repository.py:10
↓ 1 callers
Class
DiagnosisResult
ORM entity for Diagnosis Result.
chatbi/domain/diagnosis/entities.py:7
↓ 1 callers
Class
EnhancedRateLimiter
Enhanced rate limiter with per-user limits and Redis support. Rate Limit Tiers: - Anonymous users: 10 requests/minute, 100 requests/hour
chatbi/middleware/enhanced_rate_limiter.py:33
↓ 1 callers
Class
HistoricalQuestionRetrieval
Pipeline for retrieving similar historical questions
chatbi/pipelines/retrieval/history_retrieval.py:21
↓ 1 callers
Class
JWTConfig
JWT authentication configuration.
chatbi/config.py:109
↓ 1 callers
Class
LLMCallTracker
Context manager for tracking LLM calls
chatbi/observability/metrics.py:388
↓ 1 callers
Class
LLMConfig
LLM service configuration.
chatbi/config.py:93
↓ 1 callers
Class
LLMService
chatbi/domain/llm/service.py:10
↓ 1 callers
Class
LangfuseConfig
Langfuse observability configuration.
chatbi/config.py:166
↓ 1 callers
Class
LogConfig
Logging configuration settings.
chatbi/config.py:40
↓ 1 callers
Class
MDLColumn
Represents a column in an MDL model
chatbi/domain/mdl/models.py:17
↓ 1 callers
Class
MDLMetric
Represents a predefined metric (KPI)
chatbi/domain/mdl/models.py:100
↓ 1 callers
Class
MDLRelationship
Represents a relationship between two MDL models
chatbi/domain/mdl/models.py:48
↓ 1 callers
Class
MDLRetrievalPipeline
Pipeline for retrieving MDL context from Qdrant
chatbi/pipelines/retrieval/mdl_retrieval.py:28
↓ 1 callers
Class
MDLService
MDL domain service
chatbi/domain/mdl/service.py:32
↓ 1 callers
Class
MDLSyncResponseDTO
Response DTO for MDL sync operation
chatbi/domain/mdl/dtos.py:182
↓ 1 callers
Class
MetricsCollector
Centralized metrics collection for GenBI pipeline. Usage: ```python collector = MetricsCollector() # Record
chatbi/observability/metrics.py:192
↓ 1 callers
Class
PipelineStepTracker
Context manager for tracking pipeline steps
chatbi/observability/metrics.py:353
↓ 1 callers
Class
QdrantConfig
Qdrant vector database configuration.
chatbi/config.py:147
↓ 1 callers
Class
QdrantManager
Qdrant connection manager (synchronous)
chatbi/database/qdrant.py:26
↓ 1 callers
Class
QueryHistory
Database model for storing query execution history. Keeps track of queries executed against datasources.
chatbi/domain/datasource/entities.py:93
↓ 1 callers
Class
QueryReasoningAgent
Agent for generating query reasoning plans
chatbi/agent/reasoning_agent.py:23
↓ 1 callers
Class
QueryResult
Type definition for query execution results.
chatbi/database/drivers/base.py:19
↓ 1 callers
Class
RedisCache
Redis-based cache implementation with TTL support. This implementation stores cache entries in Redis, making it suitable for distributed
chatbi/cache/redis.py:34
↓ 1 callers
Class
RequestTracker
Context manager for tracking requests
chatbi/observability/metrics.py:313
↓ 1 callers
Class
RunSqlData
Result model for SQL execution, used internally.
chatbi/domain/chat/dtos.py:48
↓ 1 callers
Class
SQLiteAdapter
SQLite database adapter implementation with enhanced connection pooling.
chatbi/database/drivers/sqlite_adapter.py:23
↓ 1 callers
Class
SchemaAgent
chatbi/agent/schema_agent.py:32
next →
1–100 of 325, ranked by callers