A package to evaluate the models.
Project description
pycvtools
Functionality of the pyevaltool
- Automated testing of the bot response deployed gpt
pip install pyevaltool
To run
from pyevaltool import *
For GPT test -
url = '' # Add the frontend url
token = '' # add your token or key - Apim-Subscription-Key or Bearer token
# change the chat completion format if required.
# This code will work only if the question asked is at chat_completion_format['messages'][0]["content"]
chat_completion_format = {'chatId': '', 'siteInfo': {'domain': ''}, 'messages': [{'role': 'user', 'content': ''}], 'model': '', 'stream': False}
answer_loc = "['choices'][0]['messages'][0]['content']" #in string format
input_file = " " # Here you add your input file link
gpt_test(url,token,chat_completion_format,answer_loc,input_file,output_file = "output.csv" )
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyevaltool-0.1.3.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for pyevaltool-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54d9b607f05fbf984bf23024e9bd60f716a74d965a9f96ce1c16aafaf97203b4 |
|
MD5 | 7e191a9d07a7691dbf7b111a9584c2cd |
|
BLAKE2b-256 | 58e2c8d9efb17675b16f544cdac8729f187dcb7bbd753e221d72e1e31c6fafd1 |