-
Notifications
You must be signed in to change notification settings - Fork 252
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
feat(wren-ai-service): sql pairs #961
Open
cyyeh
wants to merge
52
commits into
main
Choose a base branch
from
feat/ai-service/sql-pairs
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
d9e5f94
add api template and remove user_id
cyyeh 346705f
fix conflict
cyyeh 345ff22
fix conflict
cyyeh a17ee4a
update
cyyeh 3eb4911
fix conflict
cyyeh 983c5ab
reorganize tests
cyyeh 43ebbf8
fix typo
cyyeh ba8d18c
fix typo
cyyeh efe9e07
fix typo
cyyeh 95138a2
fix typo
cyyeh c252c5b
add sql_pairs_preparation tests
cyyeh 0bde109
fix sql_pairs_deletion and add test
cyyeh 42ad598
add test
cyyeh 35fdc04
update
cyyeh 9f25ecf
fix sql pairs
cyyeh 87b90db
fix conflict
cyyeh 63999d4
update api doc
cyyeh f0b6085
remove timer
cyyeh efe1a3b
fix conflicts
cyyeh 438598a
fix missing code
cyyeh db43e2f
Merge branch 'main' into feat/ai-service/sql-pairs
cyyeh 80292db
Merge branch 'main' into feat/ai-service/sql-pairs
cyyeh 688a615
fix conflicts
cyyeh e5b8f7b
fix conflicts
cyyeh a0dd555
refactor
cyyeh 7c48e9d
Merge branch 'main' into feat/ai-service/sql-pairs
cyyeh 5a7a337
fix generator run
cyyeh af26063
Merge branch 'main' into feat/ai-service/sql-pairs
cyyeh bc2c209
Merge branch 'main' into feat/ai-service/sql-pairs
cyyeh 0079454
merge
cyyeh 485630a
Merge branch 'main' into feat/ai-service/sql-pairs
cyyeh 9af56db
Merge branch 'main' into feat/ai-service/sql-pairs
cyyeh d556c07
Merge branch 'main' into feat/ai-service/sql-pairs
cyyeh 7ab7ff4
reformat configs
cyyeh dc1a3ab
remove pipeline visualization
cyyeh 28a8eea
remove redundant test file
cyyeh 1a9160d
reformat test code
cyyeh ffc836d
refine routing
cyyeh ffcf94c
fix component return type
cyyeh 23348ce
change delete_sql_pairs pipeline order
cyyeh 78b8409
Merge branch 'main' into feat/ai-service/sql-pairs
cyyeh b3dba11
Merge branch 'main' into feat/ai-service/sql-pairs
cyyeh d309bd8
Merge branch 'main' into feat/ai-service/sql-pairs
cyyeh b28790c
Merge branch 'main' into feat/ai-service/sql-pairs
cyyeh 08fbecc
fix conflict
cyyeh 624b7a7
Merge branch 'main' into feat/ai-service/sql-pairs
cyyeh defc559
Merge branch 'main' into feat/ai-service/sql-pairs
cyyeh ea91017
Merge branch 'main' into feat/ai-service/sql-pairs
cyyeh 1afc694
fix conflicts
cyyeh 1e21fcb
fix conflict
cyyeh 7d96661
Merge branch 'main' into feat/ai-service/sql-pairs
cyyeh b74d8cf
Merge branch 'main' into feat/ai-service/sql-pairs
cyyeh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -128,8 +128,11 @@ data: | |
- name: sql_answer | ||
llm: litellm_llm.gpt-4o-mini-2024-07-18 | ||
engine: wren_ui | ||
<<<<<<< HEAD | ||
======= | ||
- name: preprocess_sql_data | ||
llm: litellm_llm.gpt-4o-mini-2024-07-18 | ||
>>>>>>> main | ||
- name: sql_breakdown | ||
llm: litellm_llm.gpt-4o-mini-2024-07-18 | ||
engine: wren_ui | ||
|
@@ -154,6 +157,19 @@ data: | |
document_store: qdrant | ||
- name: data_assistance | ||
llm: litellm_llm.gpt-4o-mini-2024-07-18 | ||
- name: sql_pairs_preparation | ||
document_store: qdrant | ||
embedder: openai_embedder.text-embedding-3-large | ||
llm: litellm_llm.gpt-4o-mini-2024-07-18 | ||
- name: sql_pairs_deletion | ||
document_store: qdrant | ||
embedder: openai_embedder.text-embedding-3-large | ||
- name: sql_pairs_retrieval | ||
document_store: qdrant | ||
embedder: openai_embedder.text-embedding-3-large | ||
llm: litellm_llm.gpt-4o-mini-2024-07-18 | ||
- name: preprocess_sql_data | ||
llm: litellm_llm.gpt-4o-mini-2024-07-18 | ||
Comment on lines
+171
to
+172
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove duplicate pipeline entry The |
||
- name: sql_executor | ||
engine: wren_ui | ||
- name: chart_generation | ||
|
@@ -170,6 +186,5 @@ data: | |
query_cache_ttl: 3600 | ||
langfuse_host: https://cloud.langfuse.com | ||
langfuse_enable: true | ||
enable_timer: false | ||
logging_level: DEBUG | ||
development: false |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
from .chart_adjustment import ChartAdjustment | ||
from .chart_generation import ChartGeneration | ||
from .data_assistance import DataAssistance | ||
from .followup_sql_generation import FollowUpSQLGeneration | ||
from .intent_classification import IntentClassification | ||
from .question_recommendation import QuestionRecommendation | ||
from .relationship_recommendation import RelationshipRecommendation | ||
from .semantics_description import SemanticsDescription | ||
from .sql_answer import SQLAnswer | ||
from .sql_breakdown import SQLBreakdown | ||
from .sql_correction import SQLCorrection | ||
from .sql_expansion import SQLExpansion | ||
from .sql_explanation import SQLExplanation | ||
from .sql_generation import SQLGeneration | ||
from .sql_regeneration import SQLRegeneration | ||
from .sql_summary import SQLSummary | ||
|
||
__all__ = [ | ||
"SQLRegeneration", | ||
"ChartGeneration", | ||
"ChartAdjustment", | ||
"DataAssistance", | ||
"FollowUpSQLGeneration", | ||
"IntentClassification", | ||
"QuestionRecommendation", | ||
"RelationshipRecommendation", | ||
"SemanticsDescription", | ||
"SQLAnswer", | ||
"SQLBreakdown", | ||
"SQLCorrection", | ||
"SQLExpansion", | ||
"SQLExplanation", | ||
"SQLGeneration", | ||
"SQLSummary", | ||
] |
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolve merge conflict markers
The file contains unresolved merge conflict markers. Please resolve the conflict and remove the markers.
🧰 Tools
🪛 yamllint (1.35.1)
[error] 132-132: syntax error: could not find expected ':'
(syntax)