Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/michaelconan/flask-rag-service
Web application and REST API Retrieval Augmented Generation microservice with distributed task preprocessing and vector database
https://github.com/michaelconan/flask-rag-service
Last synced: 22 days ago
JSON representation
Web application and REST API Retrieval Augmented Generation microservice with distributed task preprocessing and vector database
- Host: GitHub
- URL: https://github.com/michaelconan/flask-rag-service
- Owner: michaelconan
- Created: 2024-07-15T10:29:38.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-15T10:55:16.000Z (6 months ago)
- Last Synced: 2024-07-15T12:56:36.296Z (6 months ago)
- Language: Python
- Size: 46.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# flask-rag-service
Web application and REST API Retrieval Augmented Generation microservice with distributed task preprocessing and vector database.
## Content
## Flask Application Design and Extensions
- [Flask + Celery example](https://github.com/pallets/flask/tree/main/examples/celery): Use Celery for distributed background tasks
- [Flask SQLAlchemy](https://flask-sqlalchemy.palletsprojects.com/en/3.1.x/quickstart): Object Relational Mapper (ORM) pattern to define database patterns and relationships
- [Flask BCrypt](https://flask-bcrypt.readthedocs.io/en/1.0.1/): Hash password for database storage, compare hash for login function
- [Flask JWT Extended](https://flask-jwt-extended.readthedocs.io/en/stable/index.html)
- [Implicit Cookie Refresh](https://flask-jwt-extended.readthedocs.io/en/stable/refreshing_tokens.html#implicit-refreshing-with-cookies): Use cookies to store JWT token for web application authorization
- [Explicity Token Refresh](https://flask-jwt-extended.readthedocs.io/en/stable/refreshing_tokens.html#token-freshness-pattern): Use refresh token pattern for API authorization
- [Flask Unit Testing (pytest)](https://flask.palletsprojects.com/en/1.1.x/testing/): Unit tests for flask views, commands and extensions## Build and Test
Run pre-commit hooks for formatting:
`poetry run pre-commit run --all-files --verbose --show-diff-on-failure`