Add natural language query endpoint - #23
Merged
Ulthran merged 1 commit intoAug 6, 2025
Merged
Conversation
Contributor
There was a problem hiding this comment.
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_queryPOST 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 |
Ulthran
deleted the
codex/plan-implementation-for-natural-language-query-feature
branch
August 6, 2025 01:19
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/api/nl_queryendpoint using the new utilityTesting
pytest tests/https://chatgpt.com/codex/tasks/task_e_688bb997441483238ca4e1b9ea462b66