Arcee helps with the development of the SLMs—small, specialized, secure, and scalable language models.This notebook demonstrates how to use the
ArceeRetriever
class to retrieve relevant document(s) for Arcee’s Domain Adapted Language Models
(DALMs
).
ArceeRetriever
, make sure the Arcee API key is set as ARCEE_API_KEY
environment variable. You can also pass the api key as a named parameter.
ArceeRetriever
’s parameters such as arcee_api_url
, arcee_app_url
, and model_kwargs
as needed.
Setting the model_kwargs
at the object initialization uses the filters and size as default for all the subsequent retrievals.
filters
and set the size
(in terms of count) of retrieved document(s). Filters help narrow down the results. Here’s how to use these parameters: