Skip to main content

AI Hallucination tool including basic validators

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: askpythia-1.3.3-py3-none-any.whl
  • Upload date:
  • Size: 36.8 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6120e7b9e1cab0e31539151372a7b3b848c23877c9d56db34fd3ced4b60ac220
MD5 da902246fccb6ae449f27d67ab43653b
BLAKE2b-256 591fbf773880ba3f3d2971733fbb6d526c0d145bba8fb3a288955eb307199df6

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