Azure-Samples / rag-postgres-openai-python

A RAG app to ask questions about rows in a database table. Deployable on Azure Container Apps with PostgreSQL Flexible Server.
MIT License
211 stars 78 forks source link

Improvements and Tests #54

Closed john0isaac closed 3 months ago

john0isaac commented 3 months ago

Purpose

This PR sets up two test clients one with the database and one without. It also adds data classes for the response that follows the Microsoft Chat Protocol and improves the typing. It also adds tests for the frontend routes with 100% coverage.

image

Does this introduce a breaking change?

[ ] Yes
[x] No

Type of change

[ ] Bugfix
[ ] Feature
[x] Code style update (formatting, local variables)
[x] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

Code quality checklist

See CONTRIBUTING.md for more details.