Skip to content

Fix/stt#48

Open
veetimar wants to merge 7 commits intodevfrom
fix/stt
Open

Fix/stt#48
veetimar wants to merge 7 commits intodevfrom
fix/stt

Conversation

@veetimar
Copy link
Copy Markdown
Collaborator

@veetimar veetimar commented Apr 2, 2026

Fixes a few minor problems in the AI pipeline. Now the results are returned to the glasses in the same language as the conversation.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adjusts AI pipeline prompt instructions and DB connectivity defaults, aiming to ensure smart-glasses responses match the conversation language and to clean up/streamline supporting scripts.

Changes:

  • Updated Gemini evaluation prompt to require answers in the transcript language and refined relevance criteria.
  • Adjusted memory extraction prompt to store vectors/titles in English.
  • Forced PostgreSQL client encoding to UTF-8 via connection URL and removed throttling from the local DB populate script.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.

File Description
src/memory_extractor.py Updates extraction prompt to store vectors and conversation names in English.
src/gemini_tools.py Refines “send to glasses” evaluation prompt, including same-language response requirement.
src/db.py Appends a client encoding parameter to the Postgres connection URL.
scripts/populate_db.py Removes time.sleep throttling during vector creation (embedding generation).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

veetimar and others added 2 commits April 2, 2026 16:27
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants