fix: Update MCP RAG classes to match BaseRAGExample signature
- Fix SlackMCPRAG and TwitterMCPRAG __init__ methods to provide required parameters - Add name, description, and default_index_name to super().__init__ calls - Resolves test failures: test_slack_rag_initialization and test_twitter_rag_initialization This fixes the TypeError caused by BaseRAGExample requiring additional parameters.
This commit is contained in:
@@ -25,8 +25,11 @@ class SlackMCPRAG(BaseRAGExample):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__()
|
super().__init__(
|
||||||
self.default_index_name = "slack_messages"
|
name="Slack MCP RAG",
|
||||||
|
description="RAG application for Slack messages via MCP servers",
|
||||||
|
default_index_name="slack_messages"
|
||||||
|
)
|
||||||
|
|
||||||
def _add_specific_arguments(self, parser: argparse.ArgumentParser):
|
def _add_specific_arguments(self, parser: argparse.ArgumentParser):
|
||||||
"""Add Slack MCP-specific arguments."""
|
"""Add Slack MCP-specific arguments."""
|
||||||
|
|||||||
@@ -25,8 +25,11 @@ class TwitterMCPRAG(BaseRAGExample):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__()
|
super().__init__(
|
||||||
self.default_index_name = "twitter_bookmarks"
|
name="Twitter MCP RAG",
|
||||||
|
description="RAG application for Twitter bookmarks via MCP servers",
|
||||||
|
default_index_name="twitter_bookmarks"
|
||||||
|
)
|
||||||
|
|
||||||
def _add_specific_arguments(self, parser: argparse.ArgumentParser):
|
def _add_specific_arguments(self, parser: argparse.ArgumentParser):
|
||||||
"""Add Twitter MCP-specific arguments."""
|
"""Add Twitter MCP-specific arguments."""
|
||||||
|
|||||||
Reference in New Issue
Block a user