Skip to main content

AI Hallucination tool including basic validators

Reason this release was yanked:

problems

Project description

wisecube-pythia

As a library

You can install the project as a library from github

pip install git+https://github.com/wisecubeai/wisecube-pythia

or if you don't have the git configure use the token

pip install git+https://<GIT_TOKEN>@github.com/wisecubeai/wisecube-pythia

Also is required to have the OPENAI_API_KEY set as an env variable

Usage

from pythia.ai_hallucination import ask_pythia

ref = ["ref1", "ref1"]
resp = "response"
question = "question"

pythia_response = ask_pythia(input_reference=ref, input_response=resp, question=question
print(pythia_response)

As a Rest API

Docker build

docker build -t wisecube-pythia .

Docker run

docker run -p 8085:8085 --name wiscube-pythia -e OPENAI_API_KEY=<KEY> public.ecr.aws/u9o1b9m6/wisecube-pythia:latest

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

askpythia-1.3.1-py3-none-any.whl (35.9 kB view details)

Uploaded Python 3

File details

Details for the file askpythia-1.3.1-py3-none-any.whl.

File metadata

  • Download URL: askpythia-1.3.1-py3-none-any.whl
  • Upload date:
  • Size: 35.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.11

File hashes

Hashes for askpythia-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 11dd9862e268afe989da4a73818c19babb16da69adab7ad72fa7e699b84f7d32
MD5 a03229473f4c0779fe2fdc706cf4c6ff
BLAKE2b-256 ad1f58b07778c2836aa7e28950eaf3ec057ff395d45428cef15a5dcd5d5000d8

See more details on using hashes here.

Supported by

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