mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-23 03:19:38 +00:00
experimental: docstrings update (#18048)
Added missed docstrings. Formatted docsctrings to the consistent format.
This commit is contained in:
@@ -24,6 +24,8 @@ If a question does not make any sense, or is not factually coherent, explain why
|
||||
|
||||
|
||||
class ChatWrapper(BaseChatModel):
|
||||
"""Wrapper for chat LLMs."""
|
||||
|
||||
llm: LLM
|
||||
sys_beg: str
|
||||
sys_end: str
|
||||
@@ -130,6 +132,8 @@ class ChatWrapper(BaseChatModel):
|
||||
|
||||
|
||||
class Llama2Chat(ChatWrapper):
|
||||
"""Wrapper for Llama-2-chat model."""
|
||||
|
||||
@property
|
||||
def _llm_type(self) -> str:
|
||||
return "llama-2-chat"
|
||||
@@ -145,6 +149,8 @@ class Llama2Chat(ChatWrapper):
|
||||
|
||||
|
||||
class Orca(ChatWrapper):
|
||||
"""Wrapper for Orca-style models."""
|
||||
|
||||
@property
|
||||
def _llm_type(self) -> str:
|
||||
return "orca-style"
|
||||
@@ -158,6 +164,8 @@ class Orca(ChatWrapper):
|
||||
|
||||
|
||||
class Vicuna(ChatWrapper):
|
||||
"""Wrapper for Vicuna-style models."""
|
||||
|
||||
@property
|
||||
def _llm_type(self) -> str:
|
||||
return "vicuna-style"
|
||||
|
Reference in New Issue
Block a user