Python client for Arcee platform
Project description
DALM by Arcee
The Arcee client for executing domain-adpated language model routines
Installation
pip install arcee-py
Authenticating
In bash:
export ARCEE_API_KEY=********
In notebook:
import os
os.environ["ARCEE_API_KEY"] = "********"
Upload Context
Upload context for your domain adapted langauge model to draw from.
import arcee
arcee.upload_context("pubmed", doc_name="doc1", doc_text="whoa")
Train DALM
Train a DALM with the context you have uploaded.
import arcee
dalm = arcee.train_dalm("medical_dalm", context="pubmed")
The DALM training procedure trains your model in context and stands up an index for your model to draw from.
DALM Generation
import arcee
med_dalm = arcee.get_dalm("medical_dalm")
med_dalm.generate("What are the components of Scoplamine?")
DALM Retrieval
Retrieve documents for a given query and to view them or plug into a different LLM.
import arcee
med_dalm = arcee.get_dalm("medical_dalm")
med_dalm.retrieve("my query")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
arcee-py-0.0.9.tar.gz
(3.9 kB
view details)
Built Distribution
File details
Details for the file arcee-py-0.0.9.tar.gz
.
File metadata
- Download URL: arcee-py-0.0.9.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2725cebdc43ef3a5c1160f403e4afdf7e1686f9a210deea010e4be3553eeb4c |
|
MD5 | 8bd447f4205ef2dd00e834667e56e70e |
|
BLAKE2b-256 | 656549143b41009d0bbe818080ad261a9b678813ff72ed1c7c278b1fa9a0b32e |
File details
Details for the file arcee_py-0.0.9-py3-none-any.whl
.
File metadata
- Download URL: arcee_py-0.0.9-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04c09546732b871e89230b2fe75bb6b7ae22919bc0119f13e56e6234b8285aac |
|
MD5 | 68ed93f220b6652cd687245ffd115ff5 |
|
BLAKE2b-256 | e411c5f8db09f11614d3c473491d986db007dcb7659108055aed51cad50773a8 |