Python client for Arcee platform
Project description
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("my_context", name="[name]", document_text="[text]")
Train Retriever
Train a retriever to retrieve relevant documents for a given query.
import arcee
arcee.train_retriever("my_retriever", context_name="my_context")
Retriever training stands up a new index for your context. Future context uploads will flow into this index.
Retrieve Documents
Retrieve documents for a given query.
import arcee
retriever = arcee.get_retriever("my_retriever")
retriever.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.7.tar.gz
(3.9 kB
view hashes)