MCPcopy Create free account

hub / github.com/PromtEngineer/localGPT / functions

Functions452 in github.com/PromtEngineer/localGPT

↓ 1 callersMethod_get_ai_reranker
Initializes a dedicated AI-based reranker.
rag_system/pipelines/retrieval_pipeline.py:135
↓ 1 callersMethod_get_reranker
Initializes the reranker for hybrid search score fusion.
rag_system/pipelines/retrieval_pipeline.py:125
↓ 1 callersMethod_get_sentence_pruner
(self)
rag_system/pipelines/retrieval_pipeline.py:163
↓ 1 callersMethod_get_service_configs
Define service configurations based on mode.
run_system.py:125
↓ 1 callersMethod_get_surrounding_chunks_lancedb
Retrieves a window of chunks around a central chunk using LanceDB.
rag_system/pipelines/retrieval_pipeline.py:170
↓ 1 callersMethod_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 callersMethod_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 callersFunction_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 callersMethod_load_config
Load configuration from file or use default.
create_index_script.py:58
↓ 1 callersMethod_load_config
Load batch indexing configuration from file.
demo_batch_indexing.py:68
↓ 1 callersMethod_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 callersMethod_merge_configurations
Merge batch config with default pipeline config.
demo_batch_indexing.py:82
↓ 1 callersMethod_print_final_statistics
Print final indexing statistics
rag_system/pipelines/indexing_pipeline.py:341
↓ 1 callersMethod_report_progress
Report current progress
rag_system/utils/batch_processor.py:43
↓ 1 callersMethod_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 callersMethod_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 callersMethod_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 callersMethod_run_graph_query
(self, query: str, history: list)
rag_system/agent/loop.py:221
↓ 1 callersMethod_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 callersMethod_split_text
(self, text: str, separators: List[str])
rag_system/ingestion/chunking.py:36
↓ 1 callersMethod_start_ollama
Special handling for Ollama startup.
run_system.py:391
↓ 1 callersMethod_stop_service
Stop a single service.
run_system.py:442
↓ 1 callersMethod_triage_query_async
(self, query: str, history: list)
rag_system/agent/loop.py:171
↓ 1 callersMethodadd_connection
Add a new SSE connection
rag_system/api_server_with_progress.py:35
↓ 1 callersMethodadd_document_to_session
Adds a document file path to a session.
backend/database.py:302
↓ 1 callersMethodbatch_create_from_config
Create index from batch configuration file.
create_index_script.py:260
↓ 1 callersMethodbuildIndex
(indexId: string, opts: { latechunk?: boolean; doclingChunk?: boolean; chunkSize?: number; c
src/lib/api.ts:464
↓ 1 callersMethodbuild_and_store
(self, doc_id: str, chunks: List[Dict[str, Any]])
rag_system/indexing/overview_builder.py:31
↓ 1 callersFunctioncheckBackendHealth
()
src/components/demo.tsx:32
↓ 1 callersMethodcheckHealth
()
src/lib/api.ts:85
↓ 1 callersFunctioncheck_agent_initialization
Test agent initialization
system_health_check.py:56
↓ 1 callersFunctioncheck_configurations
Validate configurations
system_health_check.py:31
↓ 1 callersFunctioncheck_database_access
Test database access
system_health_check.py:93
↓ 1 callersFunctioncheck_embedding_model
Test embedding model
system_health_check.py:69
↓ 1 callersFunctioncheck_imports
Test basic imports
system_health_check.py:20
↓ 1 callersFunctioncheck_pipeline_configurations
Check all pipeline configurations for completeness.
rag_system/utils/validate_model_config.py:154
↓ 1 callersMethodcheck_prerequisites
Check if all required tools are available.
run_system.py:187
↓ 1 callersFunctioncheck_sample_query
Test a sample query if tables exist
system_health_check.py:116
↓ 1 callersMethodchunk
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 callersMethodchunk_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 callersMethodconfigure_processing
Interactive processing configuration.
create_index_script.py:143
↓ 1 callersMethodconvert_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 callersMethodcreateIndex
(name: string, description?: string, metadata: Record<string, unknown> = {})
src/lib/api.ts:440
↓ 1 callersMethodcreate_index_interactive
Run the interactive index creation process.
create_index_script.py:177
↓ 1 callersMethodcreate_indexes
Create multiple indexes based on configuration.
demo_batch_indexing.py:127
↓ 1 callersFunctioncreate_sample_batch_config
Create a sample batch configuration file.
create_index_script.py:314
↓ 1 callersFunctioncreate_sample_config
Create a comprehensive sample configuration file.
demo_batch_indexing.py:254
↓ 1 callersMethodcreate_single_index
Create a single index from configuration.
demo_batch_indexing.py:139
↓ 1 callersMethodcreate_table
(self, table_name: str, schema: pa.Schema, mode: str = "overwrite")
rag_system/indexing/embedders.py:17
↓ 1 callersMethoddecompose
Decompose *query* into standalone sub-queries. Parameters ---------- query : str The latest user message.
rag_system/retrieval/query_transformer.py:10
↓ 1 callersMethoddeleteIndex
(indexId: string)
src/lib/api.ts:535
↓ 1 callersMethoddeleteSession
(sessionId: string)
src/lib/api.ts:240
↓ 1 callersMethoddelete_index
Delete an index and its related records (documents, session links). Returns True if deleted.
backend/database.py:393
↓ 1 callersMethoddelete_session
Delete a session and all its messages
backend/database.py:230
↓ 1 callersMethoddemonstrate_features
Demonstrate various indexing features.
demo_batch_indexing.py:197
↓ 1 callersMethodenrich_chunks
(self, chunks: List[Dict[str, Any]], window_size: int = 1)
rag_system/indexing/contextualizer.py:82
↓ 1 callersMethodextract
(self, chunks: List[Dict[str, Any]])
rag_system/indexing/graph_extractor.py:14
↓ 1 callersMethodextract_text_from_pdf
Extract text from PDF bytes
backend/simple_pdf_processor.py:36
↓ 1 callersMethodfinish
Mark progress as finished and send final update
rag_system/api_server_with_progress.py:116
↓ 1 callersFunctionformatFileSize
(bytes: number)
src/components/ui/chat-input.tsx:129
↓ 1 callersFunctionformatFileSize
(bytes: number)
src/components/ui/empty-chat-state.tsx:160
↓ 1 callersMethodgenerate
Generate embeddings for all chunks using batch processing
rag_system/indexing/representations.py:79
↓ 1 callersMethodgenerate_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 callersMethodgenerate_completion_async
Asynchronous version of generate_completion using httpx.
rag_system/utils/ollama_client.py:88
↓ 1 callersMethodgetSessions
()
src/lib/api.ts:135
↓ 1 callersFunctiongetStatusMessage
()
src/components/SessionIndexInfo.tsx:37
↓ 1 callersMethodget_conversation_history
Get conversation history in the format expected by Ollama
backend/database.py:206
↓ 1 callersFunctionget_indexing_pipeline
Factory function to get an instance of the Indexing Pipeline.
rag_system/factory.py:50
↓ 1 callersFunctionhandleAction
(action: string, messageId: string, messageContent: string)
src/components/ui/conversation-page.tsx:253
↓ 1 callersFunctionhandleDelete
(idxId: string, name: string)
src/components/IndexPicker.tsx:32
↓ 1 callersFunctionhandleDeleteSession
(sessionId: string, event: React.MouseEvent)
src/components/ui/session-sidebar.tsx:71
↓ 1 callersFunctionhandleNewSession
()
src/components/demo.tsx:49
↓ 1 callersFunctionhandleRenameSession
(sessionId: string, event: React.MouseEvent)
src/components/ui/session-sidebar.tsx:92
↓ 1 callersFunctionhandleScroll
()
src/components/ui/conversation-page.tsx:223
↓ 1 callersFunctionhandleSend
()
src/components/ui/empty-chat-state.tsx:91
↓ 1 callersFunctionhandleSubmit
(e: React.FormEvent)
src/components/ui/chat-input.tsx:34
↓ 1 callersMethodhandle_build_index
(self, index_id: str)
backend/server.py:863
↓ 1 callersMethodhandle_chat
Handle legacy chat requests (without sessions)
backend/server.py:135
↓ 1 callersMethodhandle_chat
Handles a chat query by calling the agentic RAG pipeline.
rag_system/api_server.py:145
↓ 1 callersMethodhandle_chat
Handles a chat query by calling the agentic RAG pipeline.
rag_system/api_server_with_progress.py:271
↓ 1 callersMethodhandle_chat_stream
Stream internal phases and final answer using SSE (text/event-stream).
rag_system/api_server.py:304
↓ 1 callersMethodhandle_cleanup_sessions
Clean up empty sessions
backend/server.py:190
↓ 1 callersMethodhandle_create_index
(self)
backend/server.py:801
↓ 1 callersMethodhandle_create_session
Create a new chat session
backend/server.py:245
↓ 1 callersMethodhandle_delete_index
Remove an index, its documents, links, and the underlying LanceDB table.
backend/server.py:1014
↓ 1 callersMethodhandle_delete_session
Delete a session and its messages
backend/server.py:647
↓ 1 callersMethodhandle_file_upload
Handle file uploads, save them, and associate with the session.
backend/server.py:658
↓ 1 callersMethodhandle_get_index
(self, index_id: str)
backend/server.py:791
↓ 1 callersMethodhandle_get_indexes
(self)
backend/server.py:784
↓ 1 callersMethodhandle_get_models
Get available models from both Ollama and HuggingFace, grouped by capability
backend/server.py:746
↓ 1 callersMethodhandle_get_session
Get a specific session with its messages
backend/server.py:203
↓ 1 callersMethodhandle_get_session_documents
Return documents and basic info for a session.
backend/server.py:224
↓ 1 callersMethodhandle_get_session_indexes
(self, session_id: str)
backend/server.py:995
↓ 1 callersMethodhandle_get_sessions
Get all chat sessions
backend/server.py:177
↓ 1 callersMethodhandle_index
Triggers the document indexing pipeline for specific files.
rag_system/api_server.py:501
↓ 1 callersMethodhandle_index_documents
Triggers indexing for all documents in a session.
backend/server.py:698
↓ 1 callersMethodhandle_index_file_upload
Reuse file upload logic but store docs under index.
backend/server.py:842
↓ 1 callersMethodhandle_index_with_progress
Triggers the document indexing pipeline with real-time progress tracking.
rag_system/api_server_with_progress.py:294
↓ 1 callersMethodhandle_link_index_to_session
(self, session_id: str, index_id: str)
backend/server.py:988
↓ 1 callersMethodhandle_models
Return a list of locally installed Ollama models and supported HuggingFace models, grouped by capability.
rag_system/api_server.py:692
← previousnext →101–200 of 452, ranked by callers