Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PromtEngineer/localGPT
/ functions
Functions
452 in github.com/PromtEngineer/localGPT
⨍
Functions
452
◇
Types & classes
88
↓ 1 callers
Method
handle_progress_status
Handle GET requests for current progress status
rag_system/api_server_with_progress.py:340
↓ 1 callers
Method
handle_progress_stream
Handle Server-Sent Events stream for real-time progress
rag_system/api_server_with_progress.py:360
↓ 1 callers
Method
handle_rename_session
Rename an existing session title
backend/server.py:1025
↓ 1 callers
Method
handle_session_chat
Handle chat within a specific session. Intelligently routes between direct LLM (fast) and RAG pipeline (document-aware).
backend/server.py:272
↓ 1 callers
Method
indexDocuments
(sessionId: string)
src/lib/api.ts:322
↓ 1 callers
Method
init_database
Initialize the SQLite database with required tables
backend/database.py:20
↓ 1 callers
Method
init_database
Initialize SQLite database for storing PDF content
backend/simple_pdf_processor.py:20
↓ 1 callers
Function
initialize_simple_pdf_processor
Initialize the global PDF processor
backend/simple_pdf_processor.py:192
↓ 1 callers
Method
inspect_and_populate_index_metadata
Inspect LanceDB table to extract metadata for older indexes. Returns the inferred metadata or empty dict if inspection fails.
backend/database.py:443
↓ 1 callers
Method
link_index_to_session
(self, session_id: str, index_id: str)
backend/database.py:380
↓ 1 callers
Method
listIndexes
()
src/lib/api.ts:521
↓ 1 callers
Method
list_indexes
(self)
backend/database.py:358
↓ 1 callers
Function
log_retrieval_results
Show chunk_id, truncated text and score for the first *k* rows.
rag_system/utils/logging_utils.py:26
↓ 1 callers
Function
main
Run complete system health check
system_health_check.py:146
↓ 1 callers
Function
main
Main entry point for the script.
create_index_script.py:342
↓ 1 callers
Function
main
Main entry point for the demo script.
demo_batch_indexing.py:333
↓ 1 callers
Function
main
Main entry point.
run_system.py:491
↓ 1 callers
Function
main
Main function to initialize and start the server
backend/server.py:1082
↓ 1 callers
Function
main
()
backend/test_backend.py:124
↓ 1 callers
Function
main
Test the Ollama client
backend/ollama_client.py:169
↓ 1 callers
Function
main
Run all validation checks.
rag_system/utils/validate_model_config.py:179
↓ 1 callers
Method
messagesToHistory
(messages: ChatMessage[])
src/lib/api.ts:125
↓ 1 callers
Function
print_model_usage_map
Print a comprehensive map of which models are used where.
rag_system/utils/validate_model_config.py:90
↓ 1 callers
Method
process_and_index
( self, pdf_path: str, text_table_name: str, image_table_name: str )
rag_system/indexing/multimodal.py:46
↓ 1 callers
Method
prune_documents
Return *docs* with their `text` field pruned sentence-wise. If the model could not be initialised we simply echo the input.
rag_system/rerankers/sentence_pruner.py:58
↓ 1 callers
Method
pull_model
Pull a model if not available
backend/ollama_client.py:33
↓ 1 callers
Function
removeFile
(fileId: string)
src/components/ui/chat-input.tsx:125
↓ 1 callers
Method
renameSession
(sessionId: string, newTitle: string)
src/lib/api.ts:258
↓ 1 callers
Function
renderOption
(opt: SettingOption)
src/components/ui/chat-settings-modal.tsx:56
↓ 1 callers
Method
run
Processes and indexes documents based on the pipeline's configuration. Accepts legacy keyword *documents* as an alias for *file_paths
rag_system/pipelines/indexing_pipeline.py:131
↓ 1 callers
Function
run_api_server
Starts the advanced RAG API server.
rag_system/main.py:313
↓ 1 callers
Function
run_chat
Runs the agentic RAG pipeline for a given query. Returns the result as a JSON string.
rag_system/main.py:264
↓ 1 callers
Method
run_demo
Run the complete batch indexing demo.
demo_batch_indexing.py:220
↓ 1 callers
Function
run_indexing_with_progress
Enhanced indexing function with real-time progress tracking
rag_system/api_server_with_progress.py:145
↓ 1 callers
Function
scrollToBottom
()
src/components/ui/conversation-page.tsx:236
↓ 1 callers
Method
select_documents
Interactive document selection.
create_index_script.py:77
↓ 1 callers
Function
sendMessage
(content: string, attachedFiles?: AttachedFile[])
src/components/ui/session-chat.tsx:131
↓ 1 callers
Method
sendMessage
(request: ChatRequest)
src/lib/api.ts:98
↓ 1 callers
Method
sendSessionMessage
( sessionId: string, message: string, opts: { model?: string; composeSubAnswers?: bo
src/lib/api.ts:183
↓ 1 callers
Method
setup_logging
Setup centralized logging with colors.
run_system.py:107
↓ 1 callers
Function
show_graph
Loads and displays the knowledge graph.
rag_system/main.py:283
↓ 1 callers
Method
start_all
Start all services in order.
run_system.py:346
↓ 1 callers
Method
streamSessionMessage
( params: { query: string; model?: string; session_id?: string; table_name?: strin
src/lib/api.ts:547
↓ 1 callers
Function
test_chat_endpoint
Test the chat endpoint
backend/test_backend.py:26
↓ 1 callers
Function
test_conversation_history
Test conversation with history
backend/test_backend.py:59
↓ 1 callers
Function
test_health_endpoint
Test the health endpoint
backend/test_backend.py:8
↓ 1 callers
Method
test_index
Test the created index with a sample query.
create_index_script.py:239
↓ 1 callers
Function
test_ollama_connectivity
Test Ollama connectivity from within Docker container
backend/test_ollama_connectivity.py:6
↓ 1 callers
Function
test_validation_function
Test the built-in validation function.
rag_system/utils/validate_model_config.py:138
↓ 1 callers
Method
translate
(self, query: str)
rag_system/retrieval/query_transformer.py:321
↓ 1 callers
Function
truncateTitle
(title: string, maxLength: number = 25)
src/components/ui/session-sidebar.tsx:128
↓ 1 callers
Method
update_embedding_model
Switch embedding model at runtime and clear cached objects so they re-initialize.
rag_system/pipelines/retrieval_pipeline.py:565
↓ 1 callers
Method
uploadFiles
(sessionId: string, files: File[])
src/lib/api.ts:296
↓ 1 callers
Method
uploadFilesToIndex
(indexId: string, files: File[])
src/lib/api.ts:453
↓ 1 callers
Function
useAutoResizeTextarea
({ minHeight, maxHeight, }: UseAutoResizeTextareaProps)
src/components/ui/localgpt-chat.tsx:18
↓ 1 callers
Function
useAutoResizeTextarea
({ minHeight, maxHeight, }: UseAutoResizeTextareaProps)
src/components/ui/empty-chat-state.tsx:21
↓ 1 callers
Function
validate_configuration_consistency
Validate that all configurations are consistent.
rag_system/utils/validate_model_config.py:39
↓ 1 callers
Method
validate_documents
Validate and filter document paths.
demo_batch_indexing.py:102
↓ 1 callers
Method
verify_async
Async variant that calls the Ollama client asynchronously.
rag_system/agent/verifier.py:23
Function
AccordionGroup
({ title, children, defaultOpen }: Props)
src/components/ui/AccordionGroup.tsx:10
Function
Avatar
({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Root>)
src/components/ui/avatar.tsx:8
Function
AvatarFallback
({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Fallback>)
src/components/ui/avatar.tsx:37
Function
AvatarImage
({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Image>)
src/components/ui/avatar.tsx:24
Function
Badge
({ className, variant, asChild = false, ...props }: React.ComponentProps<"span"> & VariantProps<type
src/components/ui/badge.tsx:28
Function
Button
({ className, variant, size, asChild = false, ...props }: React.ComponentProps<"button"> & Variant
src/components/ui/button.tsx:38
Function
ChatBubble
({ variant = "received", layout = "default", // eslint-disable-line @typescript-eslint/no-unused-vars cl
src/components/ui/chat-bubble.tsx:16
Function
ChatBubbleAction
({ icon, onClick, className, }: ChatBubbleActionProps)
src/components/ui/chat-bubble.tsx:92
Function
ChatBubbleActionWrapper
({ className, children, }: { className?: string children: React.ReactNode })
src/components/ui/chat-bubble.tsx:109
Function
ChatBubbleAiLayout
()
src/components/ui/chat-bubble-demo.tsx:48
Function
ChatBubbleAvatar
({ src, fallback = "AI", className, }: ChatBubbleAvatarProps)
src/components/ui/chat-bubble.tsx:73
Function
ChatBubbleMessage
({ variant = "received", isLoading, className, children, }: ChatBubbleMessageProps)
src/components/ui/chat-bubble.tsx:42
Function
ChatBubbleStates
()
src/components/ui/chat-bubble-demo.tsx:87
Function
ChatBubbleVariants
()
src/components/ui/chat-bubble-demo.tsx:28
Function
ChatInput
({ onSendMessage, disabled = false, placeholder = "Message localGPT...", className = "", onOpenSet
src/components/ui/chat-input.tsx:19
Function
ChatSettingsModal
({ options, onClose }: Props)
src/components/ui/chat-settings-modal.tsx:55
Function
Citation
({doc, idx}: {doc:any, idx:number})
src/components/ui/conversation-page.tsx:32
Function
CitationsBlock
({docs}:{docs:any[]})
src/components/ui/conversation-page.tsx:43
Function
ConversationPage
({ messages, isLoading = false, className = "", onAction }: ConversationPageProps)
src/components/ui/conversation-page.tsx:200
Function
Demo
()
src/components/demo.tsx:14
Function
DropdownMenu
({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>)
src/components/ui/dropdown-menu.tsx:9
Function
DropdownMenuCheckboxItem
({ className, children, checked, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Checkbo
src/components/ui/dropdown-menu.tsx:85
Function
DropdownMenuContent
({ className, sideOffset = 4, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Content>)
src/components/ui/dropdown-menu.tsx:34
Function
DropdownMenuGroup
({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Group>)
src/components/ui/dropdown-menu.tsx:54
Function
DropdownMenuItem
({ className, inset, variant = "default", ...props }: React.ComponentProps<typeof DropdownMenuPrimitiv
src/components/ui/dropdown-menu.tsx:62
Function
DropdownMenuLabel
({ className, inset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Label> & { inset?:
src/components/ui/dropdown-menu.tsx:146
Function
DropdownMenuPortal
({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>)
src/components/ui/dropdown-menu.tsx:15
Function
DropdownMenuRadioGroup
({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>)
src/components/ui/dropdown-menu.tsx:111
Function
DropdownMenuRadioItem
({ className, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>)
src/components/ui/dropdown-menu.tsx:122
Function
DropdownMenuSeparator
({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>)
src/components/ui/dropdown-menu.tsx:166
Function
DropdownMenuShortcut
({ className, ...props }: React.ComponentProps<"span">)
src/components/ui/dropdown-menu.tsx:179
Function
DropdownMenuSub
({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>)
src/components/ui/dropdown-menu.tsx:195
Function
DropdownMenuSubContent
({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>)
src/components/ui/dropdown-menu.tsx:225
Function
DropdownMenuSubTrigger
({ className, inset, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigge
src/components/ui/dropdown-menu.tsx:201
Function
DropdownMenuTrigger
({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>)
src/components/ui/dropdown-menu.tsx:23
Function
EmptyChatState
({ onSendMessage, disabled = false, placeholder = "Ask localgpt a question..." }: EmptyChatSta
src/components/ui/empty-chat-state.tsx:78
Function
GlassInput
(props: InputHTMLAttributes<HTMLInputElement>)
src/components/ui/GlassInput.tsx:4
Function
GlassSelect
(props: SelectHTMLAttributes<HTMLSelectElement>)
src/components/ui/GlassSelect.tsx:4
Function
GlassToggle
({ checked, onChange }: Props)
src/components/ui/GlassToggle.tsx:9
Function
Home
()
src/app/page.tsx:3
Function
IndexForm
({ onClose, onIndexed }: Props)
src/components/IndexForm.tsx:15
← previous
next →
201–300 of 452, ranked by callers