Skip to main content
Glama

MCP-RAG

by AnuragB7
test_ppt_extraction.py1 kB
import asyncio from document_processors import ContentExtractor async def test_powerpoint_extraction(): """Test PowerPoint extraction capabilities""" # Test with a sample PPTX file file_path = "path/to/your/presentation.pptx" print("=== PowerPoint Extraction Test ===") try: content, file_type = await ContentExtractor.extract_content(file_path) print(f"\nFile Type: {file_type}") print(f"Extracted content length: {len(content)} characters") if content and len(content) > 100: print("SUCCESS! Content extracted:") print("-" * 50) print(content[:1000] + "..." if len(content) > 1000 else content) print("-" * 50) else: print("FAILED: No substantial content extracted") print(f"Content: {content[:200]}") except Exception as e: print(f"ERROR: {e}") if __name__ == "__main__": asyncio.run(test_powerpoint_extraction())

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AnuragB7/MCP-RAG'

If you have feedback or need assistance with the MCP directory API, please join our Discord server