MCPcopy Create free account

hub / github.com/chatbi/chatbi / functions

Functions811 in github.com/chatbi/chatbi

Method__init__
( self, datasource_id: str, name: str, type: str, connection_info: dic
chatbi/domain/datasource/entities.py:132
Method__init__
Initialize with required repository dependency injection. Args: repo: Repository instance for database operations
chatbi/domain/datasource/service.py:47
Method__init__
( self, role: MessageRole, content: str, timestamp: Optional[datetime] = None,
chatbi/domain/chat/models.py:31
Method__init__
( self, table_schema: Optional[str] = None, sql: Optional[str] = None, questio
chatbi/domain/chat/models.py:52
Method__init__
( self, id: str, title: Optional[str] = None, messages: Optional[list[Message]
chatbi/domain/chat/models.py:72
Method__init__
( self, session_id: str, user_id: str, title: Optional[str] = None, da
chatbi/domain/chat/entities.py:188
Method__init__
( self, message_id: str, session_id: str, role: str, content: str,
chatbi/domain/chat/entities.py:233
Method__init__
Initialize the chat service with repository and cache dependencies. Args: repo: Chat repository for database access (req
chatbi/domain/chat/service.py:131
Method__init__
(self, session: Session)
chatbi/domain/mdl/repository.py:30
Method__init__
(self, session: AsyncSession)
chatbi/domain/mdl/repository.py:125
Method__init__
(self, session: Session)
chatbi/domain/mdl/repository.py:224
Method__init__
(self, session: AsyncSession)
chatbi/domain/mdl/repository.py:309
Method__init__
( self, project_repo: AsyncMDLProjectRepository, model_repo: AsyncMDLModelRepository,
chatbi/domain/mdl/service.py:35
Method__init__
Initialize repository with database session. Args: db: SQLAlchemy session (sync or async)
chatbi/domain/common/repository.py:32
Method__init__
Initialize repository with async database session. Args: db: AsyncSession
chatbi/domain/common/repository.py:406
Method__init__
( self, session_id: str, user_id: str, project_id: str, messages: List
chatbi/pipelines/ask/session_manager.py:23
Method__init__
Initialize Session Context Manager Args: timeout_minutes: Session timeout in minutes
chatbi/pipelines/ask/session_manager.py:85
Method__init__
Initialize Ask Pipeline Args: llm: LLM provider for agents qdrant_manager: Qdrant manager for MDL retrieval
chatbi/pipelines/ask/ask_pipeline.py:35
Method__init__
( self, qdrant_manager: AsyncQdrantManager, llm_provider: BaseLLM, collection_
chatbi/pipelines/retrieval/mdl_retrieval.py:31
Method__init__
Initialize Historical Question Retrieval Args: qdrant_manager: Qdrant manager instance llm: LLM provider for
chatbi/pipelines/retrieval/history_retrieval.py:24
Method__init__
( self, sql_agent: SqlAgent, correction_repo: CorrectionLogRepository, execute
chatbi/pipelines/execution/execution_pipeline.py:14
Method__init__
(self, llm_provider, observer=None)
chatbi/agent/answer_agent.py:24
Method__init__
(self, name: str, llm_provider=None, observer: Optional[LangfuseObserver] = None)
chatbi/agent/agent_base.py:8
Method__init__
(self, name="ChartAgent")
chatbi/agent/visualize_agent.py:34
Method__init__
(self, name="SqlAgent")
chatbi/agent/sql_agent.py:31
Method__init__
(self, name="SchemaAgent")
chatbi/agent/schema_agent.py:33
Method__init__
( self, name: Optional[str] = None, agent_name: Optional[str] = None, id: Opti
chatbi/agent/agent_message.py:4
Method__init__
(self, llm_provider, observer=None)
chatbi/agent/reasoning_agent.py:26
Method__init__
(self, name="DiagnosisAgent")
chatbi/agent/diagnosis_agent.py:11
Method__init__
(self, llm_provider=None, observer=None)
chatbi/agent/intent_agent.py:32
Method__init__
(self, llm_provider)
chatbi/agent/chart_agent.py:29
Method__init__
(self)
chatbi/agent/llm/openai.py:24
Method__init__
Args: py_type: The schema type to validate against.
chatbi/agent/validator/type_validator.py:22
Method__repr__
(self)
chatbi/domain/datasource/entities.py:68
Method__repr__
(self)
chatbi/domain/datasource/entities.py:120
Method__repr__
(self)
chatbi/domain/chat/entities.py:46
Method__repr__
(self)
chatbi/domain/chat/entities.py:90
Method__repr__
(self)
chatbi/domain/chat/entities.py:126
Method__repr__
(self)
chatbi/domain/chat/entities.py:144
Method__repr__
(self)
chatbi/domain/chat/entities.py:173
Method__str__
(self)
chatbi/exceptions.py:28
Method__str__
(self)
chatbi/agent/agent_message.py:44
Method_execute
()
chatbi/database/database.py:522
Method_execute_script
()
chatbi/database/database.py:548
Method_generate_simple_answer
Generate simple natural language answer (placeholder for M4) TODO: Replace with AnswerSummarizationAgent in M4
chatbi/pipelines/ask/ask_pipeline.py:259
Function_with_redis_error_handling
Decorator to handle Redis connection errors
chatbi/cache/redis.py:15
FunctionaddUser
( body?: API.UserInfoVO, options?: { [key: string]: any }, )
web/src/services/demo/UserController.ts:28
Methodadd_chat_message
Add a new chat message asynchronously. Args: message_data: Dictionary containing message attributes Returns:
chatbi/domain/chat/repository.py:363
Functionadd_hateoas_links
Add HATEOAS links to a response dictionary. Args: response_data: Response data dictionary to add links to resource_type: Typ
chatbi/middleware/standard_response.py:210
Methodadd_message_to_session
Add message to session
chatbi/pipelines/ask/session_manager.py:133
Functionadd_pagination_headers
Add pagination headers to a response. Args: response: The response to add headers to request: The original request t
chatbi/middleware/standard_response.py:133
Functionanalyze
( question: string, datasourceId?: string, visualize = true, )
web/src/services/chat/ChatService.ts:4
Functionanalyze
Analyze a chat request and generate insights. Args: request: FastAPI request object dto: Chat data repo: Repository
chatbi/domain/chat/router.py:208
Functionanyio_backend
()
tests/verify_scenario_sales.py:16
Functionanyio_backend
()
tests/verify_ambiguity_threshold.py:13
Functionanyio_backend
()
tests/verify_intelligence_flow.py:18
Functionanyio_backend
()
tests/verify_deep_intelligence.py:15
Functionanyio_backend
()
tests/test_sql_correction.py:9
Functionapi_error_handler
Handle all API errors with standardized format.
chatbi/middleware/error_handler.py:265
Functionask_question
Ask a question with streaming response Args: request: Question request with project_id, question, etc. qdrant: Qdrant manage
chatbi/domain/ask/router.py:58
Functionasync_wrapper
Wrapper for asynchronous functions.
chatbi/dependencies.py:158
Functioncached_response
Decorator for endpoint functions to cache their responses. Example usage: @router.get("/example") @cached_response(ttl_seconds=60)
chatbi/middleware/cache.py:194
Functionchat_service
()
tests/verify_intelligence_flow.py:22
Functioncheck_rate_limit
Check if the user has exceeded their rate limit. This is a secondary check beyond the middleware rate limit. It enforces user-specific l
chatbi/dependencies.py:377
Methodclassify_sync
Synchronous intent classification (for compatibility)
chatbi/agent/intent_agent.py:124
Functioncleanup_datasource_connections
Clean up all datasource connections. Should be called during application shutdown.
chatbi/database/datasource.py:114
Functioncleanup_expired_adapters
Clean up expired adapter connections. Returns: Number of connections closed
chatbi/database/drivers/factory.py:360
Methodcleanup_expired_sessions
Remove expired sessions
chatbi/pipelines/ask/session_manager.py:168
Methodclear
Clear all cache entries
chatbi/cache/memory.py:75
Methodclear
Clear all cache entries - use with caution!
chatbi/cache/redis.py:201
FunctionclearMessages
()
web/src/models/chat.tsx:397
Methodclient
Get or create Qdrant client
chatbi/database/qdrant.py:43
Methodclient
Get or create async Qdrant client
chatbi/database/qdrant.py:182
Methodclose
Close Qdrant connection
chatbi/database/qdrant.py:194
Methodclose_all_connections
Close all SQLite connections in the pool (static method).
chatbi/database/drivers/sqlite_adapter.py:308
Functionclose_qdrant_connections
Close all Qdrant connections
chatbi/database/qdrant.py:337
Functioncode
({ className, children, ref, ...props })
web/src/components/MarkdownView/MarkdownView.tsx:22
Functioncompletions
(body: CreateCompletionsDTO)
chatbi/domain/llm/router.py:35
Functionconfig
()
chatbi/main.py:134
Methodconnection
Get a raw asyncpg connection with automatic resource management. Yields: asyncpg.Connection: Direct asyncpg connection
chatbi/database/database.py:485
Methodconnection_url
Get the database connection URL.
chatbi/config.py:76
Methodcount
Count total number of entities asynchronously. Returns: Total count
chatbi/domain/common/repository.py:470
Methodcount_sync
Count total number of entities synchronously. Returns: Total count
chatbi/domain/common/repository.py:315
Methodcreate
创建用户
chatbi/domain/auth/repository.py:76
Methodcreate
创建会话
chatbi/domain/auth/repository.py:133
Methodcreate
创建会话
chatbi/domain/auth/repository.py:177
Methodcreate
Create a new project
chatbi/domain/mdl/repository.py:82
Methodcreate
Create a new project
chatbi/domain/mdl/repository.py:181
Methodcreate
Create a new model
chatbi/domain/mdl/repository.py:334
Methodcreate
Create new entity asynchronously. Args: entity: Entity to create Returns: Created entity with ID po
chatbi/domain/common/repository.py:482
Methodcreate_chat_session
Create a new chat session asynchronously. Args: session_data: Dictionary containing session attributes Returns:
chatbi/domain/chat/repository.py:343
Methodcreate_collection_if_not_exists
Create collection if it doesn't exist
chatbi/database/qdrant.py:210
Functioncreate_datasource
Create a new datasource with connection information. Args: data: Datasource creation data db: Database session Returns:
chatbi/domain/datasource/router.py:57
Methodcreate_datasource
Create a new datasource. Args: datasource_data: Datasource data dictionary Returns: New datasource
chatbi/domain/datasource/repository.py:203
Functioncreate_model
Create a new MDL model
chatbi/domain/mdl/router.py:156
Functioncreate_project
Create a new MDL project
chatbi/domain/mdl/router.py:87
Methodcreate_sync
Create new entity synchronously. Args: entity: Entity to create Returns: Created entity with ID pop
chatbi/domain/common/repository.py:326
Functioncreate_user
创建用户(仅管理员) **需要鉴权**: 是(管理员) **请求参数**: - username: 用户名 - email: 邮箱 - password: 密码 - is_admin: 是否管理员(默认 false)
chatbi/domain/auth/router.py:159
Functiondata_generate
(rows: int = 10000000, output: str = "benchmark.parquet")
chatbi/generate.py:13
Functiondecorated
(*args, **kwargs)
chatbi/domain/chat/service.py:78
← previousnext →401–500 of 811, ranked by callers