Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try to fix gpt example #263

Merged
merged 1 commit into from
Sep 4, 2024
Merged

Try to fix gpt example #263

merged 1 commit into from
Sep 4, 2024

Conversation

xinhuitian
Copy link
Contributor

@xinhuitian xinhuitian commented Sep 3, 2024

In examples/chDB_GPT.ipynb, the refine_query part should print the query str instead of answer I think?

Meanwhile, for many LLMs (I used Zhipu for test in this case), the generated result always contains a markdown code block syntax around the real sql, so maybe we can add two replace operations to remove this? The test result is shown as below:
image

@CLAassistant
Copy link

CLAassistant commented Sep 3, 2024

CLA assistant check
All committers have signed the CLA.

@auxten
Copy link
Member

auxten commented Sep 4, 2024

Thanks for your contribution

@auxten auxten merged commit c550182 into chdb-io:main Sep 4, 2024
1 check passed
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