MCPcopy Create free account

hub / github.com/chatbi/chatbi / functions

Functions811 in github.com/chatbi/chatbi

↓ 1 callersFunctionfetchDatasource
()
web/src/pages/DataSource/Query.tsx:99
↓ 1 callersFunctionfetchSchema
()
web/src/pages/DataSource/Query.tsx:122
↓ 1 callersFunctiongenerateSql
( message: Chat.IChatMessage, onSuccess: (msg: Chat.IChatMessage) => void, )
web/src/models/chat.tsx:174
↓ 1 callersFunctiongenerateTreeData
()
web/src/pages/DataSource/components/SchemaExplorer.tsx:54
↓ 1 callersMethodgenerate_visualize
Generate visualization configuration for query results. Args: request: FastAPI request object id: ChatSessio
chatbi/domain/chat/service.py:881
↓ 1 callersMethodget
Get a value from the cache, respecting TTL
chatbi/cache/memory.py:26
↓ 1 callersFunctiongetAdvise
()
web/src/components/AvaAdvisor/AvaAdvisor.tsx:19
↓ 1 callersFunctiongetBaseUrl
()
web/src/services/client.ts:8
↓ 1 callersFunctiongetColumnIcon
(columnName: string)
web/src/pages/DataSource/components/QueryResultTable.tsx:97
↓ 1 callersFunctiongetDatabaseSchema
* Get schema metadata for a datasource * @param id - Datasource ID * @returns Database schema information
web/src/services/datasource.ts:211
↓ 1 callersFunctiongetInsight
()
web/src/components/AvaAdvisor/AvaInsight.tsx:17
↓ 1 callersMethodget_ChatSession
Get a chat session by ID using the repository. Args: id: Chat session ID Returns: The chat session
chatbi/domain/chat/service.py:185
↓ 1 callersMethodget_all
Get all datasources with filtering and pagination. Args: skip: Number of records to skip limit: Maximum numb
chatbi/domain/datasource/repository.py:27
↓ 1 callersMethodget_all
Get all projects with pagination
chatbi/domain/mdl/repository.py:69
↓ 1 callersFunctionget_async_qdrant_manager
Get global async Qdrant manager instance
chatbi/database/qdrant.py:323
↓ 1 callersMethodget_by_datasource
Get all projects for a datasource
chatbi/domain/mdl/repository.py:45
↓ 1 callersMethodget_by_name
Get a datasource by name. Args: name: Name of the datasource Returns: Datasource if found, None oth
chatbi/domain/datasource/repository.py:106
↓ 1 callersMethodget_by_owner
Get all projects for an owner
chatbi/domain/mdl/repository.py:57
↓ 1 callersMethodget_by_project
Get all models for a project
chatbi/domain/mdl/repository.py:237
↓ 1 callersMethodget_by_token
根据 Refresh Token 获取会话
chatbi/domain/auth/repository.py:140
↓ 1 callersFunctionget_cache
Get a cache instance of the specified type. This factory function returns a singleton instance of the requested cache type. Args:
chatbi/cache/__init__.py:26
↓ 1 callersMethodget_cache
Get a test value from the cache. Args: requiest: FastAPI request object id: Cache identifier tes
chatbi/domain/chat/service.py:170
↓ 1 callersMethodget_cache_key
Generate a unique cache key for the request based on path and relevant query params. Excludes certain transient query parameters lik
chatbi/middleware/cache.py:73
↓ 1 callersFunctionget_chart_prompt
Example: TODO: Add example This method is used to generate a prompt for the LLM to generate chart spec Args: initial_prompt (st
chatbi/agent/prompts/chart_prompt.py:1
↓ 1 callersMethodget_chart_scheme
(self)
chatbi/agent/visualize_agent.py:40
↓ 1 callersMethodget_connection
Get a database connection from the pool with intelligent reuse. Args: db_type: Type of database connection_i
chatbi/database/drivers/factory.py:62
↓ 1 callersMethodget_context
Get context summary for session Args: session_id: Session ID max_messages: Max messages to include
chatbi/pipelines/ask/session_manager.py:151
↓ 1 callersMethodget_context_summary
Get context summary for LLM
chatbi/pipelines/ask/session_manager.py:58
↓ 1 callersFunctionget_correction_prompt
Generate prompt for SQL correction. Args: question: The original question. wrong_sql: The failed SQL query. error_me
chatbi/agent/prompts/sql_prompt.py:89
↓ 1 callersMethodget_current_user
从 Access Token 获取当前用户
chatbi/domain/auth/service.py:97
↓ 1 callersMethodget_datasource_by_id
Get a datasource by ID with optimized query. Args: db: Database session datasource_id: ID of the datasource
chatbi/domain/datasource/service.py:280
↓ 1 callersMethodget_datasources
Get all datasources with efficient filtering and pagination. Uses repository pattern for improved database access. Args:
chatbi/domain/datasource/service.py:293
↓ 1 callersFunctionget_db
Get synchronous PostgreSQL database instance. Returns: PostgresDB instance
chatbi/database/database.py:748
↓ 1 callersFunctionget_db_session
Get a SQLAlchemy database session for sync operations. Yields: SQLAlchemy Session
chatbi/database/database.py:768
↓ 1 callersMethodget_metrics
Get current rate limiter metrics
chatbi/middleware/rate_limiter.py:313
↓ 1 callersFunctionget_metrics_collector
Get global metrics collector instance. Returns: Singleton MetricsCollector
chatbi/observability/metrics.py:469
↓ 1 callersMethodget_model
Get model by ID
chatbi/domain/mdl/service.py:165
↓ 1 callersFunctionget_pooled_connection
Get a database connection from the pool with proper resource management. This context manager handles getting and returning connections to t
chatbi/database/drivers/factory.py:327
↓ 1 callersMethodget_project
Get project by ID
chatbi/domain/mdl/service.py:45
↓ 1 callersFunctionget_qdrant_manager
Get global Qdrant manager instance
chatbi/database/qdrant.py:309
↓ 1 callersFunctionget_repair_prompt
( validation_error: str, **kwargs, )
chatbi/agent/prompts/chart_prompt.py:94
↓ 1 callersFunctionget_session_manager
Get or create global session manager
chatbi/pipelines/ask/session_manager.py:192
↓ 1 callersFunctionget_sql_prompt
Example: ```python get_sql_prompt( question="What are the top 10 customers by sales?", few_shots=[{"question": "What are the
chatbi/agent/prompts/sql_prompt.py:1
↓ 1 callersMethodget_stats
Get statistics about the connection pool.
chatbi/database/drivers/factory.py:249
↓ 1 callersMethodget_tables
Get list of tables in the database with improved error handling. Returns: List of table names Raises:
chatbi/database/drivers/sqlite_adapter.py:321
↓ 1 callersFunctionhandleDelete
(id: string)
web/src/pages/DataSource/index.tsx:50
↓ 1 callersFunctionhandleDeleteSavedQuery
(queryId: number)
web/src/pages/DataSource/Query.tsx:165
↓ 1 callersFunctionhandleEdit
(id: string)
web/src/pages/DataSource/index.tsx:68
↓ 1 callersFunctionhandleSubmit
(nextContent: string)
web/src/pages/Playground/index.tsx:260
↓ 1 callersMethodhealth_check
Check Qdrant health
chatbi/database/qdrant.py:62
↓ 1 callersFunctioninit_data
()
chatbi/examples/duckdb.py:48
↓ 1 callersFunctioninit_data
()
chatbi/examples/postgres.py:58
↓ 1 callersFunctioninit_database
Initialize database connections and verify functionality. This function should be called during application startup. Returns: b
chatbi/database/database.py:655
↓ 1 callersFunctioninit_default_datasource
Initialize the default PostgreSQL datasource from Docker configuration. Creates a datasource pointing to the Docker PostgreSQL instance
chatbi/domain/datasource/init_default.py:23
↓ 1 callersMethodis_expired
检查 Token 是否过期
chatbi/domain/auth/models.py:47
↓ 1 callersFunctionis_generated
(p: str)
chatbi/generate.py:8
↓ 1 callersMethodlist_models
List models for a project
chatbi/domain/mdl/service.py:194
↓ 1 callersMethodlist_projects
List projects with optional filters
chatbi/domain/mdl/service.py:63
↓ 1 callersFunctionloadDatasources
()
web/src/pages/Playground/index.tsx:195
↓ 1 callersMethodlogger_diagnose
Configure logger with diagnostics enabled for debugging.
chatbi/config.py:254
↓ 1 callersMethodlogin
用户登录
chatbi/domain/auth/service.py:35
↓ 1 callersMethodlogout
登出(删除 Refresh Token)
chatbi/domain/auth/service.py:93
↓ 1 callersFunctionmain
Main entry point.
chatbi/migrations/manage_migrations.py:183
↓ 1 callersFunctionmain
()
chatbi/examples/postgres.py:36
↓ 1 callersMethodmask_connection_info
Mask sensitive information in connection_info for API responses. Args: connection_info: Original connection info
chatbi/domain/datasource/service.py:666
↓ 1 callersFunctiononScroll
()
web/src/pages/Playground/index.tsx:249
↓ 1 callersFunctionrefreshTable
()
web/src/pages/DataSource/index.tsx:44
↓ 1 callersMethodrefresh_token
刷新 Access Token
chatbi/domain/auth/service.py:55
↓ 1 callersMethodrelease_connection
Release a connection back to the pool. Args: conn_id: Connection ID to release
chatbi/database/drivers/factory.py:166
↓ 1 callersFunctionrenderChart
()
web/src/pages/DataSource/components/QueryVisualization.tsx:173
↓ 1 callersFunctionrenderConnectionFields
()
web/src/pages/DataSource/components/DataSourceForm.tsx:102
↓ 1 callersFunctionreset_database
Reset the database by dropping and recreating it.
chatbi/migrations/manage_migrations.py:126
↓ 1 callersMethodretrieve
Retrieve similar historical questions Args: question: Current user question project_id: Project ID
chatbi/pipelines/retrieval/history_retrieval.py:94
↓ 1 callersFunctionrunEslint
()
web/scripts/api-init.ts:10
↓ 1 callersFunctionrun_migrations_offline
Run migrations in 'offline' mode. This configures the context with just a URL and not an Engine, though an Engine is acceptable here
chatbi/migrations/env.py:52
↓ 1 callersFunctionrun_migrations_online
Run migrations in 'online' mode. In this scenario we need to create an Engine and associate a connection with the context.
chatbi/migrations/env.py:78
↓ 1 callersMethodrun_streaming
Generate reasoning plan with streaming output Args: question: User's natural language question mdl_context:
chatbi/agent/reasoning_agent.py:158
↓ 1 callersMethodset
Set a value in Redis with optional TTL
chatbi/cache/redis.py:148
↓ 1 callersMethodset_cache
Set a test value in the cache. Args: id: Cache identifier value: Value to store Returns:
chatbi/domain/chat/service.py:155
↓ 1 callersFunctiontestConnection
* Test connection to a datasource * @param data - Connection details to test * @returns Connection status
web/src/services/datasource.ts:146
↓ 1 callersFunctiontest_ambiguity_parsing_robustness
Test that IntentAgent correctly parses various formats of 'options' returned by the LLM (dspy module)
tests/verify_deep_intelligence.py:20
↓ 1 callersFunctiontest_concrete_business_questions_not_ambiguous
Test that concrete business questions are NOT marked as ambiguous.
tests/verify_ambiguity_threshold.py:17
↓ 1 callersFunctiontest_sales_scenario_e2e_logic
()
tests/verify_scenario_sales.py:20
↓ 1 callersFunctiontest_vague_questions_are_ambiguous
Test that truly vague questions ARE marked as ambiguous.
tests/verify_ambiguity_threshold.py:62
↓ 1 callersMethodto_dict
(self)
chatbi/agent/agent_message.py:32
↓ 1 callersMethodtrace_llm_call
Context manager for tracing a single LLM call. Args: name: Name of the LLM call (e.g., "QueryReasoningAgent")
chatbi/observability/langfuse_observer.py:68
↓ 1 callersMethodtrace_llm_streaming
Trace a streaming LLM call. Args: name: Name of the LLM call model: Model name prompt: Input prom
chatbi/observability/langfuse_observer.py:168
↓ 1 callersMethodtransaction
Context manager for transaction handling. Usage: async with adapter.transaction(): await adapter.execute
chatbi/database/drivers/base.py:135
↓ 1 callersMethodupdate
Update configuration settings.
chatbi/config.py:267
↓ 1 callersFunctionupdateDatasource
* Update an existing datasource * @param id - Datasource ID * @param data - Datasource update data * @returns Updated datasource
web/src/services/datasource.ts:102
↓ 1 callersFunctionupdateMessages
()
web/src/models/chat.tsx:329
↓ 1 callersMethodupdate_datasource
Update an existing datasource with optimized connection validation. Args: db: Database session datasource_id
chatbi/domain/datasource/service.py:118
↓ 1 callersMethodupdate_model
Update an MDL model
chatbi/domain/mdl/service.py:281
↓ 1 callersMethodupdate_project
Update an MDL project
chatbi/domain/mdl/service.py:125
↓ 1 callersMethodupdate_user
更新用户(仅管理员或本人)
chatbi/domain/auth/service.py:139
↓ 1 callersMethodupsert_points
Insert or update points in collection
chatbi/database/qdrant.py:96
↓ 1 callersFunctionuseChat
()
web/src/models/chat.tsx:110
↓ 1 callersMethodvalidate_object
Validates the given Python object according to the associated schema type. Returns a `Success[T]` object containing the object if validation
chatbi/agent/validator/type_validator.py:30
↓ 1 callersMethodverify_password
验证密码
chatbi/domain/auth/models.py:22
FunctionAvaAdvisor
({ data })
web/src/components/AvaAdvisor/AvaAdvisor.tsx:12
← previousnext →201–300 of 811, ranked by callers