Skip to content

An example JavaScript app demonstrating how to integrate Pangea's Secure Audit Log service into a LangChain app to maintain an audit log of prompts being sent to LLMs.

License

Notifications You must be signed in to change notification settings

pangeacyber/langchain-js-prompt-tracing

Repository files navigation

Prompt Tracing for LangChain in JavaScript

An example JavaScript app demonstrating how to integrate Pangea's Secure Audit Log service into a LangChain app to maintain an audit log of prompts being sent to LLMs.

Prerequisites

Setup

git clone https://github.com/pangeacyber/langchain-js-prompt-tracing.git
cd langchain-js-prompt-tracing
npm install
cp .env.example .env

Fill in the values in .env and then the app can be run like so:

npm run demo -- --auditConfigId pci_0123456789 "Give me information on John Smith."

This does not modify the input or output so it's transparent to the LLM and end user.

Audit logs can be viewed at the Secure Audit Log Viewer.

About

An example JavaScript app demonstrating how to integrate Pangea's Secure Audit Log service into a LangChain app to maintain an audit log of prompts being sent to LLMs.

Resources

License

Security policy

Stars

Watchers

Forks