🔍 Code Extractor

Browse Components

Showing 20 of 1256 components

  • function text_chat_get_progress

    Flask API endpoint that retrieves the progress status of an asynchronous text chat job, particularly for multi-cycle web search operations.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 2252-2264

    flask api progress-tracking async polling
  • function api_update_chat_config

    Flask API endpoint that updates the configuration settings for a specific chat session by accepting JSON data, converting it to a ChatConfiguration object, and persisting the changes.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 2228-2248

    flask api rest-endpoint chat configuration
  • function api_clear_chat_session

    Flask API endpoint that clears the chat history for a specific chat session identified by session_id.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 2215-2225

    flask api rest chat session-management
  • function api_get_chat_session_v1

    Flask API endpoint that retrieves a specific chat session by its ID and returns it as JSON.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 2202-2212

    flask api rest chat session
  • function api_send_chat_message_v1

    Flask API endpoint that handles sending messages in a chat session, processes them through a RAG (Retrieval-Augmented Generation) engine with configurable LLM models, and returns AI-generated responses with references.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 1893-2199

    chat api rag llm conversational-ai
  • function api_create_chat_session

    Flask API endpoint that creates or retrieves a chat session associated with a specific document section, ensuring proper validation and linking between documents, sections, and chat sessions.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 1825-1890

    flask api rest-endpoint chat-session document-management
  • function api_create_chat_session_v1

    Flask API endpoint that creates a new chat session for a document section or retrieves an existing one if already present.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 979-1010

    api flask chat session-management authentication
  • function create_sample_data

    Flask API endpoint that creates sample data for testing purposes by invoking the LegacySystemMigrator's create_sample_data method and returns the generated data as JSON.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 1812-1822

    flask api-endpoint testing sample-data database-setup
  • function migrate_from_legacy

    Flask API endpoint that migrates data from a legacy system to the current database by accepting a data directory path and executing a migration process.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 1795-1808

    migration legacy-system data-migration flask-endpoint api
  • function get_available_sections_for_document

    Flask API endpoint that retrieves text sections available to add to a specific document by filtering out sections already included in that document.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 1760-1790

    flask api-endpoint document-management authorization filtering
  • function get_text_section_usage

    Flask API endpoint that retrieves usage information for a specific text section, showing which documents reference it. Requires authentication and verifies section ownership before returning usage data.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 1734-1756

    flask api-endpoint rest-api authentication authorization
  • function duplicate_text_section

    Flask API endpoint that creates a duplicate of an existing text section with ownership verification and optional custom title.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 1698-1729

    flask api-endpoint text-section duplicate copy
  • function get_section_chat_history

    Flask API endpoint that retrieves chat history for a specific text section, verifying user ownership before returning messages.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 1673-1694

    flask api rest-endpoint chat-history authentication
  • function move_section

    Flask API endpoint that moves a section (text or data) up or down within a document's section order, with authentication and ownership verification.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 1597-1667

    flask api-endpoint document-management section-reordering authentication
  • function export_document

    Flask route handler that exports a document in either DOCX or PDF format, verifying user ownership and document access before generating the export file.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 1539-1591

    flask export document pdf docx
  • function add_existing_data_section_to_document

    Flask API endpoint that adds an existing data section to a document after verifying ownership and access permissions for both the document and data section.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 1486-1534

    flask api-endpoint document-management data-section authentication
  • function add_existing_section_to_document

    Flask API endpoint that adds an existing text section to a document with advanced positioning options, copy creation, and access control validation.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 1397-1482

    flask api-endpoint document-management text-section authentication
  • function create_text_section_for_document

    Flask API endpoint that creates or adds text sections to a document with three action modes: creating new sections, adding existing sections, or duplicating existing sections.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 1275-1393

    flask api-endpoint document-management text-sections crud-operations
  • function get_document_text_sections

    Flask API endpoint that retrieves all text and data sections for a specific document, verifying user ownership and returning sections sorted by position.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 1230-1269

    flask api rest-endpoint document-management authentication
  • function revert_document_to_version

    Flask API endpoint that reverts a document to a specific previous version after verifying user ownership and authentication.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 1198-1224

    flask api-endpoint document-management version-control authentication