Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/rag-web-ui/rag-web-ui
/ functions
Functions
202 in github.com/rag-web-ui/rag-web-ui
⨍
Functions
202
◇
Types & classes
117
↳
Endpoints
40
↓ 51 callers
Function
cn
(...inputs: ClassValue[])
frontend/src/lib/utils.ts:4
↓ 34 callers
Function
toast
({ ...props }: Toast)
frontend/src/components/ui/use-toast.ts:145
↓ 28 callers
Method
create
Create a LLM instance based on the provider
backend/app/services/llm/llm_factory.py:10
↓ 10 callers
Method
delete
Delete documents from Qdrant
backend/app/services/vector_store/qdrant.py:25
↓ 10 callers
Function
useToast
()
frontend/src/components/ui/use-toast.ts:174
↓ 7 callers
Function
get_minio_client
Get a MinIO client instance.
backend/app/core/minio.py:7
↓ 5 callers
Function
dispatch
(action: Action)
frontend/src/components/ui/use-toast.ts:136
↓ 5 callers
Function
fetchApi
(fullUrl: string, options: FetchOptions = {})
frontend/src/lib/api.ts:13
↓ 3 callers
Method
_create_minimax_llm
Helper to create a MiniMax LLM instance.
backend/tests/test_minimax_integration.py:21
↓ 3 callers
Method
run_migrations
Run database migrations if needed Raises: Exception: If migration fails
backend/app/startup/migarate.py:76
↓ 2 callers
Function
addToRemoveQueue
(toastId: string)
frontend/src/components/ui/use-toast.ts:61
↓ 2 callers
Method
add_documents
Add documents to Qdrant
backend/app/services/vector_store/qdrant.py:21
↓ 2 callers
Method
get_api_key
(db: Session, api_key_id: int)
backend/app/services/api_key.py:34
↓ 2 callers
Function
get_url
()
backend/alembic/env.py:35
↓ 2 callers
Function
markdownParse
(text: string)
frontend/src/app/dashboard/chat/[id]/page.tsx:193
↓ 2 callers
Function
preview_document
Step 2: Generate preview chunks
backend/app/services/document_processor.py:183
↓ 2 callers
Method
similarity_search_with_score
Search for similar documents in Qdrant with score
backend/app/services/vector_store/qdrant.py:37
↓ 2 callers
Function
validateEmail
(email: string)
frontend/src/app/register/page.tsx:17
↓ 2 callers
Function
validatePassword
(password: string)
frontend/src/app/register/page.tsx:30
↓ 1 callers
Method
_get_alembic_config
Create and configure Alembic config Returns: Alembic config object
backend/app/startup/migarate.py:64
↓ 1 callers
Method
add_chunks
Add new chunks to the database
backend/app/services/chunk_record.py:26
↓ 1 callers
Method
as_retriever
Return a retriever interface
backend/app/services/vector_store/qdrant.py:29
↓ 1 callers
Method
check_migration_needed
Check if database migration is needed Returns: Tuple containing: - bool: Whether migration is needed
backend/app/startup/migarate.py:42
↓ 1 callers
Function
clean_database
()
backend/clean_db.py:4
↓ 1 callers
Function
copyAPIKey
(id: number, key: string)
frontend/src/app/dashboard/api-keys/page.tsx:166
↓ 1 callers
Method
create_api_key
(db: Session, user_id: int, name: str)
backend/app/services/api_key.py:21
↓ 1 callers
Method
database_connection
Context manager for database connections with timeout Yields: SQLAlchemy connection object
backend/app/startup/migarate.py:25
↓ 1 callers
Function
deleteAPIKey
(id: number)
frontend/src/app/dashboard/api-keys/page.tsx:119
↓ 1 callers
Method
delete_api_key
(db: Session, api_key: APIKey)
backend/app/services/api_key.py:51
↓ 1 callers
Method
delete_chunks
Delete chunks by their IDs
backend/app/services/chunk_record.py:44
↓ 1 callers
Method
delete_collection
Delete the entire collection
backend/app/services/vector_store/qdrant.py:41
↓ 1 callers
Function
dismiss
()
frontend/src/components/ui/use-toast.ts:153
↓ 1 callers
Function
fetchAPIKeys
()
frontend/src/app/dashboard/api-keys/page.tsx:63
↓ 1 callers
Function
fetchChat
()
frontend/src/app/dashboard/chat/[id]/page.tsx:83
↓ 1 callers
Function
fetchChats
()
frontend/src/app/dashboard/chat/page.tsx:34
↓ 1 callers
Function
fetchCitationInfo
()
frontend/src/components/chat/answer.tsx:77
↓ 1 callers
Function
fetchDocuments
()
frontend/src/components/knowledge-base/document-list.tsx:49
↓ 1 callers
Function
fetchKnowledgeBase
()
frontend/src/app/dashboard/test-retrieval/[id]/page.tsx:36
↓ 1 callers
Function
fetchKnowledgeBases
()
frontend/src/app/dashboard/chat/new/page.tsx:31
↓ 1 callers
Function
fetchKnowledgeBases
()
frontend/src/app/dashboard/knowledge/page.tsx:39
↓ 1 callers
Function
fetchStats
()
frontend/src/app/dashboard/page.tsx:39
↓ 1 callers
Function
genId
()
frontend/src/components/ui/use-toast.ts:30
↓ 1 callers
Function
generateBreadcrumbs
()
frontend/src/components/ui/breadcrumb.tsx:10
↓ 1 callers
Function
generate_response
( query: str, messages: dict, knowledge_base_ids: List[int], chat_id: int, db: Session )
backend/app/services/chat_service.py:21
↓ 1 callers
Method
get_api_key_by_key
(db: Session, key: str)
backend/app/services/api_key.py:38
↓ 1 callers
Method
get_api_keys
(db: Session, user_id: int, skip: int = 0, limit: int = 100)
backend/app/services/api_key.py:11
↓ 1 callers
Method
get_deleted_chunks
Get IDs of chunks that no longer exist in the current version
backend/app/services/chunk_record.py:56
↓ 1 callers
Function
handleDelete
(id: number)
frontend/src/app/dashboard/chat/page.tsx:50
↓ 1 callers
Function
handleDelete
(id: number)
frontend/src/app/dashboard/knowledge/page.tsx:57
↓ 1 callers
Function
handleProcess
(uploadResults?: UploadResult[])
frontend/src/components/knowledge-base/document-upload-steps.tsx:237
↓ 1 callers
Function
handleTest
()
frontend/src/app/dashboard/test-retrieval/[id]/page.tsx:55
↓ 1 callers
Function
handleUpload
(file: File)
frontend/src/app/dashboard/knowledge/[id]/upload/page.tsx:92
↓ 1 callers
Function
init_minio
Initialize MinIO by creating the bucket if it doesn't exist.
backend/app/core/minio.py:19
↓ 1 callers
Method
list_chunks
List all chunk hashes for the given file
backend/app/services/chunk_record.py:14
↓ 1 callers
Function
poll
()
frontend/src/components/knowledge-base/document-upload-steps.tsx:287
↓ 1 callers
Function
pollTaskStatus
(taskIds: number[])
frontend/src/components/knowledge-base/document-upload-steps.tsx:286
↓ 1 callers
Function
process_document_background
Process document in background
backend/app/services/document_processor.py:234
↓ 1 callers
Function
reducer
(state: State, action: Action)
frontend/src/components/ui/use-toast.ts:77
↓ 1 callers
Function
removeFile
(file: File)
frontend/src/components/knowledge-base/document-upload-steps.tsx:132
↓ 1 callers
Function
removeFile
(file: File)
frontend/src/app/dashboard/knowledge/[id]/upload/page.tsx:241
↓ 1 callers
Function
response_stream
()
backend/app/api/api_v1/chat.py:117
↓ 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 as w
backend/alembic/env.py:38
↓ 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.
backend/alembic/env.py:62
↓ 1 callers
Function
scrollToBottom
()
frontend/src/app/dashboard/chat/[id]/page.tsx:151
↓ 1 callers
Function
selectKnowledgeBase
(id: number)
frontend/src/app/dashboard/chat/new/page.tsx:82
↓ 1 callers
Function
synchronize_chunks
基于 content_hash + index 的双指针匹配算法,查找需要新增、更新和删除的 chunks。 主要改进: 1. 对同一 content_hash 的旧、新 chunks,分别按 index 排序,再逐个匹配,避免原先直接根据 “两两相同位置”导
backend/diff.py:45
↓ 1 callers
Function
toggleAPIKeyStatus
(id: number, currentStatus: boolean)
frontend/src/app/dashboard/api-keys/page.tsx:140
↓ 1 callers
Method
update_api_key
(db: Session, api_key: APIKey, update_data: APIKeyUpdate)
backend/app/services/api_key.py:42
↓ 1 callers
Method
update_last_used
(db: Session, api_key: APIKey)
backend/app/services/api_key.py:56
↓ 1 callers
Function
useDebouncedValue
(value: T, delay: number)
frontend/src/components/chat/answer.tsx:23
Function
APIKeysPage
()
frontend/src/app/dashboard/api-keys/page.tsx:51
Function
Answer
({ markdown, citations = [] })
frontend/src/components/chat/answer.tsx:62
Function
Badge
({ className, variant, ...props }: BadgeProps)
frontend/src/components/ui/badge.tsx:30
Function
Breadcrumb
()
frontend/src/components/ui/breadcrumb.tsx:7
Function
ChatPage
()
frontend/src/app/dashboard/chat/page.tsx:25
Function
ChatPage
({ params }: { params: { id: string } })
frontend/src/app/dashboard/chat/[id]/page.tsx:45
Function
DashboardLayout
({ children, }: { children: React.ReactNode; })
frontend/src/components/layout/dashboard-layout.tsx:9
Function
DashboardPage
()
frontend/src/app/dashboard/page.tsx:35
Function
DialogFooter
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
frontend/src/components/ui/dialog.tsx:70
Function
DialogHeader
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
frontend/src/components/ui/dialog.tsx:56
Function
Divider
({ className, orientation = "horizontal", })
frontend/src/components/ui/divider.tsx:9
Function
DocumentList
({ knowledgeBaseId }: DocumentListProps)
frontend/src/components/knowledge-base/document-list.tsx:43
Function
DocumentUploadSteps
({ knowledgeBaseId, onComplete, }: DocumentUploadStepsProps)
frontend/src/components/knowledge-base/document-upload-steps.tsx:91
Function
Home
()
frontend/src/app/page.tsx:3
Function
KnowledgeBasePage
()
frontend/src/app/dashboard/knowledge/page.tsx:30
Function
KnowledgeBasePage
()
frontend/src/app/dashboard/knowledge/[id]/page.tsx:19
Function
LoginPage
()
frontend/src/app/login/page.tsx:13
Function
NewChatPage
()
frontend/src/app/dashboard/chat/new/page.tsx:17
Function
NewKnowledgeBasePage
()
frontend/src/app/dashboard/knowledge/new/page.tsx:17
Function
RegisterPage
()
frontend/src/app/register/page.tsx:8
Function
RootLayout
({ children, }: { children: React.ReactNode; })
frontend/src/app/layout.tsx:15
Function
Skeleton
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
frontend/src/components/ui/skeleton.tsx:3
Function
TestPage
({ params }: { params: { id: string } })
frontend/src/app/dashboard/test-retrieval/[id]/page.tsx:25
Function
TestWrapper
({ citations }: { citations: any[] })
frontend/src/components/chat/__tests__/answer.test.tsx:112
Function
ThemeProvider
({ children, ...props }: ThemeProviderProps)
frontend/src/components/theme-provider.tsx:7
Function
Toaster
()
frontend/src/components/ui/toaster.tsx:13
Function
UploadPage
({ 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