Skip to main content

A package to evaluate the models.

Project description

pycvtools

forthebadge made-with-python
Python 3.10

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


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.8.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

pyevaltool-0.1.8-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file pyevaltool-0.1.8.tar.gz.

File metadata

  • Download URL: pyevaltool-0.1.8.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for pyevaltool-0.1.8.tar.gz
Algorithm Hash digest
SHA256 c158b9c9301cfeaa0d478fef8fe6426c817cbc257bba62d51278308a7efda773
MD5 7a8aa117bd725f5b9ba2ba0699b972b7
BLAKE2b-256 f0f426144a62c0e7b6188ddabc41f2be37803483d140b23457920fa56973a92a

See more details on using hashes here.

File details

Details for the file pyevaltool-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: pyevaltool-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for pyevaltool-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 36c3a9b2704bce7bed8d61b89ebb8888b3ac67830a1a6ed523ea44e84fe7c2da
MD5 edbc534ce2609f59b31158fcbeba8373
BLAKE2b-256 6dae78f7abdb72885154aba426bd575547c452d20c22bf36727aabc61e303e4c

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