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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file arcee-py-0.0.7.tar.gz.

File metadata

  • Download URL: arcee-py-0.0.7.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

Hashes for arcee-py-0.0.7.tar.gz
Algorithm Hash digest
SHA256 187c9bce7f2fcd06916dc113ce2e17c86621c761affe65a95dfa6ddf7a7c1899
MD5 e75226f16d1fb7d6fcc77c9664aac25a
BLAKE2b-256 d8dbe3d841b0b66609ac54ea6d6ed03b51a5ac360a13d6f7ade5e72f357e44e8

See more details on using hashes here.

File details

Details for the file arcee_py-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: arcee_py-0.0.7-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

Hashes for arcee_py-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 d1b3f063bef7811cfe75582404cd1c24615faa9f5956e1e1e2e258e585e0e4b2
MD5 17c23d2694c77863325ace5b8f482cc2
BLAKE2b-256 bb4e6772dcd489fdb607f22573b850ce06b1e664b50b9ce1df9a43b82e9442d1

See more details on using hashes here.

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