MCPcopy Index your code

hub / github.com/rag-web-ui/rag-web-ui / functions

Functions202 in github.com/rag-web-ui/rag-web-ui

↓ 51 callersFunctioncn
(...inputs: ClassValue[])
frontend/src/lib/utils.ts:4
↓ 34 callersFunctiontoast
({ ...props }: Toast)
frontend/src/components/ui/use-toast.ts:145
↓ 28 callersMethodcreate
Create a LLM instance based on the provider
backend/app/services/llm/llm_factory.py:10
↓ 10 callersMethoddelete
Delete documents from Qdrant
backend/app/services/vector_store/qdrant.py:25
↓ 10 callersFunctionuseToast
()
frontend/src/components/ui/use-toast.ts:174
↓ 7 callersFunctionget_minio_client
Get a MinIO client instance.
backend/app/core/minio.py:7
↓ 5 callersFunctiondispatch
(action: Action)
frontend/src/components/ui/use-toast.ts:136
↓ 5 callersFunctionfetchApi
(fullUrl: string, options: FetchOptions = {})
frontend/src/lib/api.ts:13
↓ 3 callersMethod_create_minimax_llm
Helper to create a MiniMax LLM instance.
backend/tests/test_minimax_integration.py:21
↓ 3 callersMethodrun_migrations
Run database migrations if needed Raises: Exception: If migration fails
backend/app/startup/migarate.py:76
↓ 2 callersFunctionaddToRemoveQueue
(toastId: string)
frontend/src/components/ui/use-toast.ts:61
↓ 2 callersMethodadd_documents
Add documents to Qdrant
backend/app/services/vector_store/qdrant.py:21
↓ 2 callersMethodget_api_key
(db: Session, api_key_id: int)
backend/app/services/api_key.py:34
↓ 2 callersFunctionget_url
()
backend/alembic/env.py:35
↓ 2 callersFunctionmarkdownParse
(text: string)
frontend/src/app/dashboard/chat/[id]/page.tsx:193
↓ 2 callersFunctionpreview_document
Step 2: Generate preview chunks
backend/app/services/document_processor.py:183
↓ 2 callersMethodsimilarity_search_with_score
Search for similar documents in Qdrant with score
backend/app/services/vector_store/qdrant.py:37
↓ 2 callersFunctionvalidateEmail
(email: string)
frontend/src/app/register/page.tsx:17
↓ 2 callersFunctionvalidatePassword
(password: string)
frontend/src/app/register/page.tsx:30
↓ 1 callersMethod_get_alembic_config
Create and configure Alembic config Returns: Alembic config object
backend/app/startup/migarate.py:64
↓ 1 callersMethodadd_chunks
Add new chunks to the database
backend/app/services/chunk_record.py:26
↓ 1 callersMethodas_retriever
Return a retriever interface
backend/app/services/vector_store/qdrant.py:29
↓ 1 callersMethodcheck_migration_needed
Check if database migration is needed Returns: Tuple containing: - bool: Whether migration is needed
backend/app/startup/migarate.py:42
↓ 1 callersFunctionclean_database
()
backend/clean_db.py:4
↓ 1 callersFunctioncopyAPIKey
(id: number, key: string)
frontend/src/app/dashboard/api-keys/page.tsx:166
↓ 1 callersMethodcreate_api_key
(db: Session, user_id: int, name: str)
backend/app/services/api_key.py:21
↓ 1 callersMethoddatabase_connection
Context manager for database connections with timeout Yields: SQLAlchemy connection object
backend/app/startup/migarate.py:25
↓ 1 callersFunctiondeleteAPIKey
(id: number)
frontend/src/app/dashboard/api-keys/page.tsx:119
↓ 1 callersMethoddelete_api_key
(db: Session, api_key: APIKey)
backend/app/services/api_key.py:51
↓ 1 callersMethoddelete_chunks
Delete chunks by their IDs
backend/app/services/chunk_record.py:44
↓ 1 callersMethoddelete_collection
Delete the entire collection
backend/app/services/vector_store/qdrant.py:41
↓ 1 callersFunctiondismiss
()
frontend/src/components/ui/use-toast.ts:153
↓ 1 callersFunctionfetchAPIKeys
()
frontend/src/app/dashboard/api-keys/page.tsx:63
↓ 1 callersFunctionfetchChat
()
frontend/src/app/dashboard/chat/[id]/page.tsx:83
↓ 1 callersFunctionfetchChats
()
frontend/src/app/dashboard/chat/page.tsx:34
↓ 1 callersFunctionfetchCitationInfo
()
frontend/src/components/chat/answer.tsx:77
↓ 1 callersFunctionfetchDocuments
()
frontend/src/components/knowledge-base/document-list.tsx:49
↓ 1 callersFunctionfetchKnowledgeBase
()
frontend/src/app/dashboard/test-retrieval/[id]/page.tsx:36
↓ 1 callersFunctionfetchKnowledgeBases
()
frontend/src/app/dashboard/chat/new/page.tsx:31
↓ 1 callersFunctionfetchKnowledgeBases
()
frontend/src/app/dashboard/knowledge/page.tsx:39
↓ 1 callersFunctionfetchStats
()
frontend/src/app/dashboard/page.tsx:39
↓ 1 callersFunctiongenId
()
frontend/src/components/ui/use-toast.ts:30
↓ 1 callersFunctiongenerateBreadcrumbs
()
frontend/src/components/ui/breadcrumb.tsx:10
↓ 1 callersFunctiongenerate_response
( query: str, messages: dict, knowledge_base_ids: List[int], chat_id: int, db: Session )
backend/app/services/chat_service.py:21
↓ 1 callersMethodget_api_key_by_key
(db: Session, key: str)
backend/app/services/api_key.py:38
↓ 1 callersMethodget_api_keys
(db: Session, user_id: int, skip: int = 0, limit: int = 100)
backend/app/services/api_key.py:11
↓ 1 callersMethodget_deleted_chunks
Get IDs of chunks that no longer exist in the current version
backend/app/services/chunk_record.py:56
↓ 1 callersFunctionhandleDelete
(id: number)
frontend/src/app/dashboard/chat/page.tsx:50
↓ 1 callersFunctionhandleDelete
(id: number)
frontend/src/app/dashboard/knowledge/page.tsx:57
↓ 1 callersFunctionhandleProcess
(uploadResults?: UploadResult[])
frontend/src/components/knowledge-base/document-upload-steps.tsx:237
↓ 1 callersFunctionhandleTest
()
frontend/src/app/dashboard/test-retrieval/[id]/page.tsx:55
↓ 1 callersFunctionhandleUpload
(file: File)
frontend/src/app/dashboard/knowledge/[id]/upload/page.tsx:92
↓ 1 callersFunctioninit_minio
Initialize MinIO by creating the bucket if it doesn't exist.
backend/app/core/minio.py:19
↓ 1 callersMethodlist_chunks
List all chunk hashes for the given file
backend/app/services/chunk_record.py:14
↓ 1 callersFunctionpoll
()
frontend/src/components/knowledge-base/document-upload-steps.tsx:287
↓ 1 callersFunctionpollTaskStatus
(taskIds: number[])
frontend/src/components/knowledge-base/document-upload-steps.tsx:286
↓ 1 callersFunctionprocess_document_background
Process document in background
backend/app/services/document_processor.py:234
↓ 1 callersFunctionreducer
(state: State, action: Action)
frontend/src/components/ui/use-toast.ts:77
↓ 1 callersFunctionremoveFile
(file: File)
frontend/src/components/knowledge-base/document-upload-steps.tsx:132
↓ 1 callersFunctionremoveFile
(file: File)
frontend/src/app/dashboard/knowledge/[id]/upload/page.tsx:241
↓ 1 callersFunctionresponse_stream
()
backend/app/api/api_v1/chat.py:117
↓ 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 as w
backend/alembic/env.py:38
↓ 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.
backend/alembic/env.py:62
↓ 1 callersFunctionscrollToBottom
()
frontend/src/app/dashboard/chat/[id]/page.tsx:151
↓ 1 callersFunctionselectKnowledgeBase
(id: number)
frontend/src/app/dashboard/chat/new/page.tsx:82
↓ 1 callersFunctionsynchronize_chunks
基于 content_hash + index 的双指针匹配算法,查找需要新增、更新和删除的 chunks。 主要改进: 1. 对同一 content_hash 的旧、新 chunks,分别按 index 排序,再逐个匹配,避免原先直接根据 “两两相同位置”导
backend/diff.py:45
↓ 1 callersFunctiontoggleAPIKeyStatus
(id: number, currentStatus: boolean)
frontend/src/app/dashboard/api-keys/page.tsx:140
↓ 1 callersMethodupdate_api_key
(db: Session, api_key: APIKey, update_data: APIKeyUpdate)
backend/app/services/api_key.py:42
↓ 1 callersMethodupdate_last_used
(db: Session, api_key: APIKey)
backend/app/services/api_key.py:56
↓ 1 callersFunctionuseDebouncedValue
(value: T, delay: number)
frontend/src/components/chat/answer.tsx:23
FunctionAPIKeysPage
()
frontend/src/app/dashboard/api-keys/page.tsx:51
FunctionAnswer
({ markdown, citations = [] })
frontend/src/components/chat/answer.tsx:62
FunctionBadge
({ className, variant, ...props }: BadgeProps)
frontend/src/components/ui/badge.tsx:30
FunctionBreadcrumb
()
frontend/src/components/ui/breadcrumb.tsx:7
FunctionChatPage
()
frontend/src/app/dashboard/chat/page.tsx:25
FunctionChatPage
({ params }: { params: { id: string } })
frontend/src/app/dashboard/chat/[id]/page.tsx:45
FunctionDashboardLayout
({ children, }: { children: React.ReactNode; })
frontend/src/components/layout/dashboard-layout.tsx:9
FunctionDashboardPage
()
frontend/src/app/dashboard/page.tsx:35
FunctionDialogFooter
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
frontend/src/components/ui/dialog.tsx:70
FunctionDialogHeader
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
frontend/src/components/ui/dialog.tsx:56
FunctionDivider
({ className, orientation = "horizontal", })
frontend/src/components/ui/divider.tsx:9
FunctionDocumentList
({ knowledgeBaseId }: DocumentListProps)
frontend/src/components/knowledge-base/document-list.tsx:43
FunctionDocumentUploadSteps
({ knowledgeBaseId, onComplete, }: DocumentUploadStepsProps)
frontend/src/components/knowledge-base/document-upload-steps.tsx:91
FunctionHome
()
frontend/src/app/page.tsx:3
FunctionKnowledgeBasePage
()
frontend/src/app/dashboard/knowledge/page.tsx:30
FunctionKnowledgeBasePage
()
frontend/src/app/dashboard/knowledge/[id]/page.tsx:19
FunctionLoginPage
()
frontend/src/app/login/page.tsx:13
FunctionNewChatPage
()
frontend/src/app/dashboard/chat/new/page.tsx:17
FunctionNewKnowledgeBasePage
()
frontend/src/app/dashboard/knowledge/new/page.tsx:17
FunctionRegisterPage
()
frontend/src/app/register/page.tsx:8
FunctionRootLayout
({ children, }: { children: React.ReactNode; })
frontend/src/app/layout.tsx:15
FunctionSkeleton
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
frontend/src/components/ui/skeleton.tsx:3
FunctionTestPage
({ params }: { params: { id: string } })
frontend/src/app/dashboard/test-retrieval/[id]/page.tsx:25
FunctionTestWrapper
({ citations }: { citations: any[] })
frontend/src/components/chat/__tests__/answer.test.tsx:112
FunctionThemeProvider
({ children, ...props }: ThemeProviderProps)
frontend/src/components/theme-provider.tsx:7
FunctionToaster
()
frontend/src/components/ui/toaster.tsx:13
FunctionUploadPage
({ params }: { params: { id: string } })
frontend/src/app/dashboard/knowledge/[id]/upload/page.tsx:55
Method__init__
(self, db_url: str)
backend/app/startup/migarate.py:20
Method__init__
(self, kb_id: int)
backend/app/services/chunk_record.py:10
Method__init__
Initialize Chroma vector store
backend/app/services/vector_store/chroma.py:13
next →1–100 of 202, ranked by callers