Skip to content

Conversation

Orbital-Web
Copy link
Contributor

Description

Added date + duration

Date is part of the context string (doc_updated_at) already, but it seems like the model doesn't make the connection that updated_at = time of the meeting. Also, duration is the length of the meeting in minutes, floored to the nearest integer. Even if the last half of the meeting is silent, it will still count towards the duration. I think this is fine in most cases though.

How Has This Been Tested?

Before:
image

After:
image
image

Backporting (check the box to trigger backport action)

Note: You have to check that the action passes, otherwise resolve the conflicts manually and tag the patches.

  • This PR should be backported (make sure to check that the backport attempt succeeds)
  • [Optional] Override Linear Check

@Orbital-Web Orbital-Web requested a review from a team as a code owner July 4, 2025 23:53
Copy link

vercel bot commented Jul 4, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
internal-search ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 5, 2025 0:06am

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

Enhanced Fireflies connector to better expose meeting metadata by explicitly adding meeting date and duration to Document metadata, improving context for AI interactions.

  • Modified GraphQL query in backend/onyx/connectors/fireflies/connector.py to fetch duration field from Fireflies API
  • Added metadata dictionary to Document constructor with meeting_date and duration_min fields for clearer data representation
  • Potential issue: Missing type validation for duration field before integer conversion, could cause runtime errors if API returns invalid data
  • Missing error handling for cases where duration field is missing or null in API response
  • Consider adding input validation to ensure duration is within reasonable bounds (e.g., not negative or unreasonably large)

3 files reviewed, 3 comments
Edit PR Review Bot Settings | Greptile

target_doc.source == DocumentSource.FIREFLIES
), "Document source is not fireflies"
assert target_doc.metadata == {}
assert target_doc.metadata == test_data["metadata"]
Copy link
Contributor

Choose a reason for hiding this comment

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

style: Consider adding explicit assertions for the expected metadata fields (date and duration) rather than just comparing the whole dict

@Weves Weves merged commit 5f03e85 into main Jul 5, 2025
13 of 14 checks passed
@Weves Weves deleted the fireflies-metadata branch July 5, 2025 01:39
AnkitTukatek pushed a commit to TukaTek/onyx that referenced this pull request Sep 23, 2025
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