Skip to main content

Privacera Securechat

Secure Chat is a conversational AI chatbot . Secure chat allows users to create conversations with an AI chatbot which can optionally be governed by Privacera AI Governance Services(PAIG). Secure chat library provides an easy to use, plugable platform which will allow developers/users to have open sourced chatbot python library.

Contents

Installation

Privacera Secure chat is a python library which can be installed using pip.

pip install privacera_securechat

Usage

Privacera Secure chat can be used in following ways: Before starting the securechat , please download your Privacera Shield Config file.Then run the following command to copy file to desired destination.

mkdir -p custom-configs
cp <path to privacera-shield-app-name-config.json> custom-configs/privacera-shield-config.json
  1. Run as a service: You can simply run the secure chat as a service by running following command:
privacera_securechat run

To get the help for the command and see all available [OPTIONS], you can run the following command:

privacera_securechat --help

Example:

privacera_securechat run --port 2324 --host 0.0.0.0 --openai_api_key <API_KEY> 
  1. Run as a library: You can run Privacera Secure chat in background by importing the library in your python code. Please run help command to see all available options you can pass while calling launch_app method.
from privacera_securechat import launcher
# Start the Privacera Secure Chatbot
session = launcher.launch_app()
# To start without PAIG Shield
# session = launcher.launch_app(disable_paig_shield_plugin=True)
# To get active sessions
active_session = launcher.get_active_session()
print(active_session)
# To view the chatbot in the browser/Iframe
print(active_session.url)
# To view the chatbot in the Iframe
active_session.view()
# To stop the chatbot
launcher.close_app()

Configuration

Privacera Secure chat provides overlay configuration. You can provide the custom configuration in the following ways:

  1. Create a new directory in the present working directory of the project with the name custom-configs.
  2. Create a new custom configuration file named standalone_config.yaml in the custom-configs folder which is provided to the application.
  3. In custom configuration file , user should provide new configuration key-values or override the existing configuration.
  4. User can configure response_if_no_docs_found to provide a custom response when vector DB return no docs, If user want response from AI Model then set response_if_no_docs_found to null
    Example: custom-configs/standalone_config.yaml
#MODELS CONFIG
AI_applications:
  file_path: "configs/AI_applications.json"
  default_implementation_class: "services.OpenAI_Application.OpenAIClient.OpenAIClient"
  response_if_no_docs_found: "I cannot answer this question as there was no context provided"
  sales_model:
    conversation_history_k: 5
    paig_shield_config_file: "custom-configs/privacera-shield-config.json"
    disable_conversation_chain: false
    vectordb:
      index_path: "securechat/sales/index"
      data_path: "securechat/sales/data"
      vector_type: "chroma"

Configure Privacera Shield Config

Privacera Secure chat provides an option to configure the Privacera Shield Config. You can refer to standalone_config.yaml to see location of the shield config file. All you need to do is to copy Privacera Shield Config file to the location mentioned in the standalone_config.yaml file.

Metadata

Release files for privacera-securechat 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for privacera-securechat 1.0.4
File Interpreter ABI Platform Actions
privacera_securechat-1.0.4-py3-none-any.whl Python 3 none any Details for privacera_securechat-1.0.4-py3-none-any.whl

Release files / privacera_securechat-1.0.4-py3-none-any.whl

Download URL privacera_securechat-1.0.4-py3-none-any.whl
Size 3.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
70c53b10bb31425b74711fe230738d8a9fa508521eee530e9153376a980e4a51
BLAKE2b-256 checksum
How to use checksums
4ee1ea86d3d4b9ccb0df749562c7ee9148bffe521d01a6b72b4336f2a77b021f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.12

Security for privacera-securechat 1.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page