Skip to content

Chore/ai service/minor update#431

Merged
paopa merged 7 commits intomainfrom
chore/ai-service/update-text-to-sql-prompt
Jun 20, 2024
Merged

Chore/ai service/minor update#431
paopa merged 7 commits intomainfrom
chore/ai-service/update-text-to-sql-prompt

Conversation

@cyyeh
Copy link
Copy Markdown
Member

@cyyeh cyyeh commented Jun 20, 2024

  • show user defined alias while generating sql
  • added relationship jointype and condition to ddl
  • added LLM_PROVIDER and DOCUMNET_STORE_PROVIDER to env file and docker-compose.yaml in the docker folder
  • changed azureopenai to azure_openai, same as the file name for consistency

@cyyeh cyyeh added the module/ai-service ai-service related label Jun 20, 2024
@cyyeh cyyeh requested a review from paopa June 20, 2024 00:30
@cyyeh cyyeh changed the title Chore/ai service/update text to sql prompt Chore/ai service/minor update Jun 20, 2024
Copy link
Copy Markdown
Contributor

@paopa paopa left a comment

Choose a reason for hiding this comment

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

overall LGTM. only a minor comment. 👍

Comment on lines +200 to +204
column["properties"]["alias"] = column["properties"].get(
"displayName", ""
)
if "displayName" in column["properties"]:
del column["properties"]["displayName"]
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.

How about using the pop method to make the code cleaner and more concise?

d = {"c": 2}


d["b"] = d.pop("a", 0)
d["d"] = d.pop("c", 0)


print(d) # {'b': 0, 'd': 2}

@paopa paopa merged commit eecb74d into main Jun 20, 2024
@paopa paopa deleted the chore/ai-service/update-text-to-sql-prompt branch June 20, 2024 03:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module/ai-service ai-service related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants