Skip to main content

A brief description of your package

Project description

Prompt Enhancer

Prompt Enhancer is a Python library designed to enhance prompt messages for use with Google's Vertex AI. The current version supports static prompt enhancements, with a dynamic version that includes customization through interactive questions coming in future updates.

Installation

To use the Prompt Enhancer, ensure that you have Google Vertex AI credentials properly configured before using the library.

Usage

Importing the Library

To get started,

First import the genai_framework library and make sure it resides in src folder.

Test with the below import:

from src.genai_framework import ChatLLMBuilder

Then import the enhance function from the prompt_enhance_service package:

from prompt_enhance_service.prompt_enhancer import enhance

Enhancing a Prompt

Use the enhance function to enhance your prompt message:

enhanced_prompt = enhance(message="Your prompt message here")
  • message: The original prompt message you want to enhance.
  • other_details: A dictionary of other relevant details that may influence the enhancement process.

Environment Variables

The current version only supports integration with Google Vertex AI. Make sure to set the following environment variables:

export VERTEXAI_CHAT_MODEL='your-vertex-ai-model-id'
export VERTEXAI_CREDENTIALS_PATH='/path/to/your/vertex-ai/credentials.json'
export GOOGLE_APPLICATION_CREDENTIALS='/path/to/your/google-application-credentials.json'
  • VERTEXAI_CHAT_MODEL: Your Google Vertex AI model ID.
  • VERTEXAI_CREDENTIALS_PATH: The file path to your Vertex AI credentials.
  • GOOGLE_APPLICATION_CREDENTIALS: The file path to your Google Cloud application credentials.

Future Updates

  • Dynamic Version: The upcoming version will allow users to customize prompts through a series of interactive questions, making the enhancement process more tailored and flexible.

License

This project is licensed under the GAVS Proprietary License. See the LICENSE file for more details.

Contact

For more information, please contact GAVS Organization.

This README file provides clear instructions on how to use your library and what to expect in future versions.

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

prompt_enhance_service-0.1.4.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

prompt_enhance_service-0.1.4-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file prompt_enhance_service-0.1.4.tar.gz.

File metadata

File hashes

Hashes for prompt_enhance_service-0.1.4.tar.gz
Algorithm Hash digest
SHA256 30a6833ebd38be5fc1c552c0427fe1ac76be6cc9a670f35f185a4c9009994873
MD5 7a02cfc8e8ef98ffda5fbd3a6975d980
BLAKE2b-256 2b5dba19f97f40f80e121645a11567465110e1ccd83e766945db180ef5638663

See more details on using hashes here.

File details

Details for the file prompt_enhance_service-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for prompt_enhance_service-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 08ab499e853b9cd6e639c726468d566d2ed3316613cb3e0b71d20dc9f5d0d5a3
MD5 ee656a185304ce0b23de83671408c0ca
BLAKE2b-256 d296e6f74bef383dd8d2324c9ecb5472bb73de66af55397544b07f5d3dcb66da

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page