🔍 Code Extractor

Browse Components

Showing 20 of 2143 components

  • function api_load_template_v1

    Flask API endpoint that loads and returns instruction templates from a RAG (Retrieval-Augmented Generation) engine based on the provided template name.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 2314-2334

    flask api rest-endpoint template-loading rag
  • function api_load_template_v2

    Flask API endpoint that retrieves and returns an instruction template by name from the chat engine.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 2411-2423

    flask api rest-endpoint template-loading instruction-template
  • function api_save_template_v2

    Flask API endpoint that saves a new instruction template by accepting JSON data with a template name and instructions, then persisting it via the RAG engine.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 2291-2309

    api flask rest-endpoint template-management rag
  • function api_templates_v1

    Flask API endpoint that retrieves and returns a list of available instruction templates from the RAG engine.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 2280-2287

    api flask rest-api templates rag
  • function api_templates_v2

    Flask API endpoint that retrieves and returns a list of available instruction templates from the chat engine.

    File: /tf/active/vicechatdev/vice_ai/app.py | Lines: 1257-1264

    api flask rest-endpoint templates chat-engine
  • function api_collections

    Flask API endpoint that retrieves and returns a list of available data collections from the RAG (Retrieval-Augmented Generation) engine.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 2268-2275

    api flask rest-api rag collections
  • function api_collections_v1

    Flask API endpoint that retrieves and returns a list of available data collections from the chat engine instance.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 2248-2255

    flask api rest-endpoint collections rag
  • 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