Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions comps/cores/proto/api_protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,9 @@ class ChatCompletionRequest(BaseModel):
# define
request_type: Literal["chat"] = "chat"

# key index name
key_index_name: Optional[str] = None


class DocSumChatCompletionRequest(ChatCompletionRequest):
summary_type: str = "auto" # can be "auto", "stuff", "truncate", "map_reduce", "refine"
Expand Down
2 changes: 2 additions & 0 deletions comps/cores/proto/docarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ class EmbedDoc(BaseDoc):
lambda_mult: float = 0.5
score_threshold: float = 0.2
constraints: Optional[Union[Dict[str, Any], List[Dict[str, Any]], None]] = None
index_name: Optional[str] = None


class EmbedMultimodalDoc(EmbedDoc):
Expand Down Expand Up @@ -225,6 +226,7 @@ class LLMParams(BaseDoc):
repetition_penalty: float = 1.03
stream: bool = True
language: str = "auto" # can be "en", "zh"
key_index_name: Optional[str] = None

chat_template: Optional[str] = Field(
default=None,
Expand Down
Loading
Loading