🔍 Code Extractor

Component not found

Browse Components

Showing 20 of 288 components

  • function index

    Flask route handler that renders the main application page with user session management, authentication checks, and document collection statistics.

    File: /tf/active/vicechatdev/docchat/app.py | Lines: 798-819

    flask web-route session-management authentication main-page
  • function index_v1

    Flask route handler that renders the main landing page containing a form for the meeting minutes application.

    File: /tf/active/vicechatdev/leexi/app.py | Lines: 131-133

    flask web route-handler view-function template-rendering
  • function logout

    Flask route handler that logs out the current user by clearing their session and redirecting them to either the login page or index page based on authentication requirements.

    File: /tf/active/vicechatdev/docchat/app.py | Lines: 781-789

    authentication logout session-management flask-route user-management
  • function azure_callback

    OAuth 2.0 callback endpoint for Azure AD authentication that exchanges authorization codes for access tokens and establishes user sessions.

    File: /tf/active/vicechatdev/docchat/app.py | Lines: 734-777

    oauth authentication azure-ad callback session-management
  • function login

    Flask route handler that renders the login page for user authentication, with support for Azure SSO integration and automatic redirection for authenticated users or when authentication is disabled.

    File: /tf/active/vicechatdev/docchat/app.py | Lines: 714-730

    authentication login flask-route session-management azure-sso
  • function init_engines

    Initializes the RAG (Retrieval-Augmented Generation) engine and document indexer components, loads persisted sessions, and optionally starts background auto-indexing of documents.

    File: /tf/active/vicechatdev/docchat/app.py | Lines: 636-701

    initialization RAG document-indexing background-processing threading
  • function process_chat_background

    Processes chat requests asynchronously in a background thread, managing RAG engine interactions, progress updates, and session state for various query modes including basic, extensive, full_reading, and deep_reflection.

    File: /tf/active/vicechatdev/docchat/app.py | Lines: 517-628

    background-processing async rag chat document-retrieval
  • function get_document_info

    Retrieves indexing status and metadata for a document, including whether it's indexed, its document ID, chunk count, and reindexing status.

    File: /tf/active/vicechatdev/docchat/app.py | Lines: 479-514

    document-management indexing metadata vector-database chromadb
  • function build_document_tree_recursive

    Recursively builds a complete hierarchical tree structure of documents and folders from a target directory path, filtering for supported file types and skipping hidden/cache directories.

    File: /tf/active/vicechatdev/docchat/app.py | Lines: 404-476

    file-system directory-traversal recursive document-management tree-structure
  • function build_document_tree_lazy

    Builds a single-level document tree structure for lazy loading, scanning only immediate children of a target directory without recursively loading subdirectories.

    File: /tf/active/vicechatdev/docchat/app.py | Lines: 325-401

    file-system directory-tree lazy-loading document-management file-browser
  • function save_config_to_file

    Persists current application configuration values from the config module to a .env file, maintaining existing entries and formatting multi-value fields appropriately.

    File: /tf/active/vicechatdev/docchat/app.py | Lines: 284-322

    configuration persistence file-io environment-variables dotenv
  • function update_session_settings

    Updates the settings (model, mode, options) for an existing chat session and persists the changes to disk.

    File: /tf/active/vicechatdev/docchat/app.py | Lines: 274-281

    session-management settings persistence thread-safe chat
  • function clear_session

    Clears all messages from a chat session identified by session_id, resets the session's updated timestamp, and persists the changes to disk in a thread-safe manner.

    File: /tf/active/vicechatdev/docchat/app.py | Lines: 264-271

    session-management chat thread-safe persistence state-management
  • function add_message_to_session

    Adds a message to a chat session with thread-safe locking, storing role, content, timestamp, and optional metadata/references, then persists the session to disk.

    File: /tf/active/vicechatdev/docchat/app.py | Lines: 243-261

    chat session-management thread-safe messaging persistence
  • function get_or_create_session

    Retrieves an existing chat session by ID or creates a new one if it doesn't exist, with thread-safe access and persistent storage support.

    File: /tf/active/vicechatdev/docchat/app.py | Lines: 223-240

    session-management chat thread-safe persistence caching
  • function cleanup_old_tasks

    Removes tasks from the active_tasks dictionary that are older than 1 hour (3600 seconds) based on their creation timestamp.

    File: /tf/active/vicechatdev/docchat/app.py | Lines: 208-220

    cleanup maintenance task-management thread-safe memory-management
  • function get_task_status

    Thread-safe function that retrieves the current status of a task from a shared dictionary using a task identifier.

    File: /tf/active/vicechatdev/docchat/app.py | Lines: 202-205

    threading concurrency task-management status-tracking thread-safe
  • function fail_task

    Marks a task as failed by updating its status, recording the error message, and setting the completion timestamp in a thread-safe manner.

    File: /tf/active/vicechatdev/docchat/app.py | Lines: 193-199

    task-management error-handling thread-safe state-management concurrency
  • function complete_task

    Updates the status of a task to 'completed' in a thread-safe manner, storing the result and completion timestamp.

    File: /tf/active/vicechatdev/docchat/app.py | Lines: 184-190

    task-management threading concurrency state-management thread-safe
  • function update_task_progress

    Thread-safe function that updates the progress and timestamp of an active task identified by task_id in a shared dictionary.

    File: /tf/active/vicechatdev/docchat/app.py | Lines: 176-181

    task-management progress-tracking thread-safe concurrency locking