How creator-123/streamer-sales works
Streamer-Sales is a Streamlit shopping-host assistant: shoppers select a product, ask questions, and receive sales-oriented generated responses, optionally grounded in product manuals and rendered as speech. The repository also includes dataset and instruction-generation scripts, fine-tuning configuration, and product-upload/RAG capabilities documented in the README. The sampled sources establish the chat, retrieval, and speech call paths; some upload and dataset details are documented but not shown in source excerpts.
Main entry points: inference_gpt_sovits.py GPT-SoVITS inference · selling_page.py Sales chat · lmdeploy_infer.py LMDeploy generation · transformers_infer.py Transformers inference
Components 20
Shopping experience
- Product selection
app.py - Sales chat
pages/selling_page.py
Response generation
- Model loading
utils/infer/lmdeploy_infer.py - LMDeploy generation
utils/infer/lmdeploy_infer.py - Transformers inference
utils/infer/transformers_infer.py
Product knowledge
- RAG prompting
utils/tools.py - Manual retrieval
utils/rag/retriever.py - Vector database
utils/rag/feature_store.py - Manual ingestion
utils/rag/file_operation.py
Speech synthesis
- Speech orchestration
utils/tts/tts_worker.py - GPT-SoVITS inference
utils/tts/gpt_sovits/inference_gpt_sovits.py - Text-semantic model
utils/tts/gpt_sovits/AR/models/t2s_model.py - Audio model components
utils/tts/gpt_sovits/module/models.py - Text normalization
utils/tts/gpt_sovits/text/cleaner.py - Phoneme symbols
utils/tts/gpt_sovits/text/symbols.py
Data preparation
- Conversation datasets
dataset/gen_dataset/gen_dataset.py - Dataset merge
dataset/gen_dataset/merge_dataset.py - Manual generation
dataset/gen_instructions/gen_instruction.py - QLoRA configuration
finetune_configs/internlm2_chat_7b_qlora_custom_data.py
Other components
- Shopper
Connections 22
- Shopper → Product selection: chooses product
- Product selection → Sales chat: opens sales page
- Shopper → Sales chat: asks question
pages/selling_page.py - Sales chat → LMDeploy generation: requests response
pages/selling_page.py - Sales chat → Transformers inference: requests response
pages/selling_page.py - Model loading → Manual retrieval: initializes retriever
utils/infer/lmdeploy_infer.py - LMDeploy generation → RAG prompting: builds grounded prompt
utils/infer/lmdeploy_infer.py - Transformers inference → RAG prompting: builds grounded prompt
utils/infer/transformers_infer.py - RAG prompting → Manual retrieval: queries manuals
utils/tools.py - Vector database → Manual ingestion: scans source files
utils/rag/feature_store.py - Vector database → Manual retrieval: builds indexes
utils/rag/feature_store.py - LMDeploy generation → Speech orchestration: synthesizes response
utils/infer/lmdeploy_infer.py - Transformers inference → Speech orchestration: synthesizes response
utils/infer/transformers_infer.py - Speech orchestration → GPT-SoVITS inference: generates audio
utils/tts/tts_worker.py - GPT-SoVITS inference → Text-semantic model: predicts semantics
utils/tts/gpt_sovits/inference_gpt_sovits.py - GPT-SoVITS inference → Audio model components: decodes audio
utils/tts/gpt_sovits/inference_gpt_sovits.py - GPT-SoVITS inference → Text normalization: cleans text
utils/tts/gpt_sovits/inference_gpt_sovits.py - Text normalization → Phoneme symbols: uses symbols
utils/tts/gpt_sovits/text/cleaner.py - Shopper → Conversation datasets: provides no direct input
- Conversation datasets → Dataset merge: produces training data
- Manual generation → Vector database: creates manual content
- Dataset merge → QLoRA configuration: prepares fine-tuning data