mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-28 06:48:50 +00:00
update experimental (#8402)
some changes were made to experimental, porting them over
This commit is contained in:
@@ -23,7 +23,7 @@ def import_rellm() -> rellm:
|
||||
try:
|
||||
import rellm
|
||||
except ImportError:
|
||||
raise ValueError(
|
||||
raise ImportError(
|
||||
"Could not import rellm python package. "
|
||||
"Please install it with `pip install rellm`."
|
||||
)
|
||||
@@ -31,6 +31,8 @@ def import_rellm() -> rellm:
|
||||
|
||||
|
||||
class RELLM(HuggingFacePipeline):
|
||||
"""RELLM wrapped LLM using HuggingFace Pipeline API."""
|
||||
|
||||
regex: RegexPattern = Field(..., description="The structured format to complete.")
|
||||
max_new_tokens: int = Field(
|
||||
default=200, description="Maximum number of new tokens to generate."
|
||||
|
Reference in New Issue
Block a user