🔍 Code Extractor

Component not found

Browse Components

Showing 20 of 39 components

  • class OneCo_hybrid_RAG

    A class named OneCo_hybrid_RAG

    File: /tf/active/vicechatdev/OneCo_hybrid_RAG copy.py | Lines: 790-1760

    class oneco_hybrid_rag
  • class SimpleDataHandle

    A data handler class that manages multiple data sources with different types (dataframes, vector stores, databases) and their associated processing configurations.

    File: /tf/active/vicechatdev/OneCo_hybrid_RAG copy.py | Lines: 718-787

    data-management registry vector-store RAG dataframe
  • class SimpleChatMemory

    A simple chat memory manager that stores and retrieves conversation history between users and assistants with configurable history limits.

    File: /tf/active/vicechatdev/OneCo_hybrid_RAG copy.py | Lines: 685-716

    chat memory conversation history chatbot
  • class MyEmbeddingFunction

    A custom embedding function class that generates embeddings for documents using OpenAI's API, with built-in text summarization for long documents and token management.

    File: /tf/active/vicechatdev/OneCo_hybrid_RAG copy.py | Lines: 589-683

    embeddings openai chromadb vector-database text-summarization
  • class ReferenceManager

    Manages extraction and formatting of references for LLM chat responses. Handles both file references and BibTeX citations, formatting them according to various academic citation styles.

    File: /tf/active/vicechatdev/OneCo_hybrid_RAG copy.py | Lines: 75-587

    class referencemanager
  • function main

    Main orchestration function that reads an improved markdown file and converts it to an enhanced Word document with comprehensive formatting, including table of contents, warranty sections, disclosures, and bibliography.

    File: /tf/active/vicechatdev/enhanced_word_converter_fixed.py | Lines: 504-563

    document-generation word-processing markdown-conversion docx file-processing
  • function main_v1

    Orchestrates the conversion of an improved markdown file containing warranty disclosures into multiple tabular formats (CSV, Excel, Word) with timestamp-based file naming.

    File: /tf/active/vicechatdev/improved_convert_disclosures_to_table.py | Lines: 421-480

    file-conversion markdown-processing warranty-data csv-export excel-export
  • function format_inline_references

    Formats inline citation references (e.g., [1], [2]) in a Word document paragraph by applying italic styling to them while preserving the rest of the text.

    File: /tf/active/vicechatdev/enhanced_word_converter_fixed.py | Lines: 480-502

    document-formatting word-processing python-docx text-formatting citations
  • function create_enhanced_word_document_v1

    Converts markdown content into a formatted Microsoft Word document with proper styling, table of contents, warranty sections, and reference handling for Project Victoria warranty disclosures.

    File: /tf/active/vicechatdev/enhanced_word_converter_fixed.py | Lines: 90-478

    document-generation word-processing markdown-conversion docx formatting
  • function extract_total_references

    Extracts the total count of references from markdown-formatted content by first checking for a header line with the total, then falling back to manually counting reference entries.

    File: /tf/active/vicechatdev/enhanced_word_converter_fixed.py | Lines: 73-88

    markdown parsing text-processing references bibliography
  • function extract_warranty_sections

    Parses markdown content to extract warranty section headers, returning a list of dictionaries containing section IDs and titles for table of contents generation.

    File: /tf/active/vicechatdev/enhanced_word_converter_fixed.py | Lines: 51-71

    markdown-parsing text-processing warranty-documents table-of-contents document-structure
  • function clean_text_for_xml_v1

    Sanitizes text strings to ensure XML 1.0 compatibility by removing or replacing invalid control characters and ensuring all characters meet XML specification requirements for Word document generation.

    File: /tf/active/vicechatdev/enhanced_word_converter_fixed.py | Lines: 22-49

    text-processing xml sanitization data-cleaning word-documents
  • function main_v2

    Main entry point function that reads a markdown file, converts it to an enhanced Word document with preserved heading structure, and saves it with a timestamped filename.

    File: /tf/active/vicechatdev/improved_word_converter.py | Lines: 187-215

    document-conversion markdown-to-word file-processing docx main-entry-point
  • function main_v3

    A test function that validates email template rendering by testing multiple HTML email templates with sample data structures for document review and approval workflows.

    File: /tf/active/vicechatdev/test_comprehensive_templates.py | Lines: 45-113

    testing email-templates validation document-management template-rendering
  • function create_enhanced_word_document

    Converts markdown-formatted warranty disclosure content into a formatted Microsoft Word document with hierarchical headings, styled text, lists, and special formatting for block references.

    File: /tf/active/vicechatdev/improved_word_converter.py | Lines: 20-185

    document-generation markdown-to-word docx warranty-processing legal-documents
  • function main_v1

    Converts a markdown file containing warranty disclosure data into multiple tabular formats (CSV, Excel, Word) with timestamped output files.

    File: /tf/active/vicechatdev/convert_disclosures_to_table.py | Lines: 373-429

    markdown-conversion data-extraction report-generation csv-export excel-export
  • function create_word_report

    Generates a formatted Microsoft Word document report containing warranty disclosures with a table of contents, metadata, and structured sections for each warranty.

    File: /tf/active/vicechatdev/convert_disclosures_to_table.py | Lines: 233-371

    document-generation word-document docx report-generation warranty
  • function create_excel_report

    Creates a multi-sheet Excel report from warranty data, including main report, summary view, complete data, and statistics sheets with auto-formatted columns.

    File: /tf/active/vicechatdev/convert_disclosures_to_table.py | Lines: 167-231

    excel reporting data-export pandas openpyxl
  • function create_csv_report

    Creates two CSV reports (summary and detailed) from warranty data, writing warranty information to files with different levels of detail.

    File: /tf/active/vicechatdev/convert_disclosures_to_table.py | Lines: 141-165

    csv reporting data-export file-io warranty
  • function extract_warranty_data

    Parses markdown-formatted warranty documentation to extract structured warranty information including IDs, titles, sections, source document counts, warranty text, and disclosure content.

    File: /tf/active/vicechatdev/convert_disclosures_to_table.py | Lines: 75-139

    markdown-parsing data-extraction warranty-processing text-processing regex