Skip to content

Add natural language query endpoint - #23

Merged
Ulthran merged 1 commit into
mainfrom
codex/plan-implementation-for-natural-language-query-feature
Aug 6, 2025
Merged

Add natural language query endpoint#23
Ulthran merged 1 commit into
mainfrom
codex/plan-implementation-for-natural-language-query-feature

Conversation

@Ulthran

@Ulthran Ulthran commented Aug 5, 2025

Copy link
Copy Markdown
Contributor

Summary

  • add utility module for simple natural language to SQL translation
  • expose /api/nl_query endpoint using the new utility
  • cover the new endpoint with a unit test

Testing

  • pytest tests/

https://chatgpt.com/codex/tasks/task_e_688bb997441483238ca4e1b9ea462b66

Copilot AI review requested due to automatic review settings August 5, 2025 19:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds natural language query functionality to the API, allowing users to submit questions in plain English and receive SQL translations with results. The implementation includes a basic natural language to SQL converter with support for simple count queries about isolates.

  • Added a utility module for natural language to SQL translation with basic question parsing
  • Exposed a new /api/nl_query POST endpoint that processes natural language questions
  • Added unit test coverage for the new endpoint functionality

Reviewed Changes

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

File Description
app/nl_query.py New utility module with basic natural language to SQL translation logic
app/app.py Added new /api/nl_query endpoint that uses the translation utility
tests/test_api.py Added unit test for the new natural language query endpoint

Comment thread app/nl_query.py
Comment thread app/nl_query.py
Comment thread app/app.py
Comment thread app/app.py
@Ulthran
Ulthran merged commit 25beddf into main Aug 6, 2025
6 checks passed
@Ulthran
Ulthran deleted the codex/plan-implementation-for-natural-language-query-feature branch August 6, 2025 01:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants