Chit Chat Box

This is a conversational AI system built using Python 3.9+ and FastAPI. The system consists of three microservices: API Service, Answer Matching Service, and Conversation History Service. It allows users to ask questions and receive answers, find the best matching answers from a knowledge base, and store conversation history.

Requirements

  • Python 3.9+
  • FastAPI
  • Docker

Installation

Clone the repository:

git clone https://github.com/alenabauer/chit-chat-box.git
cd chit-chat-box

Usage

  1. Run the microservices with Docker Compose:
docker-compose up
  1. API documentation is now available at
  1. Send a request to the API service:
  • via curl:
curl -X POST -H "Content-Type: application/json" -d '{"question": "What is a server?"}' http://localhost:8002/api/v1/questions/new

The API Service will return a JSON response containing the best matching answer from the knowledge base.

  1. All conversations are stored in the conversation history database. To view the conversation history, send a request to the Conversation History Service:
  • via curl:
curl -X GET http://localhost:8003/api/v1/conversations/

Credits

This project was created using the following resources: