FAQ-ChatBot Tailwind Templates

Faq Chatbot

This can be used as chatbot for a website.

šŸ” Natural Language FAQ Search (FAQ Chatbot)

Search through FAQs using natural language queries. The system uses Typesense to provide fast and relevant search results for frequently asked questions.

Tech Stack

  • Typesense - Fast, typo-tolerant search engine
  • React - Frontend framework
  • TypeScript - Type-safe JavaScript
  • Tailwind CSS - Utility-first CSS framework
  • Vite
  • Docker

Project Structure

ā”œā”€ā”€ src/
│   ā”œā”€ā”€ data/
│   │   └── faqData.jsonl # FAQ data in JSONL format
│   ā”œā”€ā”€ components/
│   │   └── ChatMessage.tsx # Message component for Q&A display
│   ā”œā”€ā”€ lib/
│   │   ā”œā”€ā”€ searchFAQ.ts # FAQ search functionality
│   │   └── typesense.ts # Typesense client configuration
│   └── App.tsx # Main application component

Development

To run this project locally:

  1. Start Typesense server:
npm run start:typesense # or: docker compose up

or

docker compose up
  1. Index FAQ data into Typesense:
npm run index:typesense
  1. Start the development server:
npm run dev

Open http://localhost:5173 to see the app šŸš€

Features

  • Natural language search for FAQs
  • Fast and typo-tolerant search powered by Typesense
  • Clean and responsive UI
  • Markdown support in answers
  • Real-time search results

Environment Variables

See .env.example for required environment variables:

TYPESENSE_API_KEY=your_api_key
TYPESENSE_HOST=localhost
TYPESENSE_PORT=8108
TYPESENSE_PROTOCOL=http

Created By

This project was created by Ajoy Sarker, a Full Stack Web Developer specializing in:

  • Frontend: React.js, TypeScript, React Native
  • Backend: Django, Node.js, NestJS
  • Database: MongoDB
  • Programming: Python

Top categories

Loading Svelte Themes