Skip to main content

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


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)

Uploaded Source

Built Distribution

arcee_py-0.0.7-py3-none-any.whl (4.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page