MCPcopy Create free account

hub / github.com/HKUDS/Paper2Slides / functions

Functions394 in github.com/HKUDS/Paper2Slides

↓ 2 callersMethodparse_document
Parse document with caching support Args: file_path: Path to the file to parse output_dir: Output directory
paper2slides/raganything/processor.py:265
↓ 2 callersMethodread_from_block
( self, block, type: str, output_dir: Path, cnt: int, num: str )
paper2slides/raganything/parser.py:1492
↓ 2 callersFunctionrun_pipeline
Run pipeline from specified stage. Args: base_dir: Base directory for this document/project config_dir: Config-specific direc
paper2slides/core/pipeline.py:16
↓ 2 callersFunctionsetup_logging
Configure logging with console output.
paper2slides/utils/logging.py:9
↓ 2 callersMethodsummary
Generate a summary of the batch processing results
paper2slides/raganything/batch_parser.py:39
↓ 2 callersMethodto_markdown
Convert to markdown format with caption.
paper2slides/summary/models.py:18
↓ 2 callersMethodto_summary
Generate the final summary by combining relevant sections. Args: include_titles: Whether to include section titles in the
paper2slides/summary/paper.py:68
↓ 2 callersFunctiontoggleExpand
(id)
frontend/src/components/Sidebar.jsx:31
↓ 2 callersMethodwith_paths
Create with custom paths.
paper2slides/rag/config.py:193
↓ 1 callersMethod__init__
Initialize context extractor Args: config: Context extraction configuration tokenizer: Tokenizer for accurate token c
paper2slides/raganything/modalprocessors.py:52
↓ 1 callersMethod_basic_json_cleanup
Basic cleanup for common JSON issues
paper2slides/raganything/modalprocessors.py:614
↓ 1 callersMethod_batch_add_belongs_to_relations_type_aware
Add belongs_to relations for multimodal entities
paper2slides/raganything/processor.py:1180
↓ 1 callersMethod_batch_extract_entities_lightrag_style_type_aware
Use LightRAG's extract_entities for batch entity relation extraction
paper2slides/raganything/processor.py:1151
↓ 1 callersMethod_batch_merge_lightrag_style_type_aware
Use LightRAG's merge_nodes_and_edges for batch merge
paper2slides/raganything/processor.py:1244
↓ 1 callersFunction_build_multi_file_prompt
Build prompt for multiple file extraction (assumes independent papers).
paper2slides/summary/paper.py:282
↓ 1 callersMethod_build_poster_prompt
Build prompt for poster.
paper2slides/generator/image_generator.py:292
↓ 1 callersFunction_build_single_file_prompt
Build simple prompt for single file extraction.
paper2slides/summary/paper.py:262
↓ 1 callersMethod_build_vlm_messages_with_images
Build VLM message format, using markers to correspond images with text positions Args: enhanced_prompt: Enhanced prompt
paper2slides/raganything/query.py:609
↓ 1 callersMethod_call_model_google
Call the official Google Gemini API for image generation.
paper2slides/generator/image_generator.py:483
↓ 1 callersMethod_call_model_openrouter
Call the image generation model with retry logic.
paper2slides/generator/image_generator.py:410
↓ 1 callersMethod_call_vlm_with_multimodal_content
Call VLM to process multimodal content Args: messages: VLM message format Returns: str: VLM respons
paper2slides/raganything/query.py:693
↓ 1 callersMethod_check_backends
Check which conversion backends are available
paper2slides/raganything/enhanced_markdown.py:96
↓ 1 callersMethod_convert_to_lightrag_chunks_type_aware
Convert multimodal data to LightRAG standard chunks format
paper2slides/raganything/processor.py:864
↓ 1 callersMethod_create_embedding_func
(self)
paper2slides/rag/client.py:116
↓ 1 callersMethod_create_vision_func
(self)
paper2slides/rag/client.py:79
↓ 1 callersMethod_describe_equation_for_query
Generate equation description for query
paper2slides/raganything/query.py:497
↓ 1 callersMethod_describe_generic_for_query
Generate generic content description for query
paper2slides/raganything/query.py:514
↓ 1 callersMethod_describe_image_for_query
Generate image description for query
paper2slides/raganything/query.py:449
↓ 1 callersMethod_describe_table_for_query
Generate table description for query
paper2slides/raganything/query.py:480
↓ 1 callersFunction_encode_image_to_base64
Encode image file to base64 string
paper2slides/core/stages/rag_stage.py:34
↓ 1 callersMethod_extract_chunk_context
Extract context based on content chunks Args: content_list: List of content items current_item_info: Current item wit
paper2slides/raganything/modalprocessors.py:173
↓ 1 callersMethod_extract_fields_with_regex
Extract required fields using regex as last resort
paper2slides/raganything/modalprocessors.py:643
↓ 1 callersMethod_extract_from_dict_source
Extract context from dictionary-based content source Args: dict_source: Dictionary containing content current_item_in
paper2slides/raganything/modalprocessors.py:238
↓ 1 callersMethod_extract_from_text_chunks
Extract context from simple text chunks list Args: text_chunks: List of text strings current_item_info: Current item
paper2slides/raganything/modalprocessors.py:279
↓ 1 callersFunction_extract_text_from_markdown
Extract plain text from markdown file, removing image links. Args: md_path: Path to markdown file max_chars: Maximum cha
paper2slides/summary/paper.py:238
↓ 1 callersFunction_find_figure_caption
Search for Figure caption near an image. Search strategy: First search forward (more common), then backward. Stops if encountering a
paper2slides/summary/extractors/figure_extractor.py:60
↓ 1 callersFunction_find_figure_caption_by_position
Fallback: Search for Figure caption by character position. This is used when line-based search fails, typically when the markdown ha
paper2slides/summary/extractors/figure_extractor.py:99
↓ 1 callersFunction_find_table_caption
Search for Table caption near an HTML table. Search strategy: First search backward (more common), then forward. Stops if encounteri
paper2slides/summary/extractors/table_extractor.py:60
↓ 1 callersFunction_find_table_caption_by_position
Fallback: Search for Table caption by character position. This is used when line-based search fails, typically when the markdown has
paper2slides/summary/extractors/table_extractor.py:105
↓ 1 callersMethod_format_custom_style_for_poster
Format ProcessedStyle into style hints string for poster.
paper2slides/generator/image_generator.py:264
↓ 1 callersMethod_format_custom_style_for_slide
Format ProcessedStyle into style hints string for slide.
paper2slides/generator/image_generator.py:278
↓ 1 callersMethod_format_sections_markdown
Format all sections as markdown.
paper2slides/generator/image_generator.py:333
↓ 1 callersMethod_generate_cache_key
Generate cache key based on file path and parsing configuration Args: file_path: Path to the file parse_meth
paper2slides/raganything/processor.py:29
↓ 1 callersMethod_generate_multimodal_cache_key
Generate cache key for multimodal query Args: query: Base query text multimodal_content: List of multimodal
paper2slides/raganything/query.py:25
↓ 1 callersMethod_generate_poster
Generate 1 poster image.
paper2slides/generator/image_generator.py:154
↓ 1 callersMethod_generate_query_content_description
Generate content description for query Args: processor: Multimodal processor content: Content data
paper2slides/raganything/query.py:419
↓ 1 callersMethod_generate_slides
Generate N slide images (slides 1-2 sequential, 3+ parallel).
paper2slides/generator/image_generator.py:166
↓ 1 callersMethod_get_cached_result
Get cached parsing result if available and valid Args: cache_key: Cache key to look up file_path: Path to th
paper2slides/raganything/processor.py:118
↓ 1 callersMethod_get_default_css
Get default CSS styling
paper2slides/raganything/enhanced_markdown.py:113
↓ 1 callersFunction_get_image_mime_type
Get MIME type for image file based on extension
paper2slides/core/stages/rag_stage.py:18
↓ 1 callersMethod_load_figure_images
Load figure images as base64.
paper2slides/generator/image_generator.py:363
↓ 1 callersMethod_load_figure_images
Load figure images as base64 with caption.
paper2slides/generator/content_planner.py:428
↓ 1 callersMethod_parse_equation_response
Parse equation analysis response with robust JSON handling
paper2slides/raganything/modalprocessors.py:1357
↓ 1 callersMethod_parse_generic_response
Parse generic analysis response
paper2slides/raganything/modalprocessors.py:1519
↓ 1 callersFunction_parse_queries_from_response
Parse LLM response to extract query strings.
paper2slides/rag/query.py:132
↓ 1 callersMethod_parse_response
Parse model response
paper2slides/raganything/modalprocessors.py:979
↓ 1 callersMethod_parse_table_response
Parse table analysis response
paper2slides/raganything/modalprocessors.py:1173
↓ 1 callersMethod_plan_poster
Plan poster sections.
paper2slides/generator/content_planner.py:196
↓ 1 callersMethod_plan_slides
Plan slides sections.
paper2slides/generator/content_planner.py:170
↓ 1 callersMethod_process_chunk_for_extraction
Process chunk for entity and relationship extraction
paper2slides/raganything/modalprocessors.py:685
↓ 1 callersMethod_process_image_paths_for_vlm
Process image paths in prompt, keeping original paths and adding VLM markers Args: prompt: Original prompt Retu
paper2slides/raganything/query.py:533
↓ 1 callersMethod_process_markdown_content
Process Markdown content with extensions
paper2slides/raganything/enhanced_markdown.py:228
↓ 1 callersMethod_process_multimodal_content_batch_type_aware
Type-aware batch processing that selects correct processors based on content type. This is the corrected implementation that handles
paper2slides/raganything/processor.py:687
↓ 1 callersMethod_process_multimodal_content_individual
Process multimodal content individually (fallback method) Args: multimodal_items: List of multimodal items f
paper2slides/raganything/processor.py:533
↓ 1 callersMethod_process_multimodal_query_content
Process multimodal query content to generate enhanced query text Args: base_query: Base query text multimoda
paper2slides/raganything/query.py:366
↓ 1 callersFunction_remove_markdown_tables
Remove markdown format tables from content. A valid markdown table must have: - At least 2 consecutive lines starting and ending wit
paper2slides/summary/extractors/table_cleaner.py:43
↓ 1 callersFunction_replace_images_with_base64
Replace image references in markdown with base64 encoded images, preserving position Args: markdown_content: Markdown text conte
paper2slides/core/stages/rag_stage.py:45
↓ 1 callersFunction_run_fast_queries_by_category
Fast mode: Direct GPT-4o queries with markdown content and images in original positions Args: client: OpenAI client mark
paper2slides/core/stages/rag_stage.py:120
↓ 1 callersMethod_store_cached_result
Store parsing result in cache Args: cache_key: Cache key to store under content_list: Content list to cache
paper2slides/raganything/processor.py:197
↓ 1 callersMethod_store_chunks_to_lightrag_storage_type_aware
Store chunks to storage
paper2slides/raganything/processor.py:984
↓ 1 callersMethod_store_multimodal_entities_to_full_entities
Store multimodal main entities to full_entities storage. Args: entities_to_store: Dictionary of entities to store
paper2slides/raganything/processor.py:1092
↓ 1 callersMethod_store_multimodal_main_entities
Store multimodal main entities to entities_vdb and full_entities. This ensures that entities like "TableName (table)" are properly in
paper2slides/raganything/processor.py:1001
↓ 1 callersFunction_truncate_overview
(overview: str, max_length: int = 6000)
paper2slides/rag/query.py:127
↓ 1 callersMethod_update_doc_status_with_chunks_type_aware
Update document status with multimodal chunks
paper2slides/raganything/processor.py:1276
↓ 1 callersFunction_update_state_on_error
Update state.json when background pipeline fails
api/server.py:433
↓ 1 callersMethodaquery_vlm_enhanced
VLM enhanced query - replaces image paths in retrieved context with base64 encoded images for VLM processing Args: query
paper2slides/raganything/query.py:303
↓ 1 callersMethodaquery_with_multimodal
Multimodal query - combines text and multimodal content for querying Args: query: Base query text multimodal
paper2slides/raganything/query.py:163
↓ 1 callersMethodbatch_query
Query multiple questions with sliding window concurrency. Args: questions: List of questions to query.
paper2slides/rag/client.py:303
↓ 1 callersMethodbatch_query_by_category
Execute batch queries organized by category with sliding window concurrency. All queries across all categories are executed
paper2slides/rag/client.py:341
↓ 1 callersMethodcancel_session
Cancel a running session. Returns True if session was running
api/server.py:68
↓ 1 callersMethodclose
Release resources.
paper2slides/rag/client.py:431
↓ 1 callersMethodconvert_file_to_pdf
Convert Markdown file to PDF Args: input_path: Input Markdown file path output_path: Output PDF file path (o
paper2slides/raganything/enhanced_markdown.py:403
↓ 1 callersMethodconvert_markdown_to_pdf
Convert markdown content to PDF Args: markdown_content: Markdown content to convert output_path: Output PDF
paper2slides/raganything/enhanced_markdown.py:370
↓ 1 callersMethodconvert_office_to_pdf
Convert Office document (.doc, .docx, .ppt, .pptx, .xls, .xlsx) to PDF. Requires LibreOffice to be installed. Args:
paper2slides/raganything/parser.py:66
↓ 1 callersMethodconvert_text_to_pdf
Convert text file (.txt, .md) to PDF using ReportLab with full markdown support. Args: text_path: Path to the text file
paper2slides/raganything/parser.py:204
↓ 1 callersMethodconvert_with_weasyprint
Convert using WeasyPrint (best for styling)
paper2slides/raganything/enhanced_markdown.py:286
↓ 1 callersFunctionencode_image_to_base64
Encode image file to base64 string Args: image_path: Path to the image file Returns: str: Base64 encoded string, empty
paper2slides/raganything/utils.py:59
↓ 1 callersMethodend_session
End a session
api/server.py:61
↓ 1 callersMethodextract_context
Extract context for current item from content source Args: content_source: Source content (list, dict, or other format)
paper2slides/raganything/modalprocessors.py:62
↓ 1 callersFunctionextract_figures
Extract figures from markdown content. Args: content: Full markdown content lines: Content split by lines search
paper2slides/summary/extractors/figure_extractor.py:9
↓ 1 callersFunctionextract_general
Extract structured content from RAG results for a general document. Args: rag_results: List of query results llm_client:
paper2slides/summary/general.py:73
↓ 1 callersFunctionextract_paper
Extract structured content from RAG results for a paper. Args: rag_results: RAG query results llm_client: OpenAI client
paper2slides/summary/paper.py:178
↓ 1 callersFunctionextract_paper_metadata_from_markdown
Extract paper metadata (title, authors, affiliations) directly from markdown files. Bypasses RAG queries and extracts from raw markdown text.
paper2slides/summary/paper.py:318
↓ 1 callersFunctionextract_tables
Extract tables from markdown content. Args: content: Full markdown content lines: Content split by lines search_
paper2slides/summary/extractors/table_extractor.py:9
↓ 1 callersFunctionextract_with_semaphore
(section: str, content: str)
paper2slides/summary/paper.py:218
↓ 1 callersFunctionformatDate
(date)
frontend/src/components/Sidebar.jsx:38
↓ 1 callersFunctionformatDate
(date)
frontend/src/components/ConversationList.jsx:15
↓ 1 callersFunctionformatDate
(date)
frontend/src/components/HistoryPanel.jsx:15
↓ 1 callersMethodgenerate
Generate images from ContentPlan. Args: plan: ContentPlan from ContentPlanner gen_input: GenerationI
paper2slides/generator/image_generator.py:113
↓ 1 callersMethodgenerate_description_only
Generate text description and entity info only, without entity relation extraction. Used for batch processing stage 1. Args:
paper2slides/raganything/modalprocessors.py:442
← previousnext →101–200 of 394, ranked by callers