Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove google language manager #10639

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

nickoferrall
Copy link
Contributor

@nickoferrall nickoferrall commented Jan 7, 2025

This PR removes the Google Language Manager now that we're using ChatGPT for reflection group titles (#10546).

The demo continues to use the entities logic.

This also removes the Sentiment Score logic. See Slack discussion here.

To test

  • Retro demo works as expected
  • Retro meeting works

@github-actions github-actions bot added the size/l label Jan 8, 2025
@nickoferrall nickoferrall marked this pull request as ready for review January 8, 2025 22:46
Copy link
Contributor

@rafaelromcar-parabol rafaelromcar-parabol left a comment

Choose a reason for hiding this comment

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

I just wanted to make sure you were not removing the GOOGLE_CLOUD variables, because they are also used for the GCP GCS file store. Good from my side.

@nickoferrall nickoferrall self-assigned this Jan 16, 2025
@rafaelromcar-parabol
Copy link
Contributor

Hey @mattkrick could you review this for @nickoferrall ? It's also useful for me, as it would remove one more thing from GCP 😸 I want to move the old PPMIs to their new GCP projects and I want to enable only useful APIs 😄

Copy link
Member

@mattkrick mattkrick left a comment

Choose a reason for hiding this comment

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

I'm a bit concerned that the demo now operates VERY differently from what happens on the server, specifically that entities won't exist on the server, but it still exists on the demo entities & there's server code that still shows a reference to it. That's gonna get really confusing for us as devs in 6 months from now when we forget what happened here.

My suggestion:

  • get rid of all references to GoogleAnalyzedEntities (lemma, salience), including removing it from the GQL schema
  • change the demo version of updateReflectionContent so the logic matches what the server version does. you can have it create a title with OpenAI or use a precanned version, but it shouldn't reference entities because those shouldn't exist anymore

.filter((word) => word.length > 3) // Skip small words
.slice(0, 3)
.join(' ')
.toLowerCase()
Copy link
Member

Choose a reason for hiding this comment

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

+1 what about acronyms or proper nouns?


const getReflectionEntities = async (plaintextContent: string) => {
const getBasicLemma = (word: string): string => {
Copy link
Member

Choose a reason for hiding this comment

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

-2 this is just too brittle. it'll only work on english, and even then words like "bread" and "Brent" are gonna get recognized as the same lemma. In cases like this, where there's a high likelihood of bad data, we're usually better of with just no data at all.

@nickoferrall nickoferrall linked an issue Jan 23, 2025 that may be closed by this pull request
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: In review
Development

Successfully merging this pull request may close these issues.

Remove GoogleLanguageManager for reflection group titles
3 participants