plex_rag
Perform natural language semantic search across your Plex library, including metadata and subtitles. Sync and enrich metadata to power deep media discovery.
Instructions
RAG integration for Plex Media. Semantic search and metadata enrichment.
PORTMANTEAU PATTERN RATIONALE: Consolidates neural search, metadata vectorization, and external high-value discovery into a single tool to manage the knowledge lifecycle.
OPERATIONS:
semantic_search: Natural language search across indexed Plex metadata (Title, Plot, etc.).
search_subtitles: Semantic search across indexed dialogue/subtitles for deep content discovery.
sync_metadata: Extract and vectorize core metadata into the local store.
sync_subtitles: Download, parse, and index subtitle tracks for semantic dialogue search.
status: Check the health and document counts of RAG indices.
Return Format
{"success": bool, "operation": str, "data": dict | list, "count": int | None, "error": str | None}
Examples
await plex_rag(operation="semantic_search", query="time travel paradox") await plex_rag(operation="sync_metadata", enrich=True) await plex_rag(operation="status")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of search results to return. | |
| query | No | Search query for semantic search operations. | |
| enrich | No | Whether to enrich metadata with Wikipedia summaries. | |
| media_id | No | Specific media ID to target for sync operations. | |
| operation | Yes | The RAG operation to perform. | |
| library_id | No | Specific library ID to target for sync operations. |