MCPcopy Create free account

hub / github.com/HKUDS/Paper2Slides / functions

Functions394 in github.com/HKUDS/Paper2Slides

↓ 13 callersFunctiongenerateId
()
frontend/src/components/ChatWindow.jsx:9
↓ 11 callersMethod_get_rag
(self)
paper2slides/rag/client.py:132
↓ 9 callersMethod_ensure_lightrag_initialized
(self)
paper2slides/raganything/batch.py:27
↓ 8 callersFunctionsave_state
Save pipeline state to file.
paper2slides/core/state.py:28
↓ 6 callersMethodaquery
Pure text query - directly calls LightRAG's query functionality Args: query: Query text mode: Query mode ("l
paper2slides/raganything/query.py:100
↓ 6 callersMethodcheck_installation
Abstract method to check if the parser is properly installed. Must be implemented by subclasses. Returns: bool:
paper2slides/raganything/parser.py:555
↓ 5 callersMethod_mark_multimodal_processing_complete
Mark multimodal content processing as complete in the document status.
paper2slides/raganything/processor.py:1317
↓ 5 callersMethod_truncate_context
Truncate context to maximum token limit Args: context: Context text to truncate Returns: Truncated context t
paper2slides/raganything/modalprocessors.py:308
↓ 5 callersFunctionget_base_dir
Get base directory for project.
paper2slides/core/paths.py:9
↓ 5 callersFunctionget_project_name
Extract project name from input path.
paper2slides/utils/path_utils.py:19
↓ 5 callersFunctionget_summary_checkpoint
Get path to summary checkpoint file.
paper2slides/core/paths.py:53
↓ 5 callersFunctionload_json
Load data from JSON file.
paper2slides/utils/file_utils.py:16
↓ 4 callersMethod_create_entity_and_chunk
Create entity and text chunk
paper2slides/raganything/modalprocessors.py:465
↓ 4 callersMethod_extract_all_json_candidates
Extract all possible JSON candidates from response
paper2slides/raganything/modalprocessors.py:573
↓ 4 callersMethod_get_context_for_item
Get context for current processing item Args: item_info: Information about current item (page_idx, index, etc.) Returns:
paper2slides/raganything/modalprocessors.py:417
↓ 4 callersMethod_robust_json_parse
Robust JSON parsing with multiple fallback strategies
paper2slides/raganything/modalprocessors.py:547
↓ 4 callersFunctionclean_references
(text: str)
paper2slides/summary/clean.py:7
↓ 4 callersFunctionformatFileSize
(bytes)
frontend/src/components/MessageList.jsx:17
↓ 4 callersFunctionget_mode_dir
Get mode-specific directory (fast or normal).
paper2slides/core/paths.py:14
↓ 4 callersFunctionget_rag_checkpoint
Get path to RAG checkpoint file.
paper2slides/core/paths.py:47
↓ 4 callersMethodinitialize
Initialize the RAG system. Called automatically by context manager.
paper2slides/rag/client.py:147
↓ 4 callersMethodparse_pdf
Parse PDF document using MinerU 2.0 Args: pdf_path: Path to the PDF file output_dir: Output directory path
paper2slides/raganything/parser.py:856
↓ 4 callersFunctionrenderGroup
(title, convs)
frontend/src/components/ConversationList.jsx:115
↓ 4 callersFunctionsave_json
Save data to JSON file.
paper2slides/utils/file_utils.py:9
↓ 3 callersMethod__init__
Initialize the base parser.
paper2slides/raganything/parser.py:61
↓ 3 callersMethod_apply_chunk_template
Apply the appropriate chunk template based on content type Args: content_type: Type of content (image, table, equation,
paper2slides/raganything/processor.py:909
↓ 3 callersMethod_call_model
Call image generation provider based on configuration.
paper2slides/generator/image_generator.py:404
↓ 3 callersMethod_create_context_config
Create context configuration from RAGAnything config
paper2slides/raganything/raganything.py:151
↓ 3 callersMethod_filter_images
Filter images used in given sections.
paper2slides/generator/image_generator.py:396
↓ 3 callersMethod_format_single_section_markdown
Format a single section as markdown.
paper2slides/generator/image_generator.py:340
↓ 3 callersMethod_get_api_kwargs
Get API kwargs, only including base_url if it's set.
paper2slides/rag/client.py:56
↓ 3 callersMethod_read_output_files
Read the output files generated by docling and convert to MinerU format Args: output_dir: Output directory f
paper2slides/raganything/parser.py:1406
↓ 3 callersMethod_run_docling_command
Run docling command line tool Args: input_path: Path to input file or directory output_dir: Output directory
paper2slides/raganything/parser.py:1336
↓ 3 callersMethod_try_parse_json
Try to parse JSON string, return None if failed
paper2slides/raganything/modalprocessors.py:604
↓ 3 callersMethodfinalize_storages
Finalize all storages including parse cache and LightRAG storages This method should be called when shutting down to properly clean up resour
paper2slides/raganything/raganything.py:355
↓ 3 callersFunctiongetFileTypeName
(file)
frontend/src/components/MessageList.jsx:32
↓ 3 callersFunctionget_config_dir
Get config-specific directory for plan and output.
paper2slides/core/paths.py:41
↓ 3 callersMethodget_figure_info
Get figure info with full paths for JSON serialization.
paper2slides/summary/models.py:90
↓ 3 callersFunctionget_plan_checkpoint
Get path to plan checkpoint file.
paper2slides/core/paths.py:65
↓ 3 callersFunctionget_processor_for_type
Get appropriate processor based on content type Args: modal_processors: Dictionary of available processors content_type: Con
paper2slides/raganything/utils.py:224
↓ 3 callersMethodget_table_info
Get table info for JSON serialization.
paper2slides/summary/models.py:86
↓ 3 callersMethodindex
Parse and index a document. Args: file_path: Path to document (PDF, DOC, etc.) output_dir: Directory
paper2slides/rag/client.py:157
↓ 3 callersMethodis_paper
Check if content is from a paper document.
paper2slides/generator/config.py:98
↓ 3 callersFunctionload_state
Load pipeline state from file.
paper2slides/core/state.py:23
↓ 3 callersMethodprocess_batch
Process multiple files in parallel Args: file_paths: List of file paths or directories to process output_dir
paper2slides/raganything/batch_parser.py:201
↓ 3 callersMethodprocess_document_complete
(self, file_path: str, **kwargs)
paper2slides/raganything/batch.py:28
↓ 3 callersMethodquery
Query the paper content. Args: question: Question about the paper. mode: Query mode - "local", "glob
paper2slides/rag/client.py:270
↓ 3 callersFunctionquery_one
(category: str, idx: int, query: str)
paper2slides/core/stages/rag_stage.py:169
↓ 3 callersFunctionseparate_content
Separate text content and multimodal content Args: content_list: Content list from MinerU parsing Returns: (text_conten
paper2slides/raganything/utils.py:13
↓ 3 callersMethodset_content_source_for_context
Set content source for context extraction in all modal processors Args: content_source: Source content for context extraction (e.
paper2slides/raganything/raganything.py:477
↓ 3 callersMethodto_dict
Convert to dictionary for JSON serialization.
paper2slides/summary/models.py:22
↓ 2 callersMethod_build_assets_section
Build the tables/figures section based on available assets.
paper2slides/generator/content_planner.py:228
↓ 2 callersMethod_build_slide_prompt
Build prompt for slide with layout rules and consistency.
paper2slides/generator/image_generator.py:309
↓ 2 callersMethod_call_multimodal_llm
Call multimodal LLM with text and images inline.
paper2slides/generator/content_planner.py:253
↓ 2 callersMethod_create_context_extractor
Create context extractor with tokenizer from LightRAG
paper2slides/raganything/raganything.py:162
↓ 2 callersMethod_create_llm_func
(self)
paper2slides/rag/client.py:64
↓ 2 callersMethod_encode_image_to_base64
Encode image to base64
paper2slides/raganything/modalprocessors.py:800
↓ 2 callersMethod_extract_from_content_list
Extract context from MinerU-style content list Args: content_list: List of content items with page_idx and type info
paper2slides/raganything/modalprocessors.py:114
↓ 2 callersMethod_extract_from_text_source
Extract context from plain text source Args: text_source: Plain text content current_item_info: Current item informat
paper2slides/raganything/modalprocessors.py:265
↓ 2 callersMethod_extract_page_context
Extract context based on page boundaries Args: content_list: List of content items current_item_info: Current item wi
paper2slides/raganything/modalprocessors.py:133
↓ 2 callersFunction_extract_section
Extract structured content for a single section using LLM. Args: content: Merged RAG content for the section section: Section
paper2slides/summary/paper.py:141
↓ 2 callersMethod_extract_text_from_item
Extract text content from a content item Args: item: Content item dictionary Returns: Extracted text content
paper2slides/raganything/modalprocessors.py:206
↓ 2 callersMethod_fallback_sections
Return minimal fallback sections if parsing fails.
paper2slides/generator/content_planner.py:421
↓ 2 callersMethod_generate_content_based_doc_id
Generate doc_id based on document content Args: content_list: Parsed content list Returns: str: Con
paper2slides/raganything/processor.py:79
↓ 2 callersMethod_get_recommended_backend
Get recommended backend based on availability
paper2slides/raganything/enhanced_markdown.py:460
↓ 2 callersMethod_initialize_processors
Initialize multimodal processors with appropriate model functions
paper2slides/raganything/raganything.py:174
↓ 2 callersMethod_parse_sections
Parse LLM response into Section objects. Args: llm_response: The LLM response containing JSON is_slides: If T
paper2slides/generator/content_planner.py:309
↓ 2 callersMethod_process_multimodal_content
Process multimodal content (using specialized processors) Args: multimodal_items: List of multimodal items f
paper2slides/raganything/processor.py:440
↓ 2 callersMethod_progressive_quote_fix
Progressive fixing of quote and escape issues
paper2slides/raganything/modalprocessors.py:628
↓ 2 callersMethod_read_output_files
Read the output files generated by mineru Args: output_dir: Output directory file_stem: File name without ex
paper2slides/raganything/parser.py:790
↓ 2 callersMethod_run_mineru_command
Run mineru command line tool Args: input_path: Path to input file or directory output_dir: Output directory
paper2slides/raganything/parser.py:588
↓ 2 callersMethod_truncate
Truncate text to max length.
paper2slides/generator/content_planner.py:462
↓ 2 callersMethodclose
Cleanup resources when object is destroyed
paper2slides/raganything/raganything.py:136
↓ 2 callersMethodconvert_with_pandoc
Convert using Pandoc (best for complex documents)
paper2slides/raganything/enhanced_markdown.py:310
↓ 2 callersFunctioncreate_state
Create initial pipeline state.
paper2slides/core/state.py:34
↓ 2 callersFunctiondetect_start_stage
Detect which stage to start from based on existing checkpoints.
paper2slides/core/state.py:43
↓ 2 callersFunctionextract_tables_and_figures
Extract tables and figures from original markdown file. This function searches for HTML tables and images, then looks for their capt
paper2slides/summary/extractors/__init__.py:11
↓ 2 callersFunctionfetchFinalResult
(sessionId, convId)
frontend/src/components/ChatWindow.jsx:357
↓ 2 callersMethodfilter_supported_files
Filter file paths to only include supported file types Args: file_paths: List of file paths or directories r
paper2slides/raganything/batch_parser.py:110
↓ 2 callersFunctionformatFileSize
(bytes)
frontend/src/components/ChatWindow.jsx:110
↓ 2 callersFunctionformatFileSize
(bytes)
frontend/src/components/MessageInput.jsx:71
↓ 2 callersFunctiongenerate_general_queries
Generate queries for general document analysis using LLM. Args: rag_client: RAG client for API config overview: Document
paper2slides/rag/query.py:161
↓ 2 callersFunctiongetFileTypeName
(file)
frontend/src/components/ChatWindow.jsx:125
↓ 2 callersFunctiongetFileTypeName
(file)
frontend/src/components/MessageInput.jsx:78
↓ 2 callersFunctionget_general_overview
( rag_client: "RAGClient", mode: str = "mix", max_section_length: int = 0, # 0 = no truncation )
paper2slides/rag/query.py:207
↓ 2 callersMethodget_page_range
Get page count range for slides.
paper2slides/generator/config.py:70
↓ 2 callersMethodget_running_session
Get the currently running session ID
api/server.py:81
↓ 2 callersFunctionget_state_path
Get path to state file.
paper2slides/core/state.py:18
↓ 2 callersMethodget_summary_text
Get the full summary text.
paper2slides/generator/config.py:102
↓ 2 callersMethodget_supported_extensions
Get list of supported file extensions
paper2slides/raganything/batch_parser.py:101
↓ 2 callersMethodget_tables_markdown
Get all tables as markdown, sorted by original position.
paper2slides/summary/models.py:70
↓ 2 callersFunctionhandleFileClick
(file)
frontend/src/components/Sidebar.jsx:52
↓ 2 callersFunctionhandleFileClick
(file, e)
frontend/src/components/HistoryPanel.jsx:64
↓ 2 callersFunctionhandleOutputSelect
(selectedOutput)
frontend/src/components/ConfigPanel.jsx:36
↓ 2 callersFunctioninsert_text_content
Insert pure text content into LightRAG Args: lightrag: LightRAG instance input: Single document string or list of document s
paper2slides/raganything/utils.py:142
↓ 2 callersMethodis_cancelled
Check if a session has been cancelled
api/server.py:77
↓ 2 callersFunctionlog_section
Log a section separator for better readability.
paper2slides/utils/logging.py:19
↓ 2 callersFunctionmain
Main entry point for Paper2Slides CLI.
paper2slides/main.py:35
↓ 2 callersFunctionmerge_answers
Merge all RAG answers for a section. Args: rag_results: RAG query results section: Section name to merge clean_refs:
paper2slides/summary/paper.py:97
↓ 2 callersMethodparse_document
Abstract method to parse a document. Must be implemented by subclasses. Args: file_path: Path to the file to be
paper2slides/raganything/parser.py:531
next →1–100 of 394, ranked by callers