Lotta Supply

Development Log

Back to all entries

Inline AI Suggestion Review and Embedding Migration Completed

We launched a new inline AI suggestion review feature in the report editor. Users can now see AI fill suggestions directly below each field in the report and accept or reject them individually or in bulk. This includes improved undo functionality, better handling of field metadata, and fixes for data integrity issues during acceptance. This feature significantly improves the user experience when reviewing and accepting AI-generated data.

Significant improvements were also made to AI fill, including preventing AI suggestions for calculated fields, providing toast warnings on clearing undo history, and enhanced tooltip accessibility. Several fixes were implemented to improve data integrity and prevent save-race conditions. Additionally, unit tests were added to cover edge cases in AI fill helpers, ensuring robustness.

Finally, we migrated our embedding service to Gemini Embedding 2 to address the retirement of the previous model. This migration ensures continued functionality for chunk ingestion and uses the latest Google AI SDK for embeddings. To ensure accessibility on long pages, we also made the toggle sidebar sticky while scrolling.

View source activity

Commits (3)

  • fix(embeddings): migrate to gemini-embedding-2 (text-embedding-004 retired) (#186)
  • feat: inline AI fill suggestion review in report editor (#184)
  • Make toggle sidebar variant sticky while scrolling (#183)

Pull Requests (3)

  • #186: fix(embeddings): migrate to gemini-embedding-2 (text-embedding-004 retired)
  • #184: feat: inline AI fill suggestion review in report editor
  • #183: Make toggle sidebar variant sticky while scrolling