Back to selected projects

Applied AIAI application

Empório da Música

A Portuguese-language AI support application for a fictional music shop, combining document retrieval with structured product and order tools.

  • Python
  • FastAPI
  • PydanticAI
  • Amazon Bedrock

The problem

A store-support assistant needs to answer from both written policies and changing operational data. Treating every question as a document search can miss structured facts such as product availability or order details.

My work

I built a Portuguese-language support application for a fictional music shop, with a React and TypeScript frontend and a Python API using FastAPI and PydanticAI. The assistant combines retrieval-augmented generation over store documents with structured tools for product, pricing, availability, and order questions.

The application uses Amazon Bedrock for model access, ChromaDB with multilingual E5 embeddings for document retrieval, and SQLite for structured data. The repository includes a Docker-based local setup.

Engineering decisions

  • Separate knowledge from operational data. Store policies and guidance are retrieved from documents; product and order facts come through structured tools.
  • Keep the interface and assistant service distinct. The React frontend communicates with the Python API, giving each layer a clear role.
  • Make the demo reproducible locally. The Docker-based setup makes the application inspectable without a public hosted instance.

What you can inspect

The source repository contains setup instructions and the application code. Running it requires AWS credentials and access to the configured Bedrock models; there is no public demo instance.