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

Add timestampts to facts #21

Open
3 tasks
lalalune opened this issue Feb 17, 2024 · 0 comments
Open
3 tasks

Add timestampts to facts #21

lalalune opened this issue Feb 17, 2024 · 0 comments
Assignees
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Milestone

Comments

@lalalune
Copy link
Collaborator

lalalune commented Feb 17, 2024

One of the features of bgent is that there is a facts evaluator, which derives facts from the conversation. Recent facts are recalled, along with "relevant" facts -- i.e. facts that in some way relate to the current conversation.

Facts should have timestamp, timestamp should be turned into X minutes ago, X hours ago, X days ago

We should create a set of functions (or find a library) that turns time information into semantic info. For example, "3 days ago".

For display facts, we should try to not polute with too much "3 days ago", but sort the facts by date and have one header for each day, or "last month", or whatever looks clean and makes sense.

  • Add functions to convert timestamp to "x minutes/days/weeks/months ago" (probably a library on npm for this)
  • Add this to the formatting of facts that are returned
  • Test this with facts to verify that relevant facts from long ago are indeed brought up
@lalalune lalalune added this to the 0.2.0 Beta milestone Feb 17, 2024
@lalalune lalalune added help wanted Extra attention is needed good first issue Good for newcomers labels Mar 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants