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
_get_ai_reranker
Initializes a dedicated AI-based reranker.
rag_system/pipelines/retrieval_pipeline.py:135
↓ 1 callers
Method
_get_reranker
Initializes the reranker for hybrid search score fusion.
rag_system/pipelines/retrieval_pipeline.py:125
↓ 1 callers
Method
_get_sentence_pruner
(self)
rag_system/pipelines/retrieval_pipeline.py:163
↓ 1 callers
Method
_get_service_configs
Define service configurations based on mode.
run_system.py:125
↓ 1 callers
Method
_get_surrounding_chunks_lancedb
Retrieves a window of chunks around a central chunk using LanceDB.
rag_system/pipelines/retrieval_pipeline.py:170
↓ 1 callers
Method
_handle_direct_llm_query
Handle query using direct Ollama client with thinking disabled for speed. Returns: tuple: (response_text, empty_
backend/server.py:554
↓ 1 callers
Method
_handle_rag_query
Handle query using the full RAG pipeline (delegates to the advanced RAG API running on port 8001). Returns: tuple[str, L
backend/server.py:582
↓ 1 callers
Function
_hf_auto_login
Attempt to authenticate with Hugging Face Hub using an env token. We support both the new canonical env var name (HF_TOKEN) and the two histo
rag_system/__init__.py:33
↓ 1 callers
Method
_load_config
Load configuration from file or use default.
create_index_script.py:58
↓ 1 callers
Method
_load_config
Load batch indexing configuration from file.
demo_batch_indexing.py:68
↓ 1 callers
Method
_load_document_overviews
Load and aggregate overviews for the given index IDs. Strategy: 1. Attempt to load each index's dedicated overview file.
backend/server.py:368
↓ 1 callers
Method
_merge_configurations
Merge batch config with default pipeline config.
demo_batch_indexing.py:82
↓ 1 callers
Method
_print_final_statistics
Print final indexing statistics
rag_system/pipelines/indexing_pipeline.py:341
↓ 1 callers
Method
_report_progress
Report current progress
rag_system/utils/batch_processor.py:43
↓ 1 callers
Method
_route_using_overviews
🎯 Use document overviews and LLM to make intelligent routing decisions. Returns True if RAG should be used, False for direct
backend/server.py:440
↓ 1 callers
Method
_route_via_overviews
Use document overviews and a small model to decide routing. Returns 'rag_query', 'direct_answer', or None if unsure/disabled.
rag_system/agent/loop.py:639
↓ 1 callers
Method
_run_async
(self, query: str, table_name: str = None, session_id: str = None, compose_sub_answers: Optional[bool] = None,
rag_system/agent/loop.py:260
↓ 1 callers
Method
_run_graph_query
(self, query: str, history: list)
rag_system/agent/loop.py:221
↓ 1 callers
Method
_should_use_rag
🧠 ENHANCED: Determine if a query should use RAG pipeline using document overviews. Args: message: The user's que
backend/server.py:342
↓ 1 callers
Method
_split_text
(self, text: str, separators: List[str])
rag_system/ingestion/chunking.py:36
↓ 1 callers
Method
_start_ollama
Special handling for Ollama startup.
run_system.py:391
↓ 1 callers
Method
_stop_service
Stop a single service.
run_system.py:442
↓ 1 callers
Method
_triage_query_async
(self, query: str, history: list)
rag_system/agent/loop.py:171
↓ 1 callers
Method
add_connection
Add a new SSE connection
rag_system/api_server_with_progress.py:35
↓ 1 callers
Method
add_document_to_session
Adds a document file path to a session.
backend/database.py:302
↓ 1 callers
Method
batch_create_from_config
Create index from batch configuration file.
create_index_script.py:260
↓ 1 callers
Method
buildIndex
(indexId: string, opts: { latechunk?: boolean; doclingChunk?: boolean; chunkSize?: number; c
src/lib/api.ts:464
↓ 1 callers
Method
build_and_store
(self, doc_id: str, chunks: List[Dict[str, Any]])
rag_system/indexing/overview_builder.py:31
↓ 1 callers
Function
checkBackendHealth
()
src/components/demo.tsx:32
↓ 1 callers
Method
checkHealth
()
src/lib/api.ts:85
↓ 1 callers
Function
check_agent_initialization
Test agent initialization
system_health_check.py:56
↓ 1 callers
Function
check_configurations
Validate configurations
system_health_check.py:31
↓ 1 callers
Function
check_database_access
Test database access
system_health_check.py:93
↓ 1 callers
Function
check_embedding_model
Test embedding model
system_health_check.py:69
↓ 1 callers
Function
check_imports
Test basic imports
system_health_check.py:20
↓ 1 callers
Function
check_pipeline_configurations
Check all pipeline configurations for completeness.
rag_system/utils/validate_model_config.py:154
↓ 1 callers
Method
check_prerequisites
Check if all required tools are available.
run_system.py:187
↓ 1 callers
Function
check_sample_query
Test a sample query if tables exist
system_health_check.py:116
↓ 1 callers
Method
chunk
Chunks the Markdown text and injects metadata. Args: text: The Markdown text to chunk. document_id: The iden
rag_system/ingestion/chunking.py:80
↓ 1 callers
Method
chunk_document
Walk a DoclingDocument and emit chunks. Tables / Code / Figures are emitted as atomic chunks. Paragraph-like nodes are sentence-packe
rag_system/ingestion/docling_chunker.py:88
↓ 1 callers
Method
configure_processing
Interactive processing configuration.
create_index_script.py:143
↓ 1 callers
Method
convert_to_markdown
Converts a document to a single Markdown string, preserving layout and tables. Supports PDF, DOCX, HTML, and other formats.
rag_system/ingestion/document_converter.py:54
↓ 1 callers
Method
createIndex
(name: string, description?: string, metadata: Record<string, unknown> = {})
src/lib/api.ts:440
↓ 1 callers
Method
create_index_interactive
Run the interactive index creation process.
create_index_script.py:177
↓ 1 callers
Method
create_indexes
Create multiple indexes based on configuration.
demo_batch_indexing.py:127
↓ 1 callers
Function
create_sample_batch_config
Create a sample batch configuration file.
create_index_script.py:314
↓ 1 callers
Function
create_sample_config
Create a comprehensive sample configuration file.
demo_batch_indexing.py:254
↓ 1 callers
Method
create_single_index
Create a single index from configuration.
demo_batch_indexing.py:139
↓ 1 callers
Method
create_table
(self, table_name: str, schema: pa.Schema, mode: str = "overwrite")
rag_system/indexing/embedders.py:17
↓ 1 callers
Method
decompose
Decompose *query* into standalone sub-queries. Parameters ---------- query : str The latest user message.
rag_system/retrieval/query_transformer.py:10
↓ 1 callers
Method
deleteIndex
(indexId: string)
src/lib/api.ts:535
↓ 1 callers
Method
deleteSession
(sessionId: string)
src/lib/api.ts:240
↓ 1 callers
Method
delete_index
Delete an index and its related records (documents, session links). Returns True if deleted.
backend/database.py:393
↓ 1 callers
Method
delete_session
Delete a session and all its messages
backend/database.py:230
↓ 1 callers
Method
demonstrate_features
Demonstrate various indexing features.
demo_batch_indexing.py:197
↓ 1 callers
Method
enrich_chunks
(self, chunks: List[Dict[str, Any]], window_size: int = 1)
rag_system/indexing/contextualizer.py:82
↓ 1 callers
Method
extract
(self, chunks: List[Dict[str, Any]])
rag_system/indexing/graph_extractor.py:14
↓ 1 callers
Method
extract_text_from_pdf
Extract text from PDF bytes
backend/simple_pdf_processor.py:36
↓ 1 callers
Method
finish
Mark progress as finished and send final update
rag_system/api_server_with_progress.py:116
↓ 1 callers
Function
formatFileSize
(bytes: number)
src/components/ui/chat-input.tsx:129
↓ 1 callers
Function
formatFileSize
(bytes: number)
src/components/ui/empty-chat-state.tsx:160
↓ 1 callers
Method
generate
Generate embeddings for all chunks using batch processing
rag_system/indexing/representations.py:79
↓ 1 callers
Method
generate_completion
Generates a completion using Watson X foundation models. Args: model: The name/ID of the Watson X model (e.g., '
rag_system/utils/watsonx_client.py:82
↓ 1 callers
Method
generate_completion_async
Asynchronous version of generate_completion using httpx.
rag_system/utils/ollama_client.py:88
↓ 1 callers
Method
getSessions
()
src/lib/api.ts:135
↓ 1 callers
Function
getStatusMessage
()
src/components/SessionIndexInfo.tsx:37
↓ 1 callers
Method
get_conversation_history
Get conversation history in the format expected by Ollama
backend/database.py:206
↓ 1 callers
Function
get_indexing_pipeline
Factory function to get an instance of the Indexing Pipeline.
rag_system/factory.py:50
↓ 1 callers
Function
handleAction
(action: string, messageId: string, messageContent: string)
src/components/ui/conversation-page.tsx:253
↓ 1 callers
Function
handleDelete
(idxId: string, name: string)
src/components/IndexPicker.tsx:32
↓ 1 callers
Function
handleDeleteSession
(sessionId: string, event: React.MouseEvent)
src/components/ui/session-sidebar.tsx:71
↓ 1 callers
Function
handleNewSession
()
src/components/demo.tsx:49
↓ 1 callers
Function
handleRenameSession
(sessionId: string, event: React.MouseEvent)
src/components/ui/session-sidebar.tsx:92
↓ 1 callers
Function
handleScroll
()
src/components/ui/conversation-page.tsx:223
↓ 1 callers
Function
handleSend
()
src/components/ui/empty-chat-state.tsx:91
↓ 1 callers
Function
handleSubmit
(e: React.FormEvent)
src/components/ui/chat-input.tsx:34
↓ 1 callers
Method
handle_build_index
(self, index_id: str)
backend/server.py:863
↓ 1 callers
Method
handle_chat
Handle legacy chat requests (without sessions)
backend/server.py:135
↓ 1 callers
Method
handle_chat
Handles a chat query by calling the agentic RAG pipeline.
rag_system/api_server.py:145
↓ 1 callers
Method
handle_chat
Handles a chat query by calling the agentic RAG pipeline.
rag_system/api_server_with_progress.py:271
↓ 1 callers
Method
handle_chat_stream
Stream internal phases and final answer using SSE (text/event-stream).
rag_system/api_server.py:304
↓ 1 callers
Method
handle_cleanup_sessions
Clean up empty sessions
backend/server.py:190
↓ 1 callers
Method
handle_create_index
(self)
backend/server.py:801
↓ 1 callers
Method
handle_create_session
Create a new chat session
backend/server.py:245
↓ 1 callers
Method
handle_delete_index
Remove an index, its documents, links, and the underlying LanceDB table.
backend/server.py:1014
↓ 1 callers
Method
handle_delete_session
Delete a session and its messages
backend/server.py:647
↓ 1 callers
Method
handle_file_upload
Handle file uploads, save them, and associate with the session.
backend/server.py:658
↓ 1 callers
Method
handle_get_index
(self, index_id: str)
backend/server.py:791
↓ 1 callers
Method
handle_get_indexes
(self)
backend/server.py:784
↓ 1 callers
Method
handle_get_models
Get available models from both Ollama and HuggingFace, grouped by capability
backend/server.py:746
↓ 1 callers
Method
handle_get_session
Get a specific session with its messages
backend/server.py:203
↓ 1 callers
Method
handle_get_session_documents
Return documents and basic info for a session.
backend/server.py:224
↓ 1 callers
Method
handle_get_session_indexes
(self, session_id: str)
backend/server.py:995
↓ 1 callers
Method
handle_get_sessions
Get all chat sessions
backend/server.py:177
↓ 1 callers
Method
handle_index
Triggers the document indexing pipeline for specific files.
rag_system/api_server.py:501
↓ 1 callers
Method
handle_index_documents
Triggers indexing for all documents in a session.
backend/server.py:698
↓ 1 callers
Method
handle_index_file_upload
Reuse file upload logic but store docs under index.
backend/server.py:842
↓ 1 callers
Method
handle_index_with_progress
Triggers the document indexing pipeline with real-time progress tracking.
rag_system/api_server_with_progress.py:294
↓ 1 callers
Method
handle_link_index_to_session
(self, session_id: str, index_id: str)
backend/server.py:988
↓ 1 callers
Method
handle_models
Return a list of locally installed Ollama models and supported HuggingFace models, grouped by capability.
rag_system/api_server.py:692
← previous
next →
101–200 of 452, ranked by callers