semvec/pypi-packages huggingface dataset:
wisecube-pythia 1.2.0
AI Hallucination toll
Requires Python: >=3.10

# wisecube-pythia

## As a library
You can install the project as a library from github
```commandline
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
```python
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
```commandline
docker run -p 8085:8085 --name wiscube-pythia -e OPENAI_API_KEY=<KEY> public.ecr.aws/u9o1b9m6/wisecube-pythia:latest
```