conductor(checkpoint): Final checkpoint for RAG Support track - Phase 4 complete
This commit is contained in:
+1
-1
@@ -2250,7 +2250,7 @@ def send(
|
||||
monitor = performance_monitor.get_monitor()
|
||||
if monitor.enabled: monitor.start_component("ai_client.send")
|
||||
|
||||
if rag_engine and getattr(rag_engine.config, "enabled", False):
|
||||
if rag_engine and getattr(rag_engine.config, "enabled", False) and "## Retrieved Context" not in user_message:
|
||||
chunks = rag_engine.search(user_message)
|
||||
if chunks:
|
||||
context_block = "## Retrieved Context\n\n"
|
||||
|
||||
@@ -534,6 +534,7 @@ class AppController:
|
||||
if self.rag_config:
|
||||
self.rag_config.embedding_provider = value
|
||||
if self.rag_engine: self.rag_engine = rag_engine.RAGEngine(self.rag_config, self.active_project_root)
|
||||
if self.rag_engine: self.rag_engine = rag_engine.RAGEngine(self.rag_config, self.active_project_root)
|
||||
|
||||
@property
|
||||
def rag_chunk_size(self) -> int:
|
||||
|
||||
+7
-1
@@ -598,10 +598,12 @@ class MCPConfiguration:
|
||||
|
||||
@dataclass
|
||||
class VectorStoreConfig:
|
||||
provider: str # 'chroma', 'qdrant', 'mock'
|
||||
provider: str # 'chroma', 'qdrant', 'mock', 'mcp'
|
||||
url: Optional[str] = None
|
||||
api_key: Optional[str] = None
|
||||
collection_name: str = 'manual_slop'
|
||||
mcp_server: Optional[str] = None
|
||||
mcp_tool: Optional[str] = None
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
return {
|
||||
@@ -609,6 +611,8 @@ class VectorStoreConfig:
|
||||
"url": self.url,
|
||||
"api_key": self.api_key,
|
||||
"collection_name": self.collection_name,
|
||||
"mcp_server": self.mcp_server,
|
||||
"mcp_tool": self.mcp_tool,
|
||||
}
|
||||
|
||||
@classmethod
|
||||
@@ -618,6 +622,8 @@ class VectorStoreConfig:
|
||||
url=data.get("url"),
|
||||
api_key=data.get("api_key"),
|
||||
collection_name=data.get("collection_name", "manual_slop"),
|
||||
mcp_server=data.get("mcp_server"),
|
||||
mcp_tool=data.get("mcp_tool"),
|
||||
)
|
||||
|
||||
@dataclass
|
||||
|
||||
Reference in New Issue
Block a user