Skip to main content

AI Hallucination toll

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.2.2-py3-none-any.whl (35.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: askpythia-1.2.2-py3-none-any.whl
  • Upload date:
  • Size: 35.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for askpythia-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2ccb9f0e8a8f1d493928a42b7b9bcc5f6ea8388beddac9ff7cac8e82c81372df
MD5 f0523755a05b3a72cab62dd97c5ab39f
BLAKE2b-256 d3d9cac9d3a90240fed050ac9276b9928c316c357dade7af4fb3b4da1dc0195b

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