- Refinenement of improved RAG_SPECIALIST
- Changed label of RetrieverType in Retriever form
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user