Business Evals for LLMs
Project description
paramount
Business Evals for LLMs
Getting Started
Install Packages
Server
To enter Python Virtual Env
source venv/bin/activate # and for exiting, deactivate
pip install paramount # or python3 -m pip install paramount
Client
cd client
pnpm i
Running
Server
gunicorn --bind :9001 --workers 1 --threads 8 --timeout 0 paramount.server.wsgi:app # or make run-server
Client
cd client
pnpm dev # or make run-client
Environment Variables
There are two ways of accessing environment variables depending on the case of whether you'll use the client side with letting the server serve the static files or running both separately.
Using .env
file
You need to also create some of the environment files with using VITE_
prefix for the client. You can access the variables on client using import.meta.env.<envVarName>
FUNCTION_API_BASE_URL="http://localhost:9000"
PARAMOUNT_DB_TYPE="postgres"
PARAMOUNT_POSTGRES_CONNECTION_STRING=
PARAMOUNT_IDENTIFIER_COLNAME="input_args__company_uuid"
PARAMOUNT_META_COLS="['recorded_at']"
PARAMOUNT_INPUT_COLS="['args__message_history', 'args__new_question']"
PARAMOUNT_OUTPUT_COLS="['1_answer', '1_based_on']"
PARAMOUNT_IS_LIVE="TRUE"
PARAMOUNT_API_ENDPOINT="http://localhost:9001"
APP_ENV=development
VITE_META_COLS="["recorded_at"]"
VITE_INPUT_COLS="["args__message_history", "args__new_question"]"
VITE_OUTPUT_COLS="["1_answer", "1_based_on"]"
Using .toml
file
You can access the variables on client like this;
import paramountConfig from "./paramount.toml";
console.log(paramountConfig);
Here is the example toml file
TODOs
Fix env variables for the client(.toml
fix)- Refactor Dockerfile for the client
- Allow Flask to serve the static files of the client
pypi upload procedure
prerequisite
pip install wheel twine
env vars for auth
export TWINE_USERNAME=__token__
export TWINE_PASSWORD=<your_pypi_api_token>
build
python setup.py sdist bdist_wheel
upload
twine upload dist/*
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
Built Distribution
Hashes for paramount-0.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39dbc25c73559fcc1826f8cf7569f2f36081aa3ecfff55dd8347d65d9df3b198 |
|
MD5 | d64c19a4f6749da9b45cbb896e755db9 |
|
BLAKE2b-256 | 7a611d858f190681299fed3616e18f09d350e499aa13ce9bc06dd05fd83222be |