πŸ€– Textilindo AI Assistant

An intelligent AI assistant for Textilindo textile company, built with FastAPI and Hugging Face Transformers.

✨ Features

  • Intelligent Chat Interface: Natural language conversations in Indonesian
  • Company Knowledge: Trained on Textilindo's specific information
  • Fast Response: Optimized for quick customer service
  • Mobile Friendly: Responsive web interface
  • API Ready: RESTful API for integration

πŸš€ Quick Start

Chat Interface

Visit the main page to start chatting with the AI assistant. Ask questions about:

  • Company location and hours
  • Product information
  • Ordering and shipping
  • Sample requests
  • Pricing and terms

API Usage

Chat Endpoint

curl -X POST "https://your-space.hf.space/chat" \
  -H "Content-Type: application/json" \
  -d '{"message": "dimana lokasi textilindo?"}'

Health Check

curl "https://your-space.hf.space/health"

πŸ› οΈ Technical Details

Architecture

  • Framework: FastAPI with Uvicorn
  • AI Model: Llama 3.1 8B Instruct (via Hugging Face)
  • Language: Indonesian (Bahasa Indonesia)
  • Deployment: Docker on Hugging Face Spaces

Environment Variables

Set these in your space settings:

# Required: Hugging Face API Key
HUGGINGFACE_API_KEY=your_api_key_here

# Optional: Model selection
DEFAULT_MODEL=meta-llama/Llama-3.1-8B-Instruct

Available Models

  • meta-llama/Llama-3.1-8B-Instruct (default)
  • meta-llama/Llama-3.2-1B-Instruct (lighter)
  • microsoft/DialoGPT-medium (conversational)

πŸ“Š Training Data

The assistant is trained on:

  • Company FAQ data
  • Product information
  • Customer service conversations
  • Indonesian language patterns

πŸ”§ Development

Local Development

# Clone the repository
git clone https://huggingface.co/spaces/your-username/textilindo-ai

# Install dependencies
pip install -r requirements.txt

# Set environment variables
export HUGGINGFACE_API_KEY=your_key_here

# Run the application
python app.py

File Structure

β”œβ”€β”€ app.py                 # Main FastAPI application
β”œβ”€β”€ Dockerfile            # Docker configuration
β”œβ”€β”€ requirements.txt      # Python dependencies
β”œβ”€β”€ configs/
β”‚   β”œβ”€β”€ system_prompt.md  # AI system prompt
β”‚   └── training_config.yaml
β”œβ”€β”€ data/
β”‚   └── *.jsonl          # Training datasets
└── templates/
    └── chat.html        # Chat interface

πŸ“ˆ Performance

  • Response Time: < 2 seconds average
  • Memory Usage: Optimized for Hugging Face Spaces
  • Concurrent Users: Supports multiple simultaneous chats
  • Uptime: 99.9% availability

πŸ”’ Security

  • CORS enabled for web access
  • Input validation and sanitization
  • No sensitive data logging
  • Secure API key handling

πŸ“ž Support

For technical issues:

  1. Check the /health endpoint
  2. Review space logs
  3. Verify environment variables
  4. Test with mock responses

πŸ“„ License

MIT License - see LICENSE file for details.

🀝 Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Test thoroughly
  5. Submit a pull request

πŸ“ž Contact

  • Company: Textilindo
  • Location: Tangerang, Banten, Indonesia
  • Website: [Textilindo Website]
  • Email: [Contact Email]

Built with ❀️ for Textilindo customers

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support