Skip to main content

gaia-sdk

gaia sdk

#how to install pip install gaia-core

#how to use

# add .vendors_keys file including
# OPEN_AI_KEY=
# COHERE_AI_KEY=
# or
# use dict api_keys dict

import gaia
debug=True
api_keys = {
    "OPEN_AI_KEY": "",
    "COHERE_AI_KEY": ""
}
GAIA = gaia.init(api_token='', api_keys=api_keys, debug=debug)
prompt = 'find the sentiment for the following text <TEXT>, provide only Positive or Negative or Neutral answers'
prompt_template = GAIA.optimize_prompt(prompt)
golden_dataset: list = GAIA.load_data('local_dataset.csv')
vendors: list = GAIA.get_available_vendors()
prompts = [prompt_template.replace('<TEXT>', row['prompt']) for row in golden_dataset]
results = GAIA.run_vendors(vendors=vendors, data=prompts)
vendors_results = results['vendors_results']
total_took = results['total_took']
compared_vendors = results['compared_vendors']
GAIA.save_csv('Sentiment_gai.csv', data=vendors_results)

Metadata

Release files for gaia-core 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gaia-core 0.0.2
File Size Uploaded Provenance
gaia-core-0.0.2.tar.gz 43.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for gaia-core 0.0.2
File Interpreter ABI Platform
gaia_core-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 110.0 kB

Release files / gaia-core-0.0.2.tar.gz

Download URL gaia-core-0.0.2.tar.gz
Size 43.8 kB
Tags Source
SHA-256 checksum
How to use checksums
5366f5c48d7cbbb80292861d906080cf7887d727bb0732969339e29eaaa91d37
BLAKE2b-256 checksum
How to use checksums
c16de068e003704e17c38c8bf6b252df064fe03e2fde226da96096ac5977ebb0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.0

Release files / gaia_core-0.0.2-py3-none-any.whl

Download URL gaia_core-0.0.2-py3-none-any.whl
Size 66.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ae88344a5ba2f0f8bf4486fd644a601c5e7b9fbe106e1d3829c7e913274629da
BLAKE2b-256 checksum
How to use checksums
d61c0b1a6c73f5ee20b967cc8f822f6b544279580e0c6027b96ec296718dafd7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.0

Security for gaia-core 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page