Update README.md
#1
by
ata-jafari
- opened
README.md
CHANGED
|
@@ -13,10 +13,118 @@ tags:
|
|
| 13 |
|
| 14 |
# Uploaded model
|
| 15 |
|
| 16 |
-
- **Developed by:** PiGrieco
|
| 17 |
- **License:** apache-2.0
|
| 18 |
- **Finetuned from model :** unsloth/phi-3-mini-4k-instruct-bnb-4bit
|
| 19 |
|
| 20 |
This mistral model was trained 2x faster with [Unsloth](https://github.com/unslothai/unsloth) and Huggingface's TRL library.
|
| 21 |
|
| 22 |
[<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
|
| 14 |
# Uploaded model
|
| 15 |
|
|
|
|
| 16 |
- **License:** apache-2.0
|
| 17 |
- **Finetuned from model :** unsloth/phi-3-mini-4k-instruct-bnb-4bit
|
| 18 |
|
| 19 |
This mistral model was trained 2x faster with [Unsloth](https://github.com/unslothai/unsloth) and Huggingface's TRL library.
|
| 20 |
|
| 21 |
[<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth)
|
| 22 |
+
|
| 23 |
+
# How to interpretate the output
|
| 24 |
+
|
| 25 |
+
```json
|
| 26 |
+
{
|
| 27 |
+
"buy_inten": {
|
| 28 |
+
"type": "integer",
|
| 29 |
+
"description": "Indicates whether there is a buying intention in the user's text",
|
| 30 |
+
"enum": [0, 1]
|
| 31 |
+
},
|
| 32 |
+
"inten_level": {
|
| 33 |
+
"type": "integer",
|
| 34 |
+
"description": "Represents the level of buying intention on a scale from 0 to 5",
|
| 35 |
+
"minimum": 0,
|
| 36 |
+
"maximum": 5
|
| 37 |
+
},
|
| 38 |
+
"cat": {
|
| 39 |
+
"type": "string",
|
| 40 |
+
"description": "Specifies the category of the text",
|
| 41 |
+
"enum": [
|
| 42 |
+
"Home & Kitchen",
|
| 43 |
+
"Beauty & Personal Care",
|
| 44 |
+
"Electronics",
|
| 45 |
+
"Clothing, Shoes & Jewelry",
|
| 46 |
+
"Toys & Games",
|
| 47 |
+
"Health, Household & Baby Care",
|
| 48 |
+
"Sports & Outdoors",
|
| 49 |
+
"Pet Supplies",
|
| 50 |
+
"Office Supplies",
|
| 51 |
+
"Automotive",
|
| 52 |
+
"General"
|
| 53 |
+
]
|
| 54 |
+
}
|
| 55 |
+
}
|
| 56 |
+
```
|
| 57 |
+
# Word Of Prompt
|
| 58 |
+
|
| 59 |
+
**Overview:**
|
| 60 |
+
"Word Of Prompt" redefines advertising by integrating it seamlessly into natural language conversations.
|
| 61 |
+
Utilizing fine-tuned Phi-3(mini) and Llama3, "Word Of Prompt" detects user intent to purchase and responds with contextually relevant product suggestions as if coming from a trusted friend.
|
| 62 |
+
|
| 63 |
+
**Core Features:**
|
| 64 |
+
- **Intent Recognition:** Harnesses a fine-tuned Phi-3(mini) model to accurately interpret buying signals within textual conversations: the model is OpenSesame and you can find it [here](https://huggingface.co/PiGrieco/OpenSesame/).
|
| 65 |
+
- **Intelligent Response Generation:** Employs an Agentic Retrieval-Augmented Generation (RAG) mechanism built on Llama3, dynamically setting and manipulating API parameters to fetch the most suitable products: the technology is called "OpenTheVault" and you can find it [here](https://colab.research.google.com/drive/1ydT7cvNn0FhnAj8ZhPojToOBsiC5Djom?usp=sharing).
|
| 66 |
+
- **Seamless Integration:** Designed to be integrated easily into any existing LLM or AI agent, enhancing their functionality with minimal setup: find the SDK [here](https://github.com/PiGrieco/WordOfPrompt-Integration).
|
| 67 |
+
|
| 68 |
+
NB, IMPORTANT: OpenTheVault and SDK will be uploaded soon!
|
| 69 |
+
|
| 70 |
+
### Vision & Mission
|
| 71 |
+
|
| 72 |
+
**Vision:**
|
| 73 |
+
To transform advertising into a helpful, integral part of the conversational experience, mirroring the trust and personal relevance of advice from a friend.
|
| 74 |
+
"Word Of Prompt" envisions a world where ads are not just tolerated but valued components of our digital interactions.
|
| 75 |
+
|
| 76 |
+
**Mission:**
|
| 77 |
+
Our mission is to provide AI developers and marketers with powerful tools that enhance user engagement without disrupting the natural flow of conversation.
|
| 78 |
+
By doing so, we aim to foster a more sustainable and user-centric advertising landscape that aligns advertisers' goals with consumer satisfaction and help AI Agents and LLMs democratization helping AI developers to earn from their developing efforts.
|
| 79 |
+
|
| 80 |
+
### Join Us!
|
| 81 |
+
|
| 82 |
+
We're looking for AI developers which want to join our team: contact Piermatteo Grieco on [LinkedIn](https://www.linkedin.com/in/piermatteo-grieco/) if you're interested in knowing more about the project.
|
| 83 |
+
|
| 84 |
+
## How to Use "Word Of Prompt"
|
| 85 |
+
|
| 86 |
+
**Integration Steps:**
|
| 87 |
+
1. **Incorporate the Library:**
|
| 88 |
+
Download and integrate the "Word Of Prompt" library into your LLM or AI agent's development environment.
|
| 89 |
+
|
| 90 |
+
The library is open-source, allowing for custom modifications if needed.
|
| 91 |
+
|
| 92 |
+
3. **Configure the API:**
|
| 93 |
+
Set up the necessary API credentials and configure the settings to connect with product databases like Amazon’s Product API, ensuring that your agent can retrieve product information in real time.
|
| 94 |
+
|
| 95 |
+
4. **Activate in Your Application:**
|
| 96 |
+
Implement "Word Of Prompt" within your conversational models or customer service bots.
|
| 97 |
+
|
| 98 |
+
Configure the system to detect purchase-related queries and trigger the product recommendation features.
|
| 99 |
+
|
| 100 |
+
6. **Customize Responses:**
|
| 101 |
+
Tailor the response format to fit the tone and style of your AI agent, ensuring that the product recommendations appear as natural and organic parts of the conversation.
|
| 102 |
+
|
| 103 |
+
# OpenSesame
|
| 104 |
+
This model is a fine-tuned version of phi-3 designed to detect and analyze buying intentions in user text.
|
| 105 |
+
|
| 106 |
+
## Model description
|
| 107 |
+
**Overview:**
|
| 108 |
+
"Open Sesame" is an advanced open-source model designed to detect and analyze users' buying intentions from textual data. It provides a structured JSON output containing buying intention, intention level, and product category.
|
| 109 |
+
|
| 110 |
+
**Core Features:**
|
| 111 |
+
- **Intent Detection and Analysis:** Utilizes a fine-tuned version of phi-3 to analyze text and identify potential buying signals, providing a comprehensive assessment of user intentions. (https://huggingface.co/PiGrieco/wop_phi3/).
|
| 112 |
+
- **Structured Output:** Generates a JSON response with three key fields:
|
| 113 |
+
- **buy_inten:** Binary indicator of buying intention (0 or 1)
|
| 114 |
+
- **inten_level:** Buying intention level on a scale from 0 to 5
|
| 115 |
+
- **cat:** Product category classification
|
| 116 |
+
|
| 117 |
+
- **Intelligent Response Generation:** Employs an Agentic Retrieval-Augmented Generation (RAG) mechanism built on Llama3, dynamically setting and manipulating API parameters to fetch the most suitable products: the technology is called "OpenTheVault" and you can find it [here](https://colab.research.google.com/drive/1ydT7cvNn0FhnAj8ZhPojToOBsiC5Djom?usp=sharing).
|
| 118 |
+
- **Seamless Integration:** Designed to be integrated easily into any existing LLM or AI agent, enhancing their functionality with minimal setup: find the SDK [here](https://github.com/PiGrieco/WordOfPrompt-Integration).
|
| 119 |
+
|
| 120 |
+
**Use Cases:**
|
| 121 |
+
- **E-commerce Platforms:** Improve product recommendation systems by understanding user intent in real-time.
|
| 122 |
+
- **Customer Service Automation:** Equip chatbots and virtual assistants to better respond to customer inquiries with detailed purchase intent analysis.
|
| 123 |
+
- **Marketing and Sales:** Enable more targeted and personalized marketing campaigns based on detected user interests, intention levels, and product categories.
|
| 124 |
+
|
| 125 |
+
**Getting Started:**
|
| 126 |
+
To start using "Open Sesame" in your projects, simply load the model from the Hugging Face Model Hub using the code provided in the following Colab notebook:
|
| 127 |
+
[colab](https://colab.research.google.com/drive/1rm6ogq3uHFYiGhVLw5bwSPbkhhwH9Dy2?usp=sharing)
|
| 128 |
+
|
| 129 |
+
**Contribute:**
|
| 130 |
+
"Open Sesame" is open-source and we welcome contributions from the community! Whether it's improving the model, expanding the dataset, or refining the documentation, your input helps make "Open Sesame" better for everyone.
|