- Implementation of specialist execution api, including SSE protocol
- eveai_chat becomes deprecated and should be replaced with SSE - Adaptation of STANDARD_RAG specialist - Base class definition allowing to realise specialists with crewai framework - Implementation of SPIN_SPECIALIST - Implementation of test app for testing specialists (test_specialist_client). Also serves as an example for future SSE-based client - Improvements to startup scripts to better handle and scale multiple connections - Small improvements to the interaction forms and views - Caching implementation improved and augmented with additional caches
This commit is contained in:
9
eveai_chat_workers/outputs/rag/rag_v1_0.py
Normal file
9
eveai_chat_workers/outputs/rag/rag_v1_0.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from typing import List, Optional
|
||||
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
|
||||
class RAGOutput(BaseModel):
|
||||
answer: Optional[str] = Field(None, description="Answer to the questions asked")
|
||||
citations: Optional[List[str]] = Field(None, description="A list of sources used in generating the answer")
|
||||
insufficient_info: Optional[bool] = Field(None, description="An indication if there's insufficient information to answer")
|
||||
Reference in New Issue
Block a user