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
Method
flush_buffer
()
rag_system/ingestion/docling_chunker.py:136
Method
flush_paragraph_buffer
()
rag_system/ingestion/docling_chunker.py:207
Function
formatDate
(dateString: string)
src/components/ui/session-sidebar.tsx:114
Method
generate_completion_async
Asynchronous version of generate_completion. Note: IBM Watson X SDK may not have native async support, so this is a
rag_system/utils/watsonx_client.py:149
Method
generate_embedding
Generate embeddings using Watson X embedding models. Note: This requires using Watson X embedding models through the embeddings API.
rag_system/utils/watsonx_client.py:61
Method
generate_embedding
(self, model: str, text: str)
rag_system/utils/ollama_client.py:24
Method
getSessionDocuments
(sessionId: string)
src/lib/api.ts:430
Function
get_agent
Factory function to get an instance of the RAG agent based on the specified mode. This uses local imports to prevent circular dependencies.
rag_system/factory.py:3
Method
get_document_content
Get all document content for a session (for LLM context)
backend/simple_pdf_processor.py:136
Method
get_session_documents
Get all documents for a session
backend/simple_pdf_processor.py:114
Function
get_simple_pdf_processor
Get the global PDF processor instance
backend/simple_pdf_processor.py:202
Function
handleAction
(action: string, messageId: string, messageContent: string | Record<string, any>[] | { steps: Step[] })
src/components/ui/session-chat.tsx:535
Function
handleFile
(e: React.ChangeEvent<HTMLInputElement>)
src/components/IndexWizard.tsx:16
Function
handleFileAttach
()
src/components/ui/chat-input.tsx:74
Function
handleFileAttach
()
src/components/ui/empty-chat-state.tsx:107
Function
handleFileChange
(e: React.ChangeEvent<HTMLInputElement>)
src/components/ui/chat-input.tsx:78
Function
handleFileChange
(e: React.ChangeEvent<HTMLInputElement>)
src/components/ui/empty-chat-state.tsx:111
Function
handleIndexDocuments
()
src/components/ui/session-chat.tsx:500
Function
handleInput
(e: React.ChangeEvent<HTMLTextAreaElement>)
src/components/ui/chat-input.tsx:63
Function
handleKeyDown
(e: React.KeyboardEvent<HTMLTextAreaElement>)
src/components/ui/localgpt-chat.tsx:76
Function
handleKeyDown
(e: React.KeyboardEvent)
src/components/ui/chat-input.tsx:56
Function
handleKeyDown
(e: React.KeyboardEvent<HTMLTextAreaElement>)
src/components/ui/empty-chat-state.tsx:100
Function
handleNewSession
()
src/components/ui/session-sidebar.tsx:54
Function
handleOutside
(e: MouseEvent)
src/components/IndexPicker.tsx:44
Function
handleResize
()
src/components/ui/localgpt-chat.tsx:61
Function
handleResize
()
src/components/ui/empty-chat-state.tsx:64
Function
handleSessionChange
(session: ChatSession)
src/components/demo.tsx:57
Function
handleSessionDelete
(deletedSessionId: string)
src/components/demo.tsx:71
Function
handleStartConversation
()
src/components/demo.tsx:79
Function
handleSubmit
()
src/components/IndexForm.tsx:33
Method
handle_pdf_upload
Processes PDF files: extracts text and stores it in the database. DEPRECATED: This is the old method. Use handle_file_upload instead.
backend/server.py:733
Function
hasExcessiveWhitespace
(text: string)
src/utils/textNormalization.ts:45
Method
health_check
Perform health check on a service.
run_system.py:337
Method
list_document_titles
Return up to *max_items* distinct document titles (or IDs). This is used only for prompt-routing, so we favour robustness over perfec
rag_system/pipelines/retrieval_pipeline.py:515
Method
log_message
Custom log format
backend/server.py:1078
Function
log_query
Emit a nicely-formatted block describing the incoming query and any decomposition.
rag_system/utils/logging_utils.py:15
Function
main
()
rag_system/main.py:318
Method
make_cb
(idx: int)
rag_system/agent/loop.py:445
Method
process_chunk_batch
Process a batch of chunk indices for contextual enrichment
rag_system/indexing/contextualizer.py:98
Method
process_pdf
Process a PDF file and store in database
backend/simple_pdf_processor.py:66
Method
process_streaming
Process items one at a time with minimal memory footprint Args: items: List of items to process proc
rag_system/utils/batch_processor.py:141
Method
process_text_batch
(text_batch)
rag_system/indexing/representations.py:92
Function
removeFile
(fileId: string)
src/components/ui/empty-chat-state.tsx:156
Function
renderOptionOrdered
(label: string)
src/components/ui/chat-settings-modal.tsx:139
Method
retrieve
Performs a search on a single LanceDB table. If a reranker is provided, it performs a hybrid search. Otherwise, it performs a
rag_system/retrieval/retrievers.py:72
Method
retriever
Lazily exposes the main (dense) retriever so external components like the ReAct agent tools can call `.retrieve()` directly without re
rag_system/pipelines/retrieval_pipeline.py:558
Method
run
(self, query: str, table_name: str = None, window_size_override: Optional[int] = None, event_callback=None)
rag_system/pipelines/retrieval_pipeline.py:259
Method
run_indexing_thread
()
rag_system/api_server_with_progress.py:317
Function
sendMessage
(content: string, _files?: any)
src/components/ui/quick-chat.tsx:58
Function
start_enhanced_server
Start the enhanced API server with a reusable TCP socket.
rag_system/api_server_with_progress.py:413
Method
stream_completion
Generator that yields partial response strings as they arrive. Note: Watson X streaming support depends on the SDK version a
rag_system/utils/watsonx_client.py:177
Method
uploadPDFs
(sessionId: string, files: File[])
src/lib/api.ts:343
← previous
401–452 of 452, ranked by callers