Welcome to AI Adoption Metrics - an open-source project designed to understand the intricacies of how, why, and when users are interacting with Language Learning Models (LLMs). Our focus is on analyzing conversations from various chat interfaces such as ChatGPT, Team-GPT, and Claude, providing insights into AI adoption and usage.
- Out-of-the-Box Compatibility: Designed to work seamlessly with Team-GPT, ChatGPT and other LLMs
- Custom Integration: For incorporating other projects, refer to our comprehensive documentation for data preparation and preprocessing guidelines.
- Advanced Analytics: We use Claude for its extensive context capabilities to deliver detailed reports.
- Intelligent Summarization: Our system expertly chunks and summarizes conversations to stay within LLM context limits.
- Engineered Prompting: A default prompt is crafted to elicit intelligent and contextually relevant responses from the AI. This prompt can be customized as needed.
- Email Integration: Post-report creation, an automated email can be sent to users. While we assume you have a native system for transactional emails, we recommend tools like Zapier for automation if needed.
- Insightful Reports: Generate detailed reports on AI adoption and usage patterns.
- Chat Analysis: Input your team's chat data to extract meaningful AI engagement metrics.
- Usage Trends: Discover trends in AI model usage and preferences.
- Actionable Insights: Identify opportunities to increase efficiency and AI adoption within your team.
- Langchain - For seamless AI integration and processing.
- Claude - Utilizing Anthropic's advanced language model for deep insights.
- TypeScript - Application written in TypeScript for robust and maintainable code.
- AWS Lambda and API Gateway - For scalable, on-demand cloud deployment.
- Node.js
- Anthropic API key
- AWS account
- Clone the repository:
git clone https://github.com/yourusername/ai-adoption-metrics.git
- Navigate to the project directory:
cd ai-adoption-metrics
- Install NPM packages:
npm install
- Run deploy package:
npm run deploy
- Unarchive
- Archive
node_modules
as well as the content indist
folder (withoutdist
folder)
- Create
AWS Lambda Function
- follow this guide and add code from thezip
you created - Add env variables -
ANTHROPIC_API_KEY
andMODEL_TEMPERATURE
.ZAPIER_URL
is required only if you would like to send the reports over email using Zapier. - You can use the Lambda in the preferred way for you, but I suggest using API Gateway
- You can add authorization or leave the endpoint public
Invoke the Lambda. Here is the expected format of the data - an array of chats and optional email
field.
Key | Type | Description | Example |
---|---|---|---|
chats | Array | Array of message objects and model field | See message object details below |
email(optional) | String | The AI model being used | "GPT-3.5-turbo" |
The field the endpoint expects is chats
and it is an array.
The following table represents the chat JSON structure expected by the endpoint:
Key | Type | Description | Example |
---|---|---|---|
messages | Array | Array of message objects | See message object details below |
model | String | The AI model being used | "GPT-3.5-turbo" |
Each object in the messages
array should contain:
Key | Type | Description | Example |
---|---|---|---|
content | String | The content of the message | "Facebook ads or LinkedIn ads for a saas product" |
role | String | The role of the entity sending message | "user" or "assistant" |
name | String | The name of the sender | "Maria Bailey" or "GPT-3.5-turbo" |
[{
"messages": [
{
"content": "Facebook ads or LinkedIn ads for a saas product",
"role": "user",
"name": "Maria Bailey"
},
{
"content": "When deciding between Facebook ads and LinkedIn ads for a saas product",
"role": "assistant",
"name": "GPT-3.5-turbo"
}
],
"model": "GPT-3.5-turbo"
}]
If you would like, you can use our special Zapier template. You will need to set up a Zapier webhook and set ZAPIER_URL
(env variable) within AWS. Then if you are using the API Gateway you can pass email
which would be the email address of the person you would like to receive the report.
We believe in open source and encourage the community to contribute to AI Adoption Metrics. If you're interested in contributing, feel free to open a PR.
AI Adoption Metrics was conceived and initiated at the AI SF Hackathon, reflecting our commitment to fostering AI integration in every team.
This project is licensed under the MIT License.
- Kudos to the AI SF Hackathon organizers and participants who inspired this project.
- Special thanks to all contributors who have invested their time in advancing this project.
For support, please open an issue in the GitHub issue tracker or contact the maintainers directly.
We hope AI Adoption Metrics empowers you and your team to embrace AI more fully. Happy analyzing!