🔍 Code Extractor

Browse Components

Showing 20 of 423 components

  • function full_reading_example

    Demonstrates the full reading mode of a RAG (Retrieval-Augmented Generation) system by processing all documents to answer a comprehensive query about key findings.

    File: /tf/active/vicechatdev/docchat/example_usage.py | Lines: 103-132

    example demonstration RAG retrieval-augmented-generation full-reading
  • function extensive_mode_example

    Demonstrates the usage of DocChatRAG's extensive mode for detailed document analysis with a sample query about methodologies.

    File: /tf/active/vicechatdev/docchat/example_usage.py | Lines: 76-100

    example demo RAG retrieval-augmented-generation extensive-mode
  • function basic_rag_example

    Demonstrates a basic RAG (Retrieval-Augmented Generation) workflow by initializing a DocChatRAG engine, executing a sample query about document topics, and displaying the response with metadata.

    File: /tf/active/vicechatdev/docchat/example_usage.py | Lines: 46-73

    rag retrieval-augmented-generation example demo document-chat
  • function index_documents_example

    A demonstration function that indexes documents from a specified folder using a DocumentIndexer, creating the folder if it doesn't exist, and displays indexing results and collection statistics.

    File: /tf/active/vicechatdev/docchat/example_usage.py | Lines: 11-43

    document-indexing example tutorial demonstration RAG
  • function test_adjusted_topk

    A test function that validates the adjusted top_k calculation by testing multiple base values against the number of supported languages and logging the results.

    File: /tf/active/vicechatdev/docchat/test_multilanguage.py | Lines: 78-93

    testing unit-test validation logging configuration
  • function test_language_detection_and_translation

    A test function that validates multi-language query processing capabilities including language detection, translation, and query expansion across multiple supported languages.

    File: /tf/active/vicechatdev/docchat/test_multilanguage.py | Lines: 17-76

    testing multi-language language-detection translation RAG
  • function reset_collection

    Deletes an existing ChromaDB collection and logs the operation, requiring an application restart to recreate the collection.

    File: /tf/active/vicechatdev/docchat/reset_collection.py | Lines: 14-37

    chromadb vector-database database-management collection-reset cleanup
  • class SharePointFileCloudSync

    Orchestrates synchronization of documents from SharePoint to FileCloud, managing the complete sync lifecycle including document retrieval, comparison, upload, and folder structure creation.

    File: /tf/active/vicechatdev/SPFCsync/sync_service.py | Lines: 10-410

    synchronization sharepoint filecloud document-management cloud-sync
  • function compare_with_expected_folders

    Compares SharePoint folders found via Microsoft Graph API against a predefined list of expected folder names from a reference screenshot, reporting matches, missing folders, and additional folders.

    File: /tf/active/vicechatdev/SPFCsync/test_folder_structure.py | Lines: 144-213

    sharepoint validation folder-comparison microsoft-graph testing
  • function get_folder_documents

    Retrieves and filters documents from a SharePoint folder by matching the folder name in document paths.

    File: /tf/active/vicechatdev/SPFCsync/test_folder_structure.py | Lines: 125-142

    sharepoint document-retrieval folder-filtering file-management microsoft-graph
  • function get_root_folders

    Retrieves all folders at the root level of a SharePoint drive using Microsoft Graph API, returning their metadata including name, ID, item count, timestamps, and web URL.

    File: /tf/active/vicechatdev/SPFCsync/test_folder_structure.py | Lines: 83-123

    sharepoint microsoft-graph api folders metadata
  • function test_folder_structure

    Tests SharePoint folder structure by listing root-level folders, displaying their contents, and providing a summary of total folders and documents.

    File: /tf/active/vicechatdev/SPFCsync/test_folder_structure.py | Lines: 16-81

    sharepoint testing folder-structure document-management microsoft-graph
  • class SharePointGraphClient

    SharePoint client using Microsoft Graph API. This bypasses SharePoint REST API app-only token issues.

    File: /tf/active/vicechatdev/SPFCsync/sharepoint_graph_client.py | Lines: 8-526

    class sharepointgraphclient
  • function analyze_structure

    Analyzes and reports on the folder structure of a SharePoint site, displaying folder paths, file counts, and searching for expected folder patterns.

    File: /tf/active/vicechatdev/SPFCsync/analyze_structure.py | Lines: 10-92

    sharepoint analysis folder-structure microsoft-graph audit
  • function check_site_vs_channels

    Diagnostic function that analyzes and compares SharePoint site structure, specifically examining the main site document library versus Teams channel document libraries to identify the correct library for synchronization.

    File: /tf/active/vicechatdev/SPFCsync/check_site_library.py | Lines: 10-167

    sharepoint diagnostic microsoft-graph document-library teams-channels
  • function dry_run_test

    Performs a dry run test of SharePoint to FileCloud synchronization, analyzing up to a specified number of documents without actually transferring files.

    File: /tf/active/vicechatdev/SPFCsync/dry_run_test.py | Lines: 40-265

    dry-run testing sharepoint filecloud sync
  • function format_datetime

    Converts an ISO format datetime string into a human-readable UTC datetime string formatted as 'YYYY-MM-DD HH:MM:SS UTC'.

    File: /tf/active/vicechatdev/SPFCsync/dry_run_test.py | Lines: 30-38

    datetime formatting string-manipulation ISO-format UTC
  • function format_file_size

    Converts a file size in bytes to a human-readable string format with appropriate units (B, KB, MB, GB, TB).

    File: /tf/active/vicechatdev/SPFCsync/dry_run_test.py | Lines: 19-28

    file-size formatting utility human-readable bytes-conversion
  • function format_file_size_v1

    Converts a file size in bytes to a human-readable string format with appropriate units (B, KB, MB, GB, TB).

    File: /tf/active/vicechatdev/SPFCsync/test_upload_modalities.py | Lines: 16-25

    file-size formatting utility human-readable bytes-conversion
  • function signal_handler

    A signal handler function that gracefully handles SIGINT (Ctrl+C) interrupts by logging a shutdown message and exiting the program cleanly.

    File: /tf/active/vicechatdev/SPFCsync/main.py | Lines: 25-28

    signal-handling interrupt-handling graceful-shutdown SIGINT Ctrl+C