LLM-Based Business Chat & Data Validation System is an AI-powered platform that automates the verification of business information and allows users to query the validated data using an interactive chatbot. This system uses GPT-4 Turbo with Custom Fine-Tuning to validate business details and provide conversational insights.
Component | Technology |
---|---|
Frontend | Streamlit |
Backend | Python + FastAPI |
Database | Neon PostgreSQL |
AI Model | GPT-4 Turbo (OpenAI API) - Fine-Tuned |
Libraries | pandas, psycopg2, dotenv, streamlit |
Hosting | Streamlit Cloud |
LLM API | OpenAI API |
git clone https://github.com/your-repo/llm-business-chat.git cd llm-business-chat
pip install -r requirements.txt
Create a .env
file and add the following keys:
OPENAI_API_KEY=your_openai_api_key NEON_DB_URL=your_postgresql_url FINE_TUNED_MODEL=your_model_name
streamlit run app.py
āāā app.py # Streamlit App
āāā llm.py # LLM Validation Logic (Fine-Tuned Model)
āāā neon.py # PostgreSQL DB Connection
āāā .env # Environment Variables
āāā requirements.txt # Dependencies
āāā README.md # Documentation
Endpoint | Method | Description |
---|---|---|
/validate | POST | Validate Business Data (Using Fine-Tuned LLM) |
/chat | POST | Chat with Verified Data |
/fetch | GET | Fetch Verified Data |
Name | Address | Website | Phone Number | Reviews | Rating | Latitude | Longitude |
---|---|---|---|---|---|---|---|
Kumar Electronics | Boring Road | kumarelectronics.in | 0987654321 | 45 | 4.2 | 25.6093 | 85.1234 |
Royal Bakery | Rajendra Nagar | royalbakerypatna.com | 0934567890 | 120 | 4.7 | 25.6200 | 85.1450 |
This project is licensed under the MIT License.
Contributions are welcome! Please create an issue or submit a pull request.
Kumar Mayank
Email: kumarmayank@gmail.com
LinkedIn: Kumar Mayank