Arcee class for generating text using Arceeโs Domain Adapted Language Models (DALMs).
Setup
Before using Arcee, make sure the Arcee API key is set asARCEE_API_KEY environment variable. You can also pass the api key as a named parameter.
Additional Configuration
You can also configure Arceeโs parameters such asarcee_api_url, arcee_app_url, and model_kwargs as needed.
Setting the model_kwargs at the object initialization uses the parameters as default for all the subsequent calls to the generate response.
Generating Text
You can generate text from Arcee by providing a prompt. Hereโs an example:Additional parameters
Arcee allows you to applyfilters and set the size (in terms of count) of retrieved document(s) to aid text generation. Filters help narrow down the results. Hereโs how to use these parameters: