⚡ Netrunner媒体数据库和人工智能推荐器
“数据是新货币。让我们抢劫TMDB银行吧。”——露西
\[EN\]该项目是管理媒体库的完整生态系统。它从TMDB中提取数据,通过本地人工智能(Ollama)丰富数据,并允许人工智能根据您的喜好向您提出建议。
服务器选择:如果您使用的是法语提示符,请将MCP设置为server-MCP-en.py。对于英语提示符,请使用server-MCP-en.py。这确保AI以与其个性相同的语言接收技术响应。
\[EN\]这个项目是一个完整的生态系统来管理你的媒体库。它提取TMDB数据,通过本地AI(Ollama)对其进行丰富,并允许AI为您提供个性化建议。
服务器选择:如果您使用法语提示,请将MCP配置指向Server_MCP_Fr.py。对于英语提示,请使用Server_MCP_En.py。这可确保AI收到与其个性语言相同的技术反馈。
______________________________________________________________________
📡 导航与勘探(目录)
-Simple Search | Recherche simple : * "Search for the movie Inception in the catalog."
"Cherche le film Inception dans le catalogue."
-Status Check | Vérification de statut : * "Have I already watched Matrix?"
"Est-ce que j'ai déjà vu Matrix ?"
-Technical Intel | Détails techniques : * "Give me the synopsis and rating for Blade Runner 2049."
"Donne-moi le synopsis et la note de Blade Runner 2049."
-Ambiguity Management | Gestion d'ambiguïté : * "Check if there are multiple versions of Batman."
"Regarde s'il y a plusieurs versions de Batman."🧠 情报与概况(分析|分析)
-Profile Analysis | Analyse de profil : * "Analyze my user profile."
"Analyse mon profil utilisateur."
-Taste-Based Recommendation | Recommandation par goûts : * "Find a recent movie that matches my tastes."
"Trouve-moi un film récent qui correspond à mes goûts."
-Genre Exploration | Exploration par genre : * "Suggest a Cyberpunk-type anime that I haven't watched yet."
"Propose-moi un anime de type Cyberpunk que je n'ai pas vu."
-Classics & Mood | Classiques et Humeur : * "I'm in the mood for something dark, what do you have in stock?"
"Je suis d'humeur pour quelque chose de sombre, qu'est-ce que tu as en stock ?"
-Streaming Location | Localisation Streaming : * "Where can I watch the series Arcane?"
"Sur quelle plateforme puis-je voir la série Arcane ?"💾 更新(反馈)
-Positive Feedback | Avis Positif : * "I loved the movie Interstellar, update my database."
"J'ai aimé le film Interstellar, mets à jour ma base."
-Neutral Log | Marquage Neutre : * "Mark the series Dark as watched."
"Marque la série Dark comme vue."
-Negative Feedback | Avis Négatif : * "The movie [Title] was awful, record that."
"Le film [Titre] était nul, enregistre ça."🛠️ 复杂查询(多过滤器)
-Time & Type | Temps et Type : * "Find me a recent Thriller anime released between 2020 and 2025."
"Trouve-moi un anime récent de type Thriller entre 2020 et 2025."
-Similarity | Similitude : * "I want to see a movie similar to Inception from my unwatched list."
"Je veux voir un film similaire à Inception parmi les œuvres non vues."
-Random Scan | Scan Aléatoire : * "Suggest 5 random media, mix movies and series."
"Suggère-moi 5 médias aléatoires, mélange films et séries."______________________________________________________________________
🧠 MCP集成/MCP集成
\[EN\]本项目旨在与标准配合使用 模型上下文协议(MCP).数据库 Netrun.db 它的结构是由MCP服务器读取,允许任何人工智能(小志、克劳德等)访问您的媒体,分析您的口味,并实时向您推荐内容。
\[EN\]该项目旨在与 模型上下文协议(MCP) 标准。这 Netrun.db 数据库的结构是由MCP服务器读取的,允许任何人工智能(小智、克劳德等)访问您的媒体,分析您的口味,并实时推荐内容。
______________________________________________________________________
🔗 MCP服务器配置
\[EN\]连接到AI:为了让AI访问数据库,您需要在MCP应用程序中声明服务器。将配置中的路径更改为server@mcp.py。
{ “mcpServers”:{ “netrunner”:{ “command”:“python”, “args”:\[“C:\\PUT_YOUR_PATH/scripts/server_mcp_Fr.py”\] } } }
\[EN\]连接到AI:要允许AI访问数据库,您必须在MCP应用程序中声明服务器。更新配置中server_mcp.py的路径。
{ “mcpServers”:{ “netrunner”:{ “command”:“python”, “args”:\[“C:\\PUT_YOUR_PATH/scripts/server_mcp_En.py”\] } } }
______________________________________________________________________
🛠️ 项目结构/项目结构
run_export.bat:\[EN\]TMDB提取的入口点/\[FR\]TMDB提取入口点。tagging.bat:\[en\]启动AI Tagger&Stats Monitor/\[fr\]启动AI Tagger和Stats Monitor。scripts/:\[en\]核心Python逻辑/\[fr\]核心反应器(Python)。Netrun.db:\[EN\]SQLite数据库/\[FR\]SQLite数据库。role_prompt_En.txt&role_prompt_Fr.txt:\[en\]AI的系统提示/\[fr\]AI的系统提示。database French Tagged/:\[EN\]包含基础Netrun.db已经用法语预先提取和标记。scripts/server_mcp_En.py:\[en\]MCP服务器(英语日志和工具)/\[fr\]MCP server(英语日志与工具)。scripts/server_mcp_Fr.py:\[en\]MCP服务器(法语日志和工具)/\[fr\]MCP server(法语日志与工具)。
______________________________________________________________________
🚀 设置和配置
1.要求/先决条件
- Python 3.10+
- 奥拉玛: ollama.com (型号:
qwen2.5:3b) - TMDB API密钥: themoviedb.org
2.个性训练/入门(重要!)
\[FR\] 非常重要: 为了让AI了解您的口味,您需要手动填写列中的几行 user_rating 德拉桌 media :
1:目标/喜欢0:中性/中性-1:讨厌/不喜欢
EN 关键步骤: 为了让人工智能了解你的口味,你必须在 user_rating 列:
1:喜欢0:中立-1:不喜欢
3.流媒体配置
\[EN\]对于verifier-streaming函数,请确保已在服务器脚本中配置tmdb-api-key。默认情况下,代码中的区域设置为fr,以确保本地结果。
\[EN\]对于check_streaming函数,请确保在服务器脚本中设置了TMDB_API_KEY。默认情况下,该地区设置为FR,但可以在第256行修改为US、GB等。
______________________________________________________________________
\[EN\]使用说明
- 提取 : 启动
run_export.bat(首先编辑它以添加TMDB API密钥)。 - 标记IA :检查Ollama是否已启动(
ollama serve),然后启动tagging.bat以丰富基础。 - 数据库 :您可以从中复制预填充的数据库
database French Tagged/到根以跳过步骤1和2。 - 激活IA(MCP) :
- 选择您的语言(server_mcp_Fr.py 哦 _En.py). - 将脚本路径添加到MCP配置(例如:Claude Desktop)。 - 注入内容 role_prompt_Fr.txt (或)在您的助手中激活Lucie的个性。
\[EN\]说明
- 提取:运行
run_export.bat(首先编辑它以添加您的TMDB API密钥)。 - AI标记:确保Olama正在运行(
ollama serve),然后启动tagging.bat丰富数据库。 - 数据库:您可以从以下位置复制预先填写的数据库
database French Tagged/转到根文件夹以跳过步骤1和2。 - 人工智能激活(MCP):
- 选择您的语言(server_mcp_En.py 或 _Fr.py). - 将脚本路径添加到MCP配置中(例如,Claude Desktop)。 - 注入以下内容物 role_prompt_En.txt (或Fr)进入你的助手,激发露西的个性。
______________________________________________________________________
🛡️ 安全说明
“不要在网格上共享您的API密钥。请确保其安全。” “不要共享API密钥。把它放在安全的地方。»
______________________________________________________________________
❤️ 支持
如果你喜欢这个工具,可以考虑给我买杯奶茶🧋\ 如果你喜欢这个工具,考虑给我一杯泡泡茶🧋
