MCPcopy Create free account

hub / github.com/PromtEngineer/localGPT / functions

Functions452 in github.com/PromtEngineer/localGPT

Methodflush_buffer
()
rag_system/ingestion/docling_chunker.py:136
Methodflush_paragraph_buffer
()
rag_system/ingestion/docling_chunker.py:207
FunctionformatDate
(dateString: string)
src/components/ui/session-sidebar.tsx:114
Methodgenerate_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
Methodgenerate_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
Methodgenerate_embedding
(self, model: str, text: str)
rag_system/utils/ollama_client.py:24
MethodgetSessionDocuments
(sessionId: string)
src/lib/api.ts:430
Functionget_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
Methodget_document_content
Get all document content for a session (for LLM context)
backend/simple_pdf_processor.py:136
Methodget_session_documents
Get all documents for a session
backend/simple_pdf_processor.py:114
Functionget_simple_pdf_processor
Get the global PDF processor instance
backend/simple_pdf_processor.py:202
FunctionhandleAction
(action: string, messageId: string, messageContent: string | Record<string, any>[] | { steps: Step[] })
src/components/ui/session-chat.tsx:535
FunctionhandleFile
(e: React.ChangeEvent<HTMLInputElement>)
src/components/IndexWizard.tsx:16
FunctionhandleFileAttach
()
src/components/ui/chat-input.tsx:74
FunctionhandleFileAttach
()
src/components/ui/empty-chat-state.tsx:107
FunctionhandleFileChange
(e: React.ChangeEvent<HTMLInputElement>)
src/components/ui/chat-input.tsx:78
FunctionhandleFileChange
(e: React.ChangeEvent<HTMLInputElement>)
src/components/ui/empty-chat-state.tsx:111
FunctionhandleIndexDocuments
()
src/components/ui/session-chat.tsx:500
FunctionhandleInput
(e: React.ChangeEvent<HTMLTextAreaElement>)
src/components/ui/chat-input.tsx:63
FunctionhandleKeyDown
(e: React.KeyboardEvent<HTMLTextAreaElement>)
src/components/ui/localgpt-chat.tsx:76
FunctionhandleKeyDown
(e: React.KeyboardEvent)
src/components/ui/chat-input.tsx:56
FunctionhandleKeyDown
(e: React.KeyboardEvent<HTMLTextAreaElement>)
src/components/ui/empty-chat-state.tsx:100
FunctionhandleNewSession
()
src/components/ui/session-sidebar.tsx:54
FunctionhandleOutside
(e: MouseEvent)
src/components/IndexPicker.tsx:44
FunctionhandleResize
()
src/components/ui/localgpt-chat.tsx:61
FunctionhandleResize
()
src/components/ui/empty-chat-state.tsx:64
FunctionhandleSessionChange
(session: ChatSession)
src/components/demo.tsx:57
FunctionhandleSessionDelete
(deletedSessionId: string)
src/components/demo.tsx:71
FunctionhandleStartConversation
()
src/components/demo.tsx:79
FunctionhandleSubmit
()
src/components/IndexForm.tsx:33
Methodhandle_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
FunctionhasExcessiveWhitespace
(text: string)
src/utils/textNormalization.ts:45
Methodhealth_check
Perform health check on a service.
run_system.py:337
Methodlist_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
Methodlog_message
Custom log format
backend/server.py:1078
Functionlog_query
Emit a nicely-formatted block describing the incoming query and any decomposition.
rag_system/utils/logging_utils.py:15
Functionmain
()
rag_system/main.py:318
Methodmake_cb
(idx: int)
rag_system/agent/loop.py:445
Methodprocess_chunk_batch
Process a batch of chunk indices for contextual enrichment
rag_system/indexing/contextualizer.py:98
Methodprocess_pdf
Process a PDF file and store in database
backend/simple_pdf_processor.py:66
Methodprocess_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
Methodprocess_text_batch
(text_batch)
rag_system/indexing/representations.py:92
FunctionremoveFile
(fileId: string)
src/components/ui/empty-chat-state.tsx:156
FunctionrenderOptionOrdered
(label: string)
src/components/ui/chat-settings-modal.tsx:139
Methodretrieve
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
Methodretriever
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
Methodrun
(self, query: str, table_name: str = None, window_size_override: Optional[int] = None, event_callback=None)
rag_system/pipelines/retrieval_pipeline.py:259
Methodrun_indexing_thread
()
rag_system/api_server_with_progress.py:317
FunctionsendMessage
(content: string, _files?: any)
src/components/ui/quick-chat.tsx:58
Functionstart_enhanced_server
Start the enhanced API server with a reusable TCP socket.
rag_system/api_server_with_progress.py:413
Methodstream_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
MethoduploadPDFs
(sessionId: string, files: File[])
src/lib/api.ts:343
← previous401–452 of 452, ranked by callers