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
↓ 3 callers
Function
next
()
frontend/app/(workspace)/space/(mine)/knowledge/[uuid]/upload/page.tsx:101
↓ 3 callers
Function
remove_base64_images_prefix
(base64_data: List[str])
backend/app/utils/media.py:90
↓ 3 callers
Method
set
Cache model provider credentials. :param credentials: provider credentials :return:
backend/app/utils/cache/provider_credentials.py:32
↓ 3 callers
Function
start_seed
()
backend/app/database/seed/main.py:26
↓ 3 callers
Method
sync_patch
部分更新模型对象
backend/app/dao/base.py:386
↓ 3 callers
Function
transform_conversation_to_reply
( conversation: Conversation, )
backend/app/service/conversation/service.py:14
↓ 3 callers
Function
transform_documents_to_reply
(documents: [Document])
backend/app/service/rag/document/service.py:43
↓ 3 callers
Method
upgrade
(self)
backend/app/database/alembic_manager.py:38
↓ 3 callers
Function
useSSE
()
frontend/app/lib/sse/EventSourceHelper.ts:29
↓ 3 callers
Function
useWindowSize
()
frontend/app/lib/windows.tsx:8
↓ 3 callers
Function
validate_app_uuid
(async_db: AsyncSession, app_uuid: str, session_user: User)
backend/app/api/rag/dataset_controller.py:141
↓ 3 callers
Method
value_of
(value)
backend/app/core/brainx/entity/provider.py:22
↓ 2 callers
Function
ActionFetchAppList
(pg: RequestPagination)
frontend/app/api/app/index.ts:28
↓ 2 callers
Function
ActionFetchDatasetListWithConnectedApp
(data: RequestDatasetListWithConnectedApp)
frontend/app/api/knowledge/dataset.ts:154
↓ 2 callers
Function
GetChatBotSSEActionUrl
( action: string, )
frontend/app/api/robot-chat/index.ts:22
↓ 2 callers
Method
_get_default_model_by_uuid
(self, tenant_uuid: str, model_type: str)
backend/app/dao/tenant/tenant_default_model.py:52
↓ 2 callers
Method
_get_default_parameter_rule_variable_map
(self, name: DefaultParameterName)
backend/app/core/brainx/interface/ai_model.py:43
↓ 2 callers
Method
_set_indexing_status
(self, document: Document, indexing_status: DocumentIndexingStatus,
backend/app/dao/rag/document.py:18
↓ 2 callers
Method
a_get
异步获取缓存
backend/app/cache/interface.py:76
↓ 2 callers
Method
a_set
异步设置缓存,支持设置过期时间(秒)
backend/app/cache/interface.py:72
↓ 2 callers
Method
acquire_lock
获取分布式锁
backend/app/cache/interface.py:42
↓ 2 callers
Function
actionSend
()
frontend/app/(workspace)/space/workspace/robot-chat/box/index.tsx:135
↓ 2 callers
Function
add_new_consumer
添加一个新的消费者任务
backend/app/events/manager.py:138
↓ 2 callers
Function
agent_chat
( async_db: AsyncSession, sync_db: Session, app_uuid: str, tenant_uuid: str,
backend/app/service/robot_chat/agent_chat.py:78
↓ 2 callers
Function
agent_chat_event_generator
( request: Request, data: RequestChat, user_uuid: str, tenant_uuid: str, async
backend/app/service/robot_chat/agent_chat.py:22
↓ 2 callers
Method
async_set_indexing_status
(self, document: Document, status: DocumentIndexingStatus,
backend/app/dao/rag/document.py:81
↓ 2 callers
Function
chat
( async_db: AsyncSession, sync_db: Session, question: str, provider: str,
backend/app/service/robot_chat/chat.py:134
↓ 2 callers
Function
chat_event_generator
( request: Request, data: RequestChat, tenant_uuid: str, user_uuid: str,
backend/app/service/robot_chat/chat.py:71
↓ 2 callers
Method
check_bucket_exists
(self, bucket: str)
backend/app/service/media_resource/service.py:195
↓ 2 callers
Function
create_celery_app
()
backend/app/service/task/celery_app.py:21
↓ 2 callers
Method
create_dataset
Create a Dataset instance for testing purposes with minimum required fields
backend/app/models/rag/dataset.py:60
↓ 2 callers
Method
create_llm_provider
(**kwargs)
backend/app/core/brainx/drivers/provider_model_factory.py:104
↓ 2 callers
Method
create_media_resource
( self, resource: MediaResource )
backend/app/service/media_resource/service.py:55
↓ 2 callers
Method
create_rerank_provider
(**kwargs)
backend/app/core/brainx/drivers/provider_model_factory.py:136
↓ 2 callers
Function
create_retriever
( collection_name: str = settings.agent.vector_store_collection, embedding_model_instance: ModelInstan
backend/app/core/rag/base.py:33
↓ 2 callers
Method
create_speech2text_provider
(**kwargs)
backend/app/core/brainx/drivers/provider_model_factory.py:144
↓ 2 callers
Method
create_text2video_provider
(**kwargs)
backend/app/core/brainx/drivers/provider_model_factory.py:160
↓ 2 callers
Function
create_text_embedding_model
()
backend/app/core/rag/base.py:14
↓ 2 callers
Method
create_tts_provider
(**kwargs)
backend/app/core/brainx/drivers/provider_model_factory.py:168
↓ 2 callers
Method
create_vector_store_driver
( cls, vdb_type: VectorStoreType, collection_name: str = "embedding",
backend/app/core/rag/vector_store/factory.py:11
↓ 2 callers
Function
decrypt_content
(tenant_uuid: str, content: str)
backend/app/utils/encrypter.py:31
↓ 2 callers
Method
desensitized_credentials
(self, credentials: dict, credential_form_schemas: list[CredentialFormSchema])
backend/app/core/brainx/entity/provider_config.py:196
↓ 2 callers
Method
download
(self, filename, target_filepath)
backend/app/core/libs/storage/storage.py:85
↓ 2 callers
Function
encodePassword
(data: string)
frontend/app/lib/security.ts:4
↓ 2 callers
Function
encrypt_content
(sync_db: Session, tenant_uuid: str, content: str)
backend/app/utils/encrypter.py:10
↓ 2 callers
Function
fetchDatasetList
(pagination: RequestPagination)
frontend/app/(workspace)/space/(mine)/knowledge/provider/fetch-dataset-list-provider.tsx:29
↓ 2 callers
Function
fetchLatestInvoices
()
frontend/app/lib/data.ts:32
↓ 2 callers
Function
fetchRevenue
()
frontend/app/lib/data.ts:15
↓ 2 callers
Function
formatCurrency
(amount: number)
frontend/app/lib/base.ts:3
↓ 2 callers
Method
generate
( self, model: str, stream: bool, messages: list[ErnieMessage], parame
backend/app/core/brainx/providers/wenxin/llm/ernie_bot.py:40
↓ 2 callers
Function
generate_session_id
生成会话ID
backend/app/utils/chat.py:4
↓ 2 callers
Method
get
获取缓存
backend/app/cache/redis/redis_cache.py:43
↓ 2 callers
Function
getKeysFromLanuage
(language)
frontend/i18n/check-i18n.js:10
↓ 2 callers
Method
get_access_token
(self)
backend/app/openapi/providers/service_provider.py:15
↓ 2 callers
Method
get_app_by_uuid_with_preloads
(self, app_uuid: str)
backend/app/dao/app/app.py:15
↓ 2 callers
Function
get_async_db_session_dep
()
backend/app/database/deps.py:21
↓ 2 callers
Method
get_base_vector_store
(self)
backend/app/core/rag/ingestion/interface.py:26
↓ 2 callers
Method
get_base_vector_store
(self)
backend/app/core/rag/ingestion/drivers/langchain/indexing.py:61
↓ 2 callers
Method
get_by_account
根据 Account 获取模型对象
backend/app/dao/tenant/user.py:33
↓ 2 callers
Method
get_chat_history
(self, session_id: str)
backend/app/core/brainx/interface/llm.py:284
↓ 2 callers
Function
get_chat_prompt_template
(app: App)
backend/app/core/brainx/templates/chat.py:6
↓ 2 callers
Method
get_default_model
( self, tenant_uuid: str, model_type: ModelType )
backend/app/core/brainx/provider_manager.py:53
↓ 2 callers
Method
get_default_model_instance
( self, tenant_uuid: str, model_type: ModelType )
backend/app/core/brainx/model_manager.py:64
↓ 2 callers
Method
get_event_channel
建立与 RabbitMQ 的连接和频道,支持重试
backend/app/events/consumer.py:25
↓ 2 callers
Method
get_indexer
( splitter: BaseTextSplitter = None, embedding_model_instance: ModelInstance = None,
backend/app/core/rag/ingestion/factory.py:12
↓ 2 callers
Function
get_media_type
(content_type: str)
backend/app/dao/media_resource/media_resource.py:15
↓ 2 callers
Method
get_model_brand
获取模型的品牌
backend/app/core/brainx/base.py:135
↓ 2 callers
Method
get_model_schema
(self, model_type: ModelType, model: str, credentials: dict)
backend/app/core/brainx/entity/provider_config.py:313
↓ 2 callers
Method
get_model_type_instance
(self, model_type: ModelType, provider_id: str, model_id: str)
backend/app/core/brainx/drivers/provider_model_factory.py:75
↓ 2 callers
Function
get_project_path
()
backend/app/core/libs/file.py:4
↓ 2 callers
Function
get_project_root
获取项目根目录的绝对路径
backend/app/utils/url.py:10
↓ 2 callers
Method
get_provider_instance
(self, provider_id: str)
backend/app/core/brainx/drivers/provider_factory.py:26
↓ 2 callers
Method
get_provider_model
(self, params: dict = None)
backend/app/core/brainx/providers/ollama/llm/llm.py:36
↓ 2 callers
Function
get_tenant_private_key_path
(tenant_uuid)
backend/app/core/libs/rsa.py:14
↓ 2 callers
Method
get_vector_store
(self)
backend/app/core/rag/retrieval/interface.py:22
↓ 2 callers
Function
handleChatClosed
()
frontend/app/share/demo/chat/page.tsx:44
↓ 2 callers
Function
handleError
(err: Error, onerror: OnErrorCallback)
frontend/app/lib/sse/EventSourceHelper.ts:30
↓ 2 callers
Function
handleMouseLeaveItem
(provider: string, modelKey: string)
frontend/app/(workspace)/space/settings/model-provider/components/selection-system-model/index.tsx:41
↓ 2 callers
Function
hash_password
(encoded_password: str)
backend/app/core/libs/security.py:10
↓ 2 callers
Method
http_post
(self, url: str, json: Any = None, use_auth: bool = True, headers: dict = None)
backend/app/openapi/providers/service_provider.py:37
↓ 2 callers
Method
is_thinking_model
判断是否为Ollama模型
backend/app/core/brainx/interface/llm.py:273
↓ 2 callers
Method
load
Initialize the document based on the input.
backend/app/core/rag/ingestion/extractor/drivers/markdown/markdown.py:20
↓ 2 callers
Method
load
Initialize the document based on the input.
backend/app/core/rag/ingestion/extractor/drivers/excel/excel.py:19
↓ 2 callers
Method
load
Initialize the document based on the input.
backend/app/core/rag/ingestion/extractor/drivers/word_doc/doc.py:19
↓ 2 callers
Method
load
Initialize the document based on the input.
backend/app/core/rag/ingestion/extractor/drivers/text/txt.py:19
↓ 2 callers
Function
onChange
(key: string | string[])
frontend/app/(workspace)/space/(mine)/profile/index.tsx:191
↓ 2 callers
Function
onClickToSaveModel
(provider: Provider, model: ProviderModel | null)
frontend/app/(workspace)/space/settings/model-provider/system-model-setting/configured-providers/index.tsx:140
↓ 2 callers
Function
onRefreshTextDatasetList
()
frontend/app/(workspace)/space/(mine)/profile/index.tsx:200
↓ 2 callers
Function
parse_local_document
( parsed_url: urllib.parse.ParseResult, document_url: str )
backend/app/utils/document.py:94
↓ 2 callers
Method
post
(host: string, endpoint: string, body?: any)
frontend/app/openapi/backend.ts:120
↓ 2 callers
Method
process_document
(self)
backend/app/service/task/rag/service.py:163
↓ 2 callers
Method
release_lock
释放分布式锁
backend/app/cache/interface.py:51
↓ 2 callers
Method
remove_think_tags
(cls, text: str)
backend/app/core/brainx/interface/llm.py:281
↓ 2 callers
Method
retrieve
(self, query: str, top_k: int=3, score_threshold: float=0.5, filters: Dict = None)
backend/app/core/rag/retrieval/interface.py:25
↓ 2 callers
Method
set
(self, key: str, value: Any)
backend/app/core/workflow/context/manager.py:9
↓ 2 callers
Function
sleep
(ms: number)
frontend/app/lib/base.ts:38
↓ 2 callers
Method
start
(self)
backend/app/schedule/scheduler.py:58
↓ 2 callers
Method
stop_consumer
停止特定队列的所有消费者任务
backend/app/events/manager.py:91
↓ 2 callers
Method
sync_delete_by
删除模型对象
backend/app/dao/base.py:507
↓ 2 callers
Method
sync_update
更新模型对象
backend/app/dao/base.py:333
← previous
next →
101–200 of 1,531, ranked by callers