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
).
Setup
Before usingArceeRetriever
, 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.
Additional Configuration
You can also configureArceeRetriever
’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.
Retrieving documents
You can retrieve relevant documents from uploaded contexts by providing a query. Here’s an example:Additional parameters
Arcee allows you to applyfilters
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: