digitalassistant-ai wwwywcom commited on
Commit
de9d676
·
verified ·
1 Parent(s): b6a5ee0

Upload 3 files (#1)

Browse files

- Upload 3 files (1b2f7a103d9b6bf9f75e1e60e27a476791a92da2)


Co-authored-by: wyw <wwwywcom@users.noreply.huggingface.co>

Files changed (4) hide show
  1. .gitattributes +2 -0
  2. README.md +115 -0
  3. selling_assistant.png +3 -0
  4. workflow.png +3 -0
.gitattributes CHANGED
@@ -33,3 +33,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ selling_assistant.png filter=lfs diff=lfs merge=lfs -text
37
+ workflow.png filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,115 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model:
4
+ - Qwen/Qwen2.5-0.5B
5
+ language:
6
+ - en
7
+ - cn
8
+ tags:
9
+ - agent
10
+ - intent-recognition
11
+ - sentiment-analysis
12
+ - conversion-prediction
13
+ - script-generation
14
+ - quality-assurance
15
+ library_name: transformers
16
+ ---
17
+ # Selling-Assistant-V1
18
+
19
+ <p align="center">
20
+ <img src="selling_assistant.png" width=75%/>
21
+ <p>
22
+
23
+ ## Overview
24
+
25
+ Selling-Assistant-V1 is an intelligent sales assistant model trained primarily on Chinese sales dialogues and service logs. It understands customer intent, analyzes sentiment, predicts purchase propensity, generates persuasive sales scripts, and audits conversations for compliance and quality. The model is packaged for local inference with the Transformers ecosystem and can be embedded into CRM systems, chat widgets, and customer service tools.
26
+
27
+ - Model path: `/Users/wangyiwen/Desktop/Selling_AI/model_simulation/model`
28
+ - Training focus: Chinese language, sales and support domain
29
+ - Use cases: pre-sales consultation, lead nurturing, e-commerce guidance, customer service QA, and content marketing
30
+
31
+ ## Key Capabilities
32
+
33
+ 1. Intent Recognition: Predicts and classifies sales intent to guide conversation strategy.
34
+ 2. Sentiment Analysis: Detects user emotions and adjusts tone and response style accordingly.
35
+ 3. Conversion Prediction: Estimates purchase inclination and highlights key influencing factors.
36
+ 4. Sales Script Generation: Produces tailored scripts and product recommendations based on inferred needs.
37
+ 5. Quality Assurance: Evaluates compliance and interaction quality, providing self-learning optimizations.
38
+
39
+ The specific workflow is shown here:
40
+ <p align="center">
41
+ <img src="workflow.png" width=75%/>
42
+ <p>
43
+
44
+ ## Quickstart
45
+
46
+ Install dependencies:
47
+
48
+ ```bash
49
+ pip install transformers accelerate torch --upgrade
50
+ ```
51
+
52
+ Minimal inference (local path):
53
+
54
+ ```python
55
+ from transformers import AutoTokenizer, AutoModelForCausalLM, pipeline
56
+
57
+ MODEL_PATH = "https://huggingface.co/wwwywcom/Selling-Assistant-V1/tree/main/model"
58
+
59
+ tokenizer = AutoTokenizer.from_pretrained(MODEL_PATH)
60
+ model = AutoModelForCausalLM.from_pretrained(MODEL_PATH, device_map="auto", torch_dtype="auto")
61
+
62
+ assistant = pipeline(
63
+ "text-generation",
64
+ model=model,
65
+ tokenizer=tokenizer,
66
+ )
67
+
68
+ prompt = (
69
+ "你是一名智能销售助手。用户正在寻找价格友好、适合小户型房子的智能家居设备。"
70
+ "请推荐三个产品,并给出简短且有说服力的销售话术。"
71
+ )
72
+
73
+ out = assistant(
74
+ prompt,
75
+ max_new_tokens=256,
76
+ do_sample=True,
77
+ temperature=0.7,
78
+ top_p=0.9,
79
+ )
80
+ print(out[0]["generated_text"])
81
+ ```
82
+
83
+ Recommended settings:
84
+ - `max_new_tokens=128–512` depending on context length
85
+ - `temperature=0.6–0.8`, `top_p=0.85–0.95` for more diversity
86
+ - `repetition_penalty=1.05–1.15` to reduce redundancy
87
+
88
+ ## Architecture & Files
89
+
90
+ This repository includes a ready-to-run model directory containing tokenizer and weights for direct loading:
91
+ - `config.json`, `model.safetensors`, `tokenizer.json`, `vocab.json`, `merges.txt`, `special_tokens_map.json`, `added_tokens.json`, `tokenizer_config.json`, `chat_template.jinja`
92
+
93
+ ## Safety & Responsible Use
94
+
95
+ Use the model in accordance with the Apache 2.0 License. Ensure generated content respects applicable laws, privacy, and platform policies. Apply domain-specific guardrails for compliance and brand tone. Always verify critical recommendations (e.g., pricing, legal terms) before use.
96
+
97
+ ## Limitations
98
+
99
+ - Trained primarily on Chinese data; performance in non-Chinese contexts may vary.
100
+ - Conversion predictions are probabilistic and should be combined with business rules.
101
+ - Complex multi-turn dialogues may require retrieval augmentation and session memory.
102
+
103
+ ## Roadmap
104
+
105
+ - Multi-lingual fine-tuning and domain adapters
106
+ - Retrieval-augmented generation for product catalogs and FAQs
107
+ - Advanced QA scoring and compliance templates
108
+
109
+ ## License
110
+
111
+ Apache 2.0. You retain rights to generated content, subject to compliance and responsible-use guidelines.
112
+
113
+ ## Acknowledgements
114
+
115
+ Built with Hugging Face Transformers and community datasets. Inspired by best practices in intent detection, sentiment modeling, and sales conversation design.
selling_assistant.png ADDED

Git LFS Details

  • SHA256: 63c893e448b6664d535219f79b22473b26f1e3aba41e3469b90b7f93582104ec
  • Pointer size: 132 Bytes
  • Size of remote file: 1.48 MB
workflow.png ADDED

Git LFS Details

  • SHA256: e8a541790cf0eaa3f36f8bceadf38ba59da875a043657f54d3334fbdcc2ab84c
  • Pointer size: 131 Bytes
  • Size of remote file: 122 kB