Skip to main content

A client facing API for interacting with the WeCo AI function builder service.

Project description

Typing SVG

License Python

WeCo $f$(👷‍♂️)

A client facing API for interacting with the WeCo AI function builder service!

Use this API to build complex systems fast. We lower the barrier of entry to software engineer, data science and machine learning by providing an interface to prototype difficult solutions quickly in just a few lines of code.

Installation

Install the weco package simply by calling this in your terminal of choice:

pip install weco

Features

  • The build function enables quick and easy prototyping of new functions via LLMs through just natural language. We encourage users to do this through our web console for maximum control and ease of use, however, you can also do this through our API as shown in here.
  • The query function allows you to test and use the newly created function in your own code.

We provide both services in two ways:

  • weco.WecoAI client to be used when you want to maintain the same client service across a portion of code. This is better for dense service usage. An example is shown here.
  • weco.query and weco.build to be used when you only require sparse usage. An example is provided here.

Usage

When using the WeCo API, you will need to set the API key: You can find/setup your API key here by navigating to the API key tab. Once you have your API key, you may pass it to the weco client using the api_key argument input or set it as an environment variable such as:

export WECO_API_KEY=<YOUR_WECO_API_KEY>

Example

We create a function on the web console for the following task:

"I want to evaluate the feasibility of a machine learning task. Give me a json object with three keys - 'feasibility', 'justification', and 'suggestions'."

Now, you're ready to query this function anywhere in your code!

from weco import query
response = query(
    fn_name=fn_name,
    fn_input="I want to train a model to predict house prices using the Boston Housing dataset hosted on Kaggle.",
)

Enjoy $f$(👷‍♂️)!

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

weco-0.1.1.tar.gz (5.0 kB view hashes)

Uploaded Source

Built Distribution

weco-0.1.1-py3-none-any.whl (5.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