🔍 Code Extractor

Browse Components

Showing 20 of 1696 components

  • class MyEmbeddingFunction

    Custom embedding function class that integrates OpenAI's embedding API with Chroma DB for generating vector embeddings from text documents.

    File: /tf/active/vicechatdev/project_victoria_disclosure_generator.py | Lines: 819-856

    embeddings openai chroma vector-database nlp
  • class MyEmbeddingFunction_v1

    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 ProjectVictoriaDisclosureGenerator

    Main class for generating Project Victoria disclosures from warranty claims.

    File: /tf/active/vicechatdev/project_victoria_disclosure_generator.py | Lines: 63-816

    class projectvictoriadisclosuregenerator
  • function merge_word_documents

    Merges track changes and comments from a revision Word document into a base Word document, creating a combined output document.

    File: /tf/active/vicechatdev/word_merge.py | Lines: 1153-1166

    document-processing word-documents docx merge track-changes
  • class DocxMerger

    A class named DocxMerger

    File: /tf/active/vicechatdev/word_merge.py | Lines: 41-1150

    class docxmerger
  • class User

    A user management class that handles authentication, authorization, user profiles, preferences, file management, and logging for a Panel-based web application with Neo4j backend.

    File: /tf/active/vicechatdev/userclass.py | Lines: 23-396

    authentication authorization user-management role-based-access-control neo4j
  • function update_access_tokens

    Updates access control tokens for nodes in a Neo4j graph database by traversing relationships from token carrier nodes and storing accumulated access keys.

    File: /tf/active/vicechatdev/dbinit.py | Lines: 9-26

    neo4j graph-database access-control security token-management
  • function test_collection_creation

    A diagnostic test function that verifies Chroma DB functionality by creating a test collection, adding a document, querying it, and cleaning up.

    File: /tf/active/vicechatdev/test_chroma_collections.py | Lines: 134-183

    testing debugging chroma-db vector-database health-check
  • function test_chroma_collections

    A diagnostic function that tests connectivity to ChromaDB instances across multiple connection methods and lists all available collections with their metadata.

    File: /tf/active/vicechatdev/test_chroma_collections.py | Lines: 18-131

    chromadb database-testing diagnostics connection-testing vector-database
  • function generate_cypher_examples

    Generates a comprehensive Cypher query examples file for interacting with a Neo4j graph database based on the provided schema information.

    File: /tf/active/vicechatdev/neo4j_schema_report.py | Lines: 1288-1446

    neo4j cypher graph-database code-generation documentation
  • function generate_python_snippets

    Generates a Python file containing code snippets and helper functions for interacting with a Neo4j graph database based on the provided schema information.

    File: /tf/active/vicechatdev/neo4j_schema_report.py | Lines: 1061-1286

    code-generation neo4j graph-database cypher schema
  • function generate_html_report

    Generate HTML report from schema info

    File: /tf/active/vicechatdev/neo4j_schema_report.py | Lines: 277-1059

    function generate_html_report
  • function generate_diagram_data

    Transforms Neo4j schema information into a structured format suitable for graph visualization, creating separate node and edge data structures.

    File: /tf/active/vicechatdev/neo4j_schema_report.py | Lines: 245-275

    graph-visualization schema-processing neo4j data-transformation diagram-generation
  • function generate_neo4j_schema_report

    Generates a comprehensive schema report of a Neo4j graph database, including node labels, relationships, properties, constraints, indexes, and sample data, outputting multiple file formats (JSON, HTML, Python snippets, Cypher examples).

    File: /tf/active/vicechatdev/neo4j_schema_report.py | Lines: 24-243

    neo4j graph-database schema-analysis database-introspection documentation-generation
  • class Neo4jEncoder

    A custom JSON encoder that extends json.JSONEncoder to handle Neo4j-specific data types and Python objects that are not natively JSON serializable.

    File: /tf/active/vicechatdev/neo4j_schema_report.py | Lines: 10-22

    json encoder serialization neo4j datetime
  • class FileCloudEmailProcessor

    A class that processes email files (.msg format) stored in FileCloud by finding, downloading, converting them to EML and PDF formats, and organizing them into mail_archive folders.

    File: /tf/active/vicechatdev/msg_to_eml.py | Lines: 1300-1516

    email-processing file-conversion cloud-storage filecloud msg-to-eml
  • function ensure_dir_exists

    Creates a directory and all necessary parent directories if they don't already exist, with logging support.

    File: /tf/active/vicechatdev/msg_to_eml.py | Lines: 1293-1298

    filesystem directory utility file-operations path-management
  • function eml_to_pdf

    Converts an .eml email file to PDF format, including the email body and all attachments merged into a single PDF document.

    File: /tf/active/vicechatdev/msg_to_eml.py | Lines: 1150-1291

    email-processing pdf-conversion eml-parser document-conversion attachment-handling
  • function generate_simple_html_from_eml

    Converts an email.message.Message object into a clean, styled HTML representation with embedded inline images and attachment listings.

    File: /tf/active/vicechatdev/msg_to_eml.py | Lines: 994-1148

    email html-generation email-parsing mime inline-images
  • function msg_to_pdf

    Converts a Microsoft Outlook .msg email file to a single PDF document, including the email body and all attachments merged together.

    File: /tf/active/vicechatdev/msg_to_eml.py | Lines: 874-992

    email-conversion pdf-generation msg-file outlook document-processing