Skip to content

Conversation

@lotif
Copy link
Collaborator

@lotif lotif commented Jan 23, 2026

Summary

This is the first version of the report generation agent. This code was based on the Agent Bootcamp's ReACT RAG code and it brings a lot of code from there.

Future PRs will include more code to do evaluations on this agent.

Clickup Ticket(s): NA

Type of Change

  • 🐛 Bug fix (non-breaking change that fixes an issue)
  • ✨ New feature (non-breaking change that adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 📝 Documentation update
  • 🔧 Refactoring (no functional changes)
  • ⚡ Performance improvement
  • 🧪 Test improvements
  • 🔒 Security fix

Changes Made

  • Copying code from the Agents Bootcamp
  • Modifying it to:
    • Make it access a local SQLite file
    • Make it output an .xlsx file at the end
  • Adding detailed README instructions
  • Adding a data import script

Testing

Only manual tests performed.

Manual testing details:

  • Set up your .env file based on the .env.example file
  • Follow the README instructions.

Checklist

  • Code follows the project's style guidelines
  • Self-review of code completed
  • Documentation updated (if applicable)
  • No sensitive information (API keys, credentials) exposed

@lotif lotif requested review from amrit110 and fcogidi January 23, 2026 17:36
Copy link
Member

@amrit110 amrit110 left a comment

Choose a reason for hiding this comment

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

Minor comments

def execute(self, query: str) -> list[Any]:
"""Execute a SQLite query.
Args:
Copy link
Member

Choose a reason for hiding this comment

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

Nitpicky here, but isn't this google docstring stryle, but then the Returns and other places in the PR looks like numpy style. I prefer numpy style but we should just pick one and be consistent.

def convert_date(date_str: str) -> str | None:
"""Convert date from 'MM/DD/YY HH:MM' to 'YYYY-MM-DD HH:MM'.
Args:
Copy link
Member

Choose a reason for hiding this comment

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

Same here with docstring style

) -> SQLiteSession:
"""Get existing session or create a new one for conversation persistence.
Args:
Copy link
Member

Choose a reason for hiding this comment

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

Same here (docstring style)

[tool.ruff]
include = ["*.py", "pyproject.toml", "*.ipynb"]
line-length = 88
line-length = 120
Copy link
Member

Choose a reason for hiding this comment

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

Not really a suggestion to change but our templates have 88 which is the PEP8/black standard, but i'm fine with 120 for this project. I'm starting to see that 120 is better for github viewing as well just less eye strain lol.

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.

3 participants