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
↓ 1 callers
Function
fetchDatasource
()
web/src/pages/DataSource/Query.tsx:99
↓ 1 callers
Function
fetchSchema
()
web/src/pages/DataSource/Query.tsx:122
↓ 1 callers
Function
generateSql
( message: Chat.IChatMessage, onSuccess: (msg: Chat.IChatMessage) => void, )
web/src/models/chat.tsx:174
↓ 1 callers
Function
generateTreeData
()
web/src/pages/DataSource/components/SchemaExplorer.tsx:54
↓ 1 callers
Method
generate_visualize
Generate visualization configuration for query results. Args: request: FastAPI request object id: ChatSessio
chatbi/domain/chat/service.py:881
↓ 1 callers
Method
get
Get a value from the cache, respecting TTL
chatbi/cache/memory.py:26
↓ 1 callers
Function
getAdvise
()
web/src/components/AvaAdvisor/AvaAdvisor.tsx:19
↓ 1 callers
Function
getBaseUrl
()
web/src/services/client.ts:8
↓ 1 callers
Function
getColumnIcon
(columnName: string)
web/src/pages/DataSource/components/QueryResultTable.tsx:97
↓ 1 callers
Function
getDatabaseSchema
* Get schema metadata for a datasource * @param id - Datasource ID * @returns Database schema information
web/src/services/datasource.ts:211
↓ 1 callers
Function
getInsight
()
web/src/components/AvaAdvisor/AvaInsight.tsx:17
↓ 1 callers
Method
get_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 callers
Method
get_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 callers
Method
get_all
Get all projects with pagination
chatbi/domain/mdl/repository.py:69
↓ 1 callers
Function
get_async_qdrant_manager
Get global async Qdrant manager instance
chatbi/database/qdrant.py:323
↓ 1 callers
Method
get_by_datasource
Get all projects for a datasource
chatbi/domain/mdl/repository.py:45
↓ 1 callers
Method
get_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 callers
Method
get_by_owner
Get all projects for an owner
chatbi/domain/mdl/repository.py:57
↓ 1 callers
Method
get_by_project
Get all models for a project
chatbi/domain/mdl/repository.py:237
↓ 1 callers
Method
get_by_token
根据 Refresh Token 获取会话
chatbi/domain/auth/repository.py:140
↓ 1 callers
Function
get_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 callers
Method
get_cache
Get a test value from the cache. Args: requiest: FastAPI request object id: Cache identifier tes
chatbi/domain/chat/service.py:170
↓ 1 callers
Method
get_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 callers
Function
get_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 callers
Method
get_chart_scheme
(self)
chatbi/agent/visualize_agent.py:40
↓ 1 callers
Method
get_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 callers
Method
get_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 callers
Method
get_context_summary
Get context summary for LLM
chatbi/pipelines/ask/session_manager.py:58
↓ 1 callers
Function
get_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 callers
Method
get_current_user
从 Access Token 获取当前用户
chatbi/domain/auth/service.py:97
↓ 1 callers
Method
get_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 callers
Method
get_datasources
Get all datasources with efficient filtering and pagination. Uses repository pattern for improved database access. Args:
chatbi/domain/datasource/service.py:293
↓ 1 callers
Function
get_db
Get synchronous PostgreSQL database instance. Returns: PostgresDB instance
chatbi/database/database.py:748
↓ 1 callers
Function
get_db_session
Get a SQLAlchemy database session for sync operations. Yields: SQLAlchemy Session
chatbi/database/database.py:768
↓ 1 callers
Method
get_metrics
Get current rate limiter metrics
chatbi/middleware/rate_limiter.py:313
↓ 1 callers
Function
get_metrics_collector
Get global metrics collector instance. Returns: Singleton MetricsCollector
chatbi/observability/metrics.py:469
↓ 1 callers
Method
get_model
Get model by ID
chatbi/domain/mdl/service.py:165
↓ 1 callers
Function
get_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 callers
Method
get_project
Get project by ID
chatbi/domain/mdl/service.py:45
↓ 1 callers
Function
get_qdrant_manager
Get global Qdrant manager instance
chatbi/database/qdrant.py:309
↓ 1 callers
Function
get_repair_prompt
( validation_error: str, **kwargs, )
chatbi/agent/prompts/chart_prompt.py:94
↓ 1 callers
Function
get_session_manager
Get or create global session manager
chatbi/pipelines/ask/session_manager.py:192
↓ 1 callers
Function
get_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 callers
Method
get_stats
Get statistics about the connection pool.
chatbi/database/drivers/factory.py:249
↓ 1 callers
Method
get_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 callers
Function
handleDelete
(id: string)
web/src/pages/DataSource/index.tsx:50
↓ 1 callers
Function
handleDeleteSavedQuery
(queryId: number)
web/src/pages/DataSource/Query.tsx:165
↓ 1 callers
Function
handleEdit
(id: string)
web/src/pages/DataSource/index.tsx:68
↓ 1 callers
Function
handleSubmit
(nextContent: string)
web/src/pages/Playground/index.tsx:260
↓ 1 callers
Method
health_check
Check Qdrant health
chatbi/database/qdrant.py:62
↓ 1 callers
Function
init_data
()
chatbi/examples/duckdb.py:48
↓ 1 callers
Function
init_data
()
chatbi/examples/postgres.py:58
↓ 1 callers
Function
init_database
Initialize database connections and verify functionality. This function should be called during application startup. Returns: b
chatbi/database/database.py:655
↓ 1 callers
Function
init_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 callers
Method
is_expired
检查 Token 是否过期
chatbi/domain/auth/models.py:47
↓ 1 callers
Function
is_generated
(p: str)
chatbi/generate.py:8
↓ 1 callers
Method
list_models
List models for a project
chatbi/domain/mdl/service.py:194
↓ 1 callers
Method
list_projects
List projects with optional filters
chatbi/domain/mdl/service.py:63
↓ 1 callers
Function
loadDatasources
()
web/src/pages/Playground/index.tsx:195
↓ 1 callers
Method
logger_diagnose
Configure logger with diagnostics enabled for debugging.
chatbi/config.py:254
↓ 1 callers
Method
login
用户登录
chatbi/domain/auth/service.py:35
↓ 1 callers
Method
logout
登出(删除 Refresh Token)
chatbi/domain/auth/service.py:93
↓ 1 callers
Function
main
Main entry point.
chatbi/migrations/manage_migrations.py:183
↓ 1 callers
Function
main
()
chatbi/examples/postgres.py:36
↓ 1 callers
Method
mask_connection_info
Mask sensitive information in connection_info for API responses. Args: connection_info: Original connection info
chatbi/domain/datasource/service.py:666
↓ 1 callers
Function
onScroll
()
web/src/pages/Playground/index.tsx:249
↓ 1 callers
Function
refreshTable
()
web/src/pages/DataSource/index.tsx:44
↓ 1 callers
Method
refresh_token
刷新 Access Token
chatbi/domain/auth/service.py:55
↓ 1 callers
Method
release_connection
Release a connection back to the pool. Args: conn_id: Connection ID to release
chatbi/database/drivers/factory.py:166
↓ 1 callers
Function
renderChart
()
web/src/pages/DataSource/components/QueryVisualization.tsx:173
↓ 1 callers
Function
renderConnectionFields
()
web/src/pages/DataSource/components/DataSourceForm.tsx:102
↓ 1 callers
Function
reset_database
Reset the database by dropping and recreating it.
chatbi/migrations/manage_migrations.py:126
↓ 1 callers
Method
retrieve
Retrieve similar historical questions Args: question: Current user question project_id: Project ID
chatbi/pipelines/retrieval/history_retrieval.py:94
↓ 1 callers
Function
runEslint
()
web/scripts/api-init.ts:10
↓ 1 callers
Function
run_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 callers
Function
run_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 callers
Method
run_streaming
Generate reasoning plan with streaming output Args: question: User's natural language question mdl_context:
chatbi/agent/reasoning_agent.py:158
↓ 1 callers
Method
set
Set a value in Redis with optional TTL
chatbi/cache/redis.py:148
↓ 1 callers
Method
set_cache
Set a test value in the cache. Args: id: Cache identifier value: Value to store Returns:
chatbi/domain/chat/service.py:155
↓ 1 callers
Function
testConnection
* Test connection to a datasource * @param data - Connection details to test * @returns Connection status
web/src/services/datasource.ts:146
↓ 1 callers
Function
test_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 callers
Function
test_concrete_business_questions_not_ambiguous
Test that concrete business questions are NOT marked as ambiguous.
tests/verify_ambiguity_threshold.py:17
↓ 1 callers
Function
test_sales_scenario_e2e_logic
()
tests/verify_scenario_sales.py:20
↓ 1 callers
Function
test_vague_questions_are_ambiguous
Test that truly vague questions ARE marked as ambiguous.
tests/verify_ambiguity_threshold.py:62
↓ 1 callers
Method
to_dict
(self)
chatbi/agent/agent_message.py:32
↓ 1 callers
Method
trace_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 callers
Method
trace_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 callers
Method
transaction
Context manager for transaction handling. Usage: async with adapter.transaction(): await adapter.execute
chatbi/database/drivers/base.py:135
↓ 1 callers
Method
update
Update configuration settings.
chatbi/config.py:267
↓ 1 callers
Function
updateDatasource
* Update an existing datasource * @param id - Datasource ID * @param data - Datasource update data * @returns Updated datasource
web/src/services/datasource.ts:102
↓ 1 callers
Function
updateMessages
()
web/src/models/chat.tsx:329
↓ 1 callers
Method
update_datasource
Update an existing datasource with optimized connection validation. Args: db: Database session datasource_id
chatbi/domain/datasource/service.py:118
↓ 1 callers
Method
update_model
Update an MDL model
chatbi/domain/mdl/service.py:281
↓ 1 callers
Method
update_project
Update an MDL project
chatbi/domain/mdl/service.py:125
↓ 1 callers
Method
update_user
更新用户(仅管理员或本人)
chatbi/domain/auth/service.py:139
↓ 1 callers
Method
upsert_points
Insert or update points in collection
chatbi/database/qdrant.py:96
↓ 1 callers
Function
useChat
()
web/src/models/chat.tsx:110
↓ 1 callers
Method
validate_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 callers
Method
verify_password
验证密码
chatbi/domain/auth/models.py:22
Function
AvaAdvisor
({ data })
web/src/components/AvaAdvisor/AvaAdvisor.tsx:12
← previous
next →
201–300 of 811, ranked by callers