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.
- Python 3.9+
- FastAPI
- Docker
Clone the repository:
git clone https://github.com/alenabauer/chit-chat-box.git
cd chit-chat-box
- Run the microservices with Docker Compose:
docker-compose up
- API documentation is now available at
- http://localhost:8001/docs for the Answer Matching Service
- http://localhost:8002/docs for the API Service
- http://localhost:8003/docs for the Conversation History Service
- 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
- or via the Swagger UI at http://localhost:8002/docs
The API Service will return a JSON response containing the best matching answer from the knowledge base.
- 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/
- or via the Swagger UI at http://localhost:8003/docs
This project was created using the following resources: