langchain_community.utilities.arcee
.ArceeWrapperΒΆ
- class langchain_community.utilities.arcee.ArceeWrapper(arcee_api_key: Union[str, SecretStr], arcee_api_url: str, arcee_api_version: str, model_kwargs: Optional[Dict[str, Any]], model_name: str)[source]ΒΆ
Wrapper for Arcee API.
For more details, see: https://www.arcee.ai/
Initialize ArceeWrapper.
- Parameters
arcee_api_key β API key for Arcee API.
arcee_api_url β URL for Arcee API.
arcee_api_version β Version of Arcee API.
model_kwargs β Keyword arguments for Arcee API.
model_name β Name of an Arcee model.
Methods
__init__
(arcee_api_key, arcee_api_url, ...)Initialize ArceeWrapper.
generate
(prompt, **kwargs)Generate text from Arcee DALM.
retrieve
(query, **kwargs)Retrieve {size} contexts with your retriever for a given query
- __init__(arcee_api_key: Union[str, SecretStr], arcee_api_url: str, arcee_api_version: str, model_kwargs: Optional[Dict[str, Any]], model_name: str)[source]ΒΆ
Initialize ArceeWrapper.
- Parameters
arcee_api_key β API key for Arcee API.
arcee_api_url β URL for Arcee API.
arcee_api_version β Version of Arcee API.
model_kwargs β Keyword arguments for Arcee API.
model_name β Name of an Arcee model.
- generate(prompt: str, **kwargs: Any) str [source]ΒΆ
Generate text from Arcee DALM.
- Parameters
prompt β Prompt to generate text from.
size β The max number of context results to retrieve. Defaults to 3. (Can be less if filters are provided).
filters β Filters to apply to the context dataset.
- retrieve(query: str, **kwargs: Any) List[Document] [source]ΒΆ
Retrieve {size} contexts with your retriever for a given query
- Parameters
query β Query to submit to the model
size β The max number of context results to retrieve. Defaults to 3. (Can be less if filters are provided).
filters β Filters to apply to the context dataset.