- Refinenement of improved RAG_SPECIALIST

- Changed label of RetrieverType in Retriever form
This commit is contained in:
Josako
2025-10-21 11:00:26 +02:00
parent aab766fe5e
commit 1d79a19981
6 changed files with 13 additions and 12 deletions

View File

@@ -1,4 +1,5 @@
import json
import random
from os import wait
from typing import Optional, List, Dict, Any
@@ -117,7 +118,7 @@ class SpecialistExecutor(CrewAIBaseSpecialistExecutor):
self.log_tuning("RAG Specialist rag_state execution started", {})
insufficient_info_message = TranslationServices.translate(self.tenant_id,
INSUFFICIENT_INFORMATION_MESSAGE,
random.choice(INSUFFICIENT_INFORMATION_MESSAGES),
arguments.language)
formatted_context, citations = self._retrieve_context(arguments)
@@ -175,6 +176,14 @@ class RAGSpecialistInput(BaseModel):
history: Optional[str] = Field(None, alias="history")
name: Optional[str] = Field(None, alias="name")
welcome_message: Optional[str] = Field(None, alias="welcome_message")
tone_of_voice: Optional[str] = Field(None, alias="tone_of_voice")
tone_of_voice_context: Optional[str] = Field(None, alias="tone_of_voice_context")
language_level: Optional[str] = Field(None, alias="language_level")
language_level_context: Optional[str] = Field(None, alias="language_level_context")
response_depth: Optional[str] = Field(None, alias="response_depth")
response_depth_context: Optional[str] = Field(None, alias="response_depth_context")
conversation_purpose: Optional[str] = Field(None, alias="conversation_purpose")
conversation_purpose_context: Optional[str] = Field(None, alias="conversation_purpose_context")
class RAGSpecialistResult(SpecialistResult):