Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ArtisanCloud/BrainX
/ functions
Functions
1,531 in github.com/ArtisanCloud/BrainX
⨍
Functions
1,531
◇
Types & classes
702
↳
Endpoints
87
↓ 2 callers
Function
transform_document_segment_to_reply
( document_segment: DocumentSegment, )
backend/app/service/rag/document_segment/service.py:26
↓ 2 callers
Function
transform_documents_to_reply
( answer: str, documents: List[DocumentNode] )
backend/app/service/question_answer/query.py:16
↓ 2 callers
Function
transform_message_to_reply
(message: Message)
backend/app/service/message/service.py:39
↓ 2 callers
Function
useTranslation
( lng: Locale, ns = "", options: Record<string, any> = {} )
frontend/i18n/server.ts:30
↓ 2 callers
Method
validate_credentials
(self, credentials: Mapping)
backend/app/core/brainx/interface/llm.py:31
↓ 1 callers
Function
ActionAddContent
(option: RequestAddContent)
frontend/app/api/knowledge/document.ts:167
↓ 1 callers
Function
ActionChangeModelStatus
(option: RequestChangeModelStatus)
frontend/app/api/model-provider/model.ts:55
↓ 1 callers
Function
ActionCreateApp
(option: RequestCreateApp)
frontend/app/api/app/index.ts:53
↓ 1 callers
Function
ActionCreateDataset
(option: RequestCreateDataset)
frontend/app/api/knowledge/dataset.ts:97
↓ 1 callers
Function
ActionDatasetConnectApps
(data: RequestDatasetConnectApps)
frontend/app/api/knowledge/dataset.ts:177
↓ 1 callers
Function
ActionDatasetDisconnectApps
(data: RequestDatasetDisconnectApps)
frontend/app/api/knowledge/dataset.ts:196
↓ 1 callers
Function
ActionDeleteApp
(appUuid: string)
frontend/app/api/app/index.ts:84
↓ 1 callers
Function
ActionDeleteModel
(option: RequestDeleteModel)
frontend/app/api/model-provider/model.ts:104
↓ 1 callers
Function
ActionDeleteProvider
(option: RequestDeleteProvider)
frontend/app/api/model-provider/provider.ts:201
↓ 1 callers
Function
ActionDemoChatCompletion
( params: RequestChat )
frontend/app/openapi/demo/chat.ts:19
↓ 1 callers
Function
ActionFetchCachedMessageList
(data: RequestFetchCachedMessageList)
frontend/app/api/robot-chat/conversation.ts:84
↓ 1 callers
Function
ActionFetchConversationList
(data: RequestFetchConversationList)
frontend/app/api/robot-chat/conversation.ts:40
↓ 1 callers
Function
ActionFetchDatasetList
(pg: RequestPagination)
frontend/app/api/knowledge/dataset.ts:48
↓ 1 callers
Function
ActionFetchDocumentList
(pg: RequestFetchDocumentList)
frontend/app/api/knowledge/document.ts:55
↓ 1 callers
Function
ActionFetchNodeList
()
frontend/app/api/workflow/node.ts:38
↓ 1 callers
Function
ActionFetchProviderSchemaList
()
frontend/app/api/model-provider/provider.ts:123
↓ 1 callers
Function
ActionGetDataset
(option: RequestGetDataset)
frontend/app/api/knowledge/dataset.ts:71
↓ 1 callers
Function
ActionGetModelCredentials
(option: RequestGetModelCredentials)
frontend/app/api/model-provider/model.ts:121
↓ 1 callers
Function
ActionGetProviderCredentials
(option: RequestGetProviderCredentials)
frontend/app/api/model-provider/provider.ts:146
↓ 1 callers
Function
ActionGetProviderIcon
( providerName: string, size: string = "icon_large", )
frontend/app/api/model-provider/provider.ts:157
↓ 1 callers
Function
ActionGetProviderModels
(option: RequestGetProviderModels)
frontend/app/api/model-provider/model.ts:34
↓ 1 callers
Function
ActionLogin
(option: RequestLogin)
frontend/app/api/auth/index.ts:22
↓ 1 callers
Function
ActionPatchApp
(option: RequestPatchApp)
frontend/app/api/app/index.ts:70
↓ 1 callers
Function
ActionQAQuery
( params: RequestQAQuery )
frontend/app/api/question-answer/query.ts:12
↓ 1 callers
Function
ActionQueryTasksStatus
(option: RequestQueryTasksStatus)
frontend/app/api/task/index.ts:36
↓ 1 callers
Function
ActionRegister
(option: RequestRegister)
frontend/app/api/auth/index.ts:39
↓ 1 callers
Function
ActionSaveProvider
(option: RequestSaveProvider)
frontend/app/api/model-provider/provider.ts:183
↓ 1 callers
Function
ActionSaveProviderModelSetting
(option: RequestSaveProviderModelSetting)
frontend/app/api/model-provider/model.ts:84
↓ 1 callers
Function
ActionVisualQuery
( params: RequestVisualQuery )
frontend/app/api/question-answer/visual-query.ts:15
↓ 1 callers
Function
ActionVisualQueryByFile
( params: RequestVisualQuery, file: File )
frontend/app/api/question-answer/visual-query.ts:25
↓ 1 callers
Function
ActionVisualSearch
( params: RequestVisualSearch )
frontend/app/api/question-answer/visual-search.ts:14
↓ 1 callers
Function
BuildMergedCredentialSchemas
(provider: Provider)
frontend/app/utils/provider.ts:4
↓ 1 callers
Function
GetAppFromUUID
(uuid: string, apps: App[])
frontend/app/utils/app.ts:3
↓ 1 callers
Function
GetDemoChatSSEActionUrl
( action: string, )
frontend/app/openapi/demo/chat.ts:28
↓ 1 callers
Function
GetOpenAPIChatBotSSEActionUrl
( action: string, )
frontend/app/openapi/robot_chat/index.ts:47
↓ 1 callers
Method
__init__
(self, async_db: AsyncSession = None, sync_db: Session = None)
backend/app/dao/model_provider/provider_model.py:10
↓ 1 callers
Method
__init__
(self, async_db: AsyncSession = None, sync_db: Session = None)
backend/app/dao/tenant/tenant.py:14
↓ 1 callers
Method
__new__
(cls)
backend/app/service/task/celery_app.py:11
↓ 1 callers
Method
_build_chat_request_body
( self, model: str, messages: list[ErnieMessage], stream: bool, parame
backend/app/core/brainx/providers/wenxin/llm/ernie_bot.py:140
↓ 1 callers
Method
_build_request_body
( self, model: str, messages: list[ErnieMessage], stream: bool, parame
backend/app/core/brainx/providers/wenxin/llm/ernie_bot.py:106
↓ 1 callers
Method
_check_parameters
( self, model: str, parameters: dict[str, Any], tools: list[PromptMessageTool], stop: list[str] )
backend/app/core/brainx/providers/wenxin/llm/ernie_bot.py:83
↓ 1 callers
Method
_copy_messages
(self, messages: list[ErnieMessage])
backend/app/core/brainx/providers/wenxin/llm/ernie_bot.py:80
↓ 1 callers
Method
_execute_api
执行 API 调用
backend/app/core/workflow/node/plugin/node.py:104
↓ 1 callers
Method
_execute_code
执行自定义代码
backend/app/core/workflow/node/plugin/node.py:111
↓ 1 callers
Method
_extract_block_from_content
(self, page: fitz.Page, page_number: int)
backend/app/core/rag/ingestion/extractor/drivers/pdf/pdf.py:66
↓ 1 callers
Method
_get_all_preferred_model_providers
(tenant_uuid: str)
backend/app/core/brainx/provider_manager.py:196
↓ 1 callers
Method
_get_custom_provider_models
( self, model_types: Sequence[ModelType], provider_schema: ProviderEntity,
backend/app/core/brainx/entity/provider_config.py:340
↓ 1 callers
Method
_get_customizable_model_schema
Get customizable model schema and fill in the template
backend/app/core/brainx/interface/ai_model.py:62
↓ 1 callers
Method
_get_dataset
(self, dataset_uuid: str)
backend/app/service/task/rag/service.py:67
↓ 1 callers
Method
_get_document
(self, document_uuid: str)
backend/app/service/task/rag/service.py:58
↓ 1 callers
Method
_get_driver_instance
(self)
backend/app/core/libs/storage/storage.py:24
↓ 1 callers
Method
_get_local_url
(self, resource: str)
backend/app/core/libs/storage/drivers/local_storage.py:102
↓ 1 callers
Method
_get_user
(self, user_uuid: str)
backend/app/service/task/rag/service.py:77
↓ 1 callers
Method
_handle_chat_generate_response
(self, response: Response)
backend/app/core/brainx/providers/wenxin/llm/ernie_bot.py:181
↓ 1 callers
Method
_handle_chat_stream_generate_response
(self, response: Response)
backend/app/core/brainx/providers/wenxin/llm/ernie_bot.py:201
↓ 1 callers
Method
_init_inputs
(self, node_id, input_data)
backend/app/core/workflow/node/base.py:101
↓ 1 callers
Method
_init_output
(self, node_id, output_data)
backend/app/core/workflow/node/base.py:106
↓ 1 callers
Method
_initialize_driver
(self)
backend/app/core/libs/storage/storage.py:18
↓ 1 callers
Method
_map_outputs_to_state
将输出映射回状态
backend/app/core/workflow/node/plugin/node.py:150
↓ 1 callers
Method
_prepare_inputs
根据输入映射从状态中提取参数
backend/app/core/workflow/node/plugin/node.py:96
↓ 1 callers
Method
_run_30_seconds_task
(self)
backend/app/service/task/task.py:61
↓ 1 callers
Method
_run_30_seconds_task_with_locker
实际的任务执行逻辑
backend/app/service/task/task.py:109
↓ 1 callers
Method
_to_custom_configuration
( self, tenant_uuid: str, provider_entity: ProviderEntity, pro
backend/app/core/brainx/provider_manager.py:457
↓ 1 callers
Method
_to_model_settings
( self, provider_entity: ProviderEntity, provider_model_settings: Optional
backend/app/core/brainx/provider_manager.py:319
↓ 1 callers
Method
_to_system_configuration
( self, tenant_uuid: str, provider_entity: ProviderEntity, provider_records: list[Provider] )
backend/app/core/brainx/provider_manager.py:436
↓ 1 callers
Method
a_get
获取缓存
backend/app/cache/redis/redis_cache.py:133
↓ 1 callers
Function
a_parse_ftp_document
(url: str)
backend/app/utils/document.py:166
↓ 1 callers
Function
a_parse_http_document
(url: str)
backend/app/utils/document.py:141
↓ 1 callers
Function
a_parse_local_document
( parsed_url: urllib.parse.ParseResult, document_url: str )
backend/app/utils/document.py:197
↓ 1 callers
Function
actionSend
(values: RequestSendOpenAIChat)
frontend/app/share/demo/openai-chat/page.tsx:61
↓ 1 callers
Function
actionSend
(values: RequestChat)
frontend/app/share/demo/chat/page.tsx:53
↓ 1 callers
Method
add_and_start_consumer
动态添加消费者并启动
backend/app/events/manager.py:83
↓ 1 callers
Method
add_consumer
添加消费者到特定队列的管理器
backend/app/events/manager.py:57
↓ 1 callers
Method
add_content
( self, segment_rule: DatasetSegmentRule, documents: List[Document] )
backend/app/service/rag/document/service.py:18
↓ 1 callers
Function
add_custom_mimetypes
()
backend/app/utils/media.py:40
↓ 1 callers
Function
add_document_content
( async_db: AsyncSession, user: User, data: RequestAddDocumentContent, )
backend/app/service/rag/document/add_document_content.py:26
↓ 1 callers
Method
add_documents
添加多个文档到向量存储中,并返回每个文档的唯一标识符列表。 参数: - documents (List[DocumentNode]): 需要存储的文档列表。每个文档可以是文本、向量或其他数据类型,具体取决于实现。 - **kwarg
backend/app/core/rag/vector_store/interface.py:16
↓ 1 callers
Method
add_tenant
(self, tenant: Tenant)
backend/app/service/tenant/service.py:20
↓ 1 callers
Method
agent_chat
( self, question: str, session_id: str = "" )
backend/app/service/brainx/service.py:168
↓ 1 callers
Function
agent_openai_chat_event_generator
( request: Request, data: RequestOpenAIChat, user_uuid: str, async_db: AsyncSession )
backend/app/openapi/service/robot_chat/openai.py:21
↓ 1 callers
Method
async_create_many
创建新的模型对象
backend/app/dao/base.py:119
↓ 1 callers
Method
async_disconnect
(self)
backend/app/cache/interface.py:68
↓ 1 callers
Method
async_get_by
根据 UUID 获取模型对象
backend/app/dao/base.py:170
↓ 1 callers
Method
async_get_objects_by_conditions
根据给定的条件查询模型对象
backend/app/dao/base.py:233
↓ 1 callers
Method
async_patch
部分更新模型对象
backend/app/dao/base.py:356
↓ 1 callers
Method
async_update
更新模型对象
backend/app/dao/base.py:306
↓ 1 callers
Method
auth
(self)
backend/app/openapi/providers/powerx/service/base.py:25
↓ 1 callers
Function
auth_openapi_access_key
(data: RequestAuthPlatform)
backend/app/openapi/middleware/auth.py:20
↓ 1 callers
Function
autoGenTrans
(fileName, toGenLanguage)
frontend/i18n/auto-gen-i18n.js:52
↓ 1 callers
Method
backend_post
(endpoint: string, body?: any)
frontend/app/openapi/backend.ts:89
↓ 1 callers
Method
backend_post_form
(endpoint: string, formData: FormData)
frontend/app/api/backend.ts:51
↓ 1 callers
Function
base64_to_bytes
(base64_data: str)
backend/app/utils/media.py:114
↓ 1 callers
Method
build
(self)
backend/app/core/agent_bot/agent.py:210
↓ 1 callers
Method
build
(self, graph_data: dict)
backend/app/core/workflow/graph.py:91
↓ 1 callers
Method
build_find_query_no_page
(self, query: select, opt: FindManyMediaResourcesOption)
backend/app/dao/media_resource/media_resource.py:36
← previous
next →
201–300 of 1,531, ranked by callers