Skip to content

Text to SQL microservice#736

Merged
lvliang-intel merged 18 commits intoopea-project:mainfrom
yogeshmpandey:texttosql
Sep 26, 2024
Merged

Text to SQL microservice#736
lvliang-intel merged 18 commits intoopea-project:mainfrom
yogeshmpandey:texttosql

Conversation

@yogeshmpandey
Copy link
Copy Markdown
Collaborator

Description

This microservice introduces text to SQL features in OPEA. Users can use natural language to do QnA/Conversations with the SQL-based database. (Currently, PostgreSQL is supported).

Issues

List the issue or RFC link this PR is working on. If there is no such link, please mark it as n/a.

630

Type of change

List the type of change like below. Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds new functionality)
  • Breaking change (fix or feature that would break existing design and interface)
  • Others (enhancement, documentation, validation, etc.)

Dependencies

List the newly introduced 3rd party dependency if exists.

  • sqlalchemy

Tests

Describe the tests that you ran to verify your changes.

Created a new test case for end-to-end testing of the microservices.

@lvliang-intel
Copy link
Copy Markdown
Collaborator

@yogeshmpandey,

please add the following words into code spell ignore file.

image

@chensuyue
Copy link
Copy Markdown
Collaborator

Add skip format here,

skip = '*.po,*.js,*.map,*.js.map,*.css.map,*.json'

@lvliang-intel lvliang-intel merged commit 827e3d4 into opea-project:main Sep 26, 2024
@@ -0,0 +1,17 @@
docarray[full]
fastapi
langchain==0.2.9
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Can we remove the version just use the latest one?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Because other microservice will use the latest version, but share if they can co-work in an example's pipeline.

@yogeshmpandey yogeshmpandey mentioned this pull request Sep 30, 2024
madison-evans pushed a commit to SAPD-Intel/GenAIComps that referenced this pull request May 12, 2025
* Initial Version of TextToSQL

Signed-off-by: Yogesh <[email protected]>

* Updated Code to add more metadata in the reply

Signed-off-by: Yogesh <[email protected]>

* Updated DockerFile

Signed-off-by: Yogesh <[email protected]>

* UpdatedREADME

Signed-off-by: Yogesh <[email protected]>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Fixed precommit CIs

Signed-off-by: Yogesh <[email protected]>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Updated yaml files

Signed-off-by: Yogesh <[email protected]>

* Updated tests to use the right directory

Signed-off-by: Yogesh <[email protected]>

* Updated tests to use the right env

Signed-off-by: Yogesh <[email protected]>

* Updates as per review comments | fixed README and requirements.txt

Signed-off-by: Yogesh <[email protected]>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Added changed as per review comments

Signed-off-by: Yogesh <[email protected]>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Signed-off-by: Yogesh <[email protected]>
Co-authored-by: Yogesh <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
WenjiaoYue pushed a commit that referenced this pull request Jul 7, 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.

4 participants