A simple tool that automates the qualification of a partner(reseller/integrator/editor) by finding its website, industries, business functions and services.
Project description
Background
A simple tool that automates the qualification of a partner(reseller/integrator/editor) by finding its website, industries, business functions and services in a structured way.
-
It provides browsing ability to reduce hallucination problem and improve the information precision.
-
It provides single mode and batch mode so that you can integrate as an API or in a scheduler easily.
An example of qualification result:
- (industry column) Target your industry
- (job column) The jobs that can be targeted through their industry
- (offers column) The services they offer.
Install
pip install partenaire-qualif
Usage
The tool provides browsing ability which can be activated by setting the parameter browsing to True. Sample code below.
from qualif import CompanyQualificationTool
from openai import AzureOpenAI, OpenAI
import pandas as pd
# Necessary Variables
azure_endpoint = "https://..." # azure openai endpoint
apikey = "..." # azure openai apikey
apiversion = "..." # azure openai api version
model = "..." # azure openai model name
# Setup OpenAI CLI
client = AzureOpenAI(
azure_endpoint=azure_endpoint,
api_key=apikey,
api_version=apiversion,
)
# Use QualificationTool without browsing
browsing = False
tool = CompanyQualificationTool(client=client, model=model, temperature=0, browsing=browsing)
result = tool.qualify(partner_name="Your_Partner_Name")
# Use QualificationTool with browsing
browsing = True
browsing_key = '...' # azure bing search apikey
tool = CompanyQualificationTool(client=client, model=model, temperature=0, browsing=browsing, browsing_key=browsing_key)
result = tool.qualify(partner_name="Your_Partner_Name")
print(result)
The tool also allow to execute in batch mode by providing a panda dataframe. Sample code as below.
# Construct panda dataframe from a excel file that has a column containing the name of partners
df_partenaires = pd.read_excel("Partenaires.xlsx",sheet_name="Partenaires")
# Use the batch method to execute the qualification in batch
final_df = tool.batch(df_partners=df_partenaires, col_name_partner="Nom_Partenaire")
final_df.to_excel("Partenaires_qualified.xlsx")
Release
source release.sh {NEW_VERSION} # example 1.1.1
Maintainers
License
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
File details
Details for the file partenaire-qualif-0.2.3.tar.gz
.
File metadata
- Download URL: partenaire-qualif-0.2.3.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4f449261a11d92f9fa3f97ae63e16b7d962d2fa7c0ddccfcec982bdc417f2dd |
|
MD5 | 44b45dc98186ac800989a5081096767b |
|
BLAKE2b-256 | a4cf4d295110ece24b749727914d8d0b67ce133de6d20a8ecea7ace64bf4b716 |
File details
Details for the file partenaire_qualif-0.2.3-py3-none-any.whl
.
File metadata
- Download URL: partenaire_qualif-0.2.3-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ed54d490c64db0cf50216577f4e6519e4deebefd819770b6bfe05cebb6f092d |
|
MD5 | 4bb57746bfbdd6fd6b98ca181925bfde |
|
BLAKE2b-256 | 89983a6ff61bcde5f1621f9e567454c6881a96c95f709a02b3d806d0813667a7 |