🔍 Code Extractor

Browse Components

Showing 20 of 434 components

  • function get_stats

    Flask API endpoint that retrieves and returns statistics about a document collection from a RAG (Retrieval-Augmented Generation) system.

    File: /tf/active/vicechatdev/docchat/blueprint.py | Lines: 275-283

    flask api endpoint statistics rag
  • function get_task_status

    Flask API endpoint that retrieves the current status of a background task by its task ID from an in-memory active_tasks dictionary.

    File: /tf/active/vicechatdev/docchat/blueprint.py | Lines: 265-270

    flask api rest-endpoint task-status background-task
  • function get_task_status_v1

    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 index_all_documents

    Flask route handler that initiates background indexing of all documents in the system, creating a task ID for tracking progress and returning immediately while indexing continues asynchronously.

    File: /tf/active/vicechatdev/docchat/blueprint.py | Lines: 221-260

    flask api-endpoint background-task document-indexing async-processing
  • function upload_document

    Flask route handler that processes file uploads, saves them securely to disk, and indexes the document content for retrieval-augmented generation (RAG) search.

    File: /tf/active/vicechatdev/docchat/blueprint.py | Lines: 187-216

    file-upload document-processing flask-route authentication RAG
  • function chat

    Flask route handler that processes chat requests with RAG (Retrieval-Augmented Generation) capabilities, managing conversation sessions, chat history, and document-based question answering.

    File: /tf/active/vicechatdev/docchat/blueprint.py | Lines: 104-182

    chat rag retrieval-augmented-generation conversational-ai document-qa
  • function user_guide_v1

    Flask route handler that renders the user guide page for the document chat application.

    File: /tf/active/vicechatdev/docchat/blueprint.py | Lines: 97-99

    flask route-handler view-function authentication user-guide
  • function index_v1

    Flask route handler that renders the main DocChat interface with document collection statistics.

    File: /tf/active/vicechatdev/docchat/blueprint.py | Lines: 86-92

    flask route-handler web-interface authentication rag
  • function index_v2

    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 save_session_to_disk_v1

    Persists a chat session to disk by serializing session data to a JSON file, converting datetime objects to ISO format strings for storage.

    File: /tf/active/vicechatdev/docchat/blueprint.py | Lines: 52-65

    persistence session-management file-io serialization json
  • function get_current_username

    Retrieves the current user's username from Flask-Login's current_user object or falls back to the Flask session, returning 'anonymous' if neither is available.

    File: /tf/active/vicechatdev/docchat/blueprint.py | Lines: 42-49

    authentication flask user-management session flask-login
  • function get_adjusted_top_k

    Calculates an adjusted top_k value for multi-language search operations by multiplying the base value by the number of languages to ensure sufficient results per language.

    File: /tf/active/vicechatdev/docchat/config.py | Lines: 171-189

    multi-language search top-k result-scaling internationalization
  • class DocChatRAG

    Main RAG engine with three operating modes: 1. Basic RAG (similarity search) 2. Extensive (full document retrieval with preprocessing) 3. Full Reading (process all documents)

    File: /tf/active/vicechatdev/docchat/rag_engine.py | Lines: 330-2989

    class docchatrag
  • class QueryBasedExtractor

    A class that extracts relevant information from documents using a small LLM (Language Model), designed for Extensive and Full Reading modes in RAG systems.

    File: /tf/active/vicechatdev/docchat/rag_engine.py | Lines: 92-327

    information-extraction document-processing llm rag query-based
  • class QueryBasedExtractor_v1

    A class that performs targeted information extraction from text using LLM-based query-guided extraction, with support for handling long documents through chunking and token management.

    File: /tf/active/vicechatdev/OneCo_hybrid_RAG.py | Lines: 76-287

    information-extraction text-processing llm openai query-based
  • function matches_source_filter

    Checks if a document path matches any of the provided source filters using exact match, folder prefix match, path component sequence match, or filename match.

    File: /tf/active/vicechatdev/docchat/rag_engine.py | Lines: 31-89

    path-matching file-filtering document-filtering path-normalization string-matching
  • function check_configuration

    A comprehensive configuration verification function that checks and displays the status of all DocChat system settings, including API keys, models, ChromaDB connection, directories, and LLM initialization.

    File: /tf/active/vicechatdev/docchat/verify_setup.py | Lines: 13-141

    configuration verification diagnostics setup validation
  • function export_to_pdf

    Flask route handler that exports a chat conversation to a PDF file with formatted messages, roles, and references using the reportlab library.

    File: /tf/active/vicechatdev/docchat/app.py | Lines: 1839-1962

    pdf-export document-generation chat-export reportlab flask-route
  • function export_to_word

    Flask route handler that exports a chat conversation to a formatted Microsoft Word (.docx) document with styled headings, timestamps, and references.

    File: /tf/active/vicechatdev/docchat/app.py | Lines: 1758-1834

    export word-document docx chat-history conversation-export
  • function list_custom_instructions

    Flask API endpoint that retrieves and returns a list of all custom instruction markdown files stored in the 'instructions' directory.

    File: /tf/active/vicechatdev/docchat/app.py | Lines: 1740-1753

    flask api rest-api file-listing directory-scanning