🔍 Code Extractor

Search Components

Full-Text: Fast keyword matching | Semantic: AI-powered understanding of intent (finds similar concepts)

Search Results for "text_sections"

Found 33 matching component(s)

  • function raw_cleanup_database

    Performs raw database cleanup on a SQLite database to identify and fix corrupted chat_session_id values in the text_sections table by converting invalid string representations ('{}', '[]', 'null', '') to NULL.

    File: /tf/active/vicechatdev/vice_ai/raw_database_cleanup.py

    database cleanup maintenance sqlite data-integrity
  • function check_and_fix_corruption

    Scans a SQLite database for corrupted chat_session_id values in the text_sections table and automatically fixes them by setting invalid entries to NULL.

    File: /tf/active/vicechatdev/vice_ai/direct_corruption_checker.py

    database sqlite data-integrity corruption-detection data-cleaning
  • function debug_section_retrieval

    A debugging utility function that tests database section retrieval by querying a specific text section and printing detailed diagnostic information about the section and its chat session association.

    File: /tf/active/vicechatdev/vice_ai/debug_section_retrieval.py

    debugging database testing diagnostics section-retrieval
  • class DocumentProcessor_v7

    Lightweight document processor for chat upload functionality

    File: /tf/active/vicechatdev/vice_ai/document_processor.py

    class documentprocessor
  • function index

    Flask route handler that serves as the main landing page for authenticated users, displaying their documents and text sections in a workspace interface.

    File: /tf/active/vicechatdev/vice_ai/new_app.py

    flask route-handler authentication web-application index-page
  • function get_text_sections

    Flask API endpoint that retrieves text sections for the authenticated user with optional filtering by type, search query, tags, and uniqueness.

    File: /tf/active/vicechatdev/vice_ai/new_app.py

    flask api rest-endpoint text-sections filtering
  • function create_text_section

    Flask API endpoint that creates a new text section with specified title, type, level, and content for an authenticated user.

    File: /tf/active/vicechatdev/vice_ai/new_app.py

    flask api-endpoint text-section document-management crud
  • function update_text_section

    Flask API endpoint that updates either the title or content of a text section, with ownership verification and version tracking.

    File: /tf/active/vicechatdev/vice_ai/new_app.py

    flask api rest update text-section
  • function get_text_section_versions

    Flask API endpoint that retrieves all historical versions of a specific text section, with ownership verification and authentication required.

    File: /tf/active/vicechatdev/vice_ai/new_app.py

    flask api rest-endpoint versioning version-control
  • function chat_with_text_section

    Flask API endpoint that enables AI-powered chat conversations about a specific text section, with support for multiple LLM models and document context.

    File: /tf/active/vicechatdev/vice_ai/new_app.py

    flask api-endpoint chat ai-assistant llm
  • function init_text_section_chat

    Flask API endpoint that initializes a chat session for a standalone text section, creating a mock chat session object for frontend compatibility after verifying user ownership.

    File: /tf/active/vicechatdev/vice_ai/new_app.py

    flask api-endpoint chat initialization authentication
  • function create_document_v5

    Flask API endpoint that creates a new document or duplicates an existing document with options to copy or reference sections.

    File: /tf/active/vicechatdev/vice_ai/new_app.py

    flask api-endpoint document-management create duplicate
  • function get_document_v4

    Flask API endpoint that retrieves a specific document with its text and data sections, including optional sharing information, for authenticated users.

    File: /tf/active/vicechatdev/vice_ai/new_app.py

    api flask document-management rest-endpoint authentication
  • 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

    flask api rest-endpoint document-management 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

    flask api-endpoint document-management text-sections crud-operations
  • 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

    flask api-endpoint document-management text-section 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

    flask export document pdf docx
  • 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

    flask api-endpoint document-management section-reordering authentication
  • 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

    flask api-endpoint text-section duplicate copy
  • 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

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

    Exports a document with text and data sections to Microsoft Word DOCX format, preserving formatting, structure, and metadata.

    File: /tf/active/vicechatdev/vice_ai/new_app.py

    document-export docx word-document file-generation content-formatting
  • function export_to_pdf

    Exports a document with text and data sections to a PDF file using ReportLab, handling custom styling, section ordering, and content formatting including Quill Delta to HTML/Markdown conversion.

    File: /tf/active/vicechatdev/vice_ai/new_app.py

    pdf-export document-generation reportlab content-formatting quill-delta
  • function create_analysis_session

    Creates a new data analysis session for a text section, verifying ownership and section type before linking the session to the section.

    File: /tf/active/vicechatdev/vice_ai/new_app.py

    flask api data-analysis session-management authentication
  • function direct_fix

    A database maintenance function that detects and fixes corrupted chat_session_id values in a SQLite database's text_sections table by identifying invalid patterns and setting them to NULL.

    File: /tf/active/vicechatdev/vice_ai/direct_sqlite_fix.py

    database sqlite maintenance corruption-fix data-cleaning
  • class LegacySystemMigrator

    Migrates data from a legacy file-based document system to a new database-backed architecture with TextSection-centric design, including document metadata, sections, chat configurations, and version history.

    File: /tf/active/vicechatdev/vice_ai/migration.py

    migration data-migration legacy-system database document-management
  • class TextSectionService

    Service class for managing TextSection entities, providing CRUD operations, versioning, chat functionality, and search capabilities.

    File: /tf/active/vicechatdev/vice_ai/services.py

    service-layer text-management versioning crud-operations chat-integration
  • class DocumentService

    Service class for managing Document entities, including creation, retrieval, section management, versioning, and duplication operations.

    File: /tf/active/vicechatdev/vice_ai/services.py

    document-management service-layer crud-operations versioning section-management
  • class DocumentExportService

    Service class for exporting documents in various formats with enhanced formatting, providing both full structured exports and content-only exports.

    File: /tf/active/vicechatdev/vice_ai/services.py

    document-export data-transformation formatting serialization document-management
  • function cleanup_corrupted_chat_session_ids

    Database maintenance function that identifies and fixes corrupted chat_session_id values in the text_sections table by replacing invalid string representations with NULL.

    File: /tf/active/vicechatdev/vice_ai/cleanup_database.py

    database cleanup maintenance data-integrity migration
  • function check_specific_corruption

    Detects and fixes specific corruption patterns in the chat_session_id column of a SQLite database's text_sections table, replacing invalid values with NULL.

    File: /tf/active/vicechatdev/vice_ai/check_specific_corruption.py

    database sqlite data-cleaning corruption-detection data-repair
  • class TextSectionVersion

    A dataclass representing a single version in the history of a text section's content, tracking changes, authorship, and timestamps.

    File: /tf/active/vicechatdev/vice_ai/models.py

    version-control dataclass serialization history-tracking text-management
  • class DatabaseManager_v1

    SQLite database manager for persistent storage

    File: /tf/active/vicechatdev/vice_ai/models.py

    class databasemanager
  • function inspect_database

    Inspects a SQLite database at a hardcoded path, examining table structure, row counts, and identifying potentially corrupted chat_session_id values in the text_sections table.

    File: /tf/active/vicechatdev/vice_ai/database_inspector.py

    database sqlite diagnostic debugging data-quality

Search Examples