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

feat: Gradio Adater implementation #39

Merged
merged 26 commits into from
Jun 11, 2024
Merged

feat: Gradio Adater implementation #39

merged 26 commits into from
Jun 11, 2024

Conversation

karllu3
Copy link
Contributor

@karllu3 karllu3 commented May 28, 2024

No description provided.

Copy link

github-actions bot commented May 28, 2024

badge

Code Coverage Summary

Filename                                                  Stmts    Miss  Cover    Missing
------------------------------------------------------  -------  ------  -------  ---------------------------------------------------------------------
dbally/_exceptions.py                                         1       0  100.00%
dbally/_main.py                                              12       0  100.00%
dbally/_types.py                                              8       1  87.50%   24
dbally/collection.py                                         91       1  98.90%   138
dbally/assistants/base.py                                    23       0  100.00%
dbally/assistants/openai.py                                  59       2  96.61%   59-76
dbally/audit/event_span.py                                    8       0  100.00%
dbally/audit/event_tracker.py                                34       6  82.35%   35, 48, 59, 69, 86, 92
dbally/audit/event_handlers/base.py                          15       0  100.00%
dbally/audit/event_handlers/cli_event_handler.py             59      38  35.59%   13-15, 44-48, 51-59, 68-70, 82-94, 112-119, 129-133
dbally/audit/event_handlers/langsmith_event_handler.py       29      25  13.79%   6-107
dbally/data_models/audit.py                                  28       0  100.00%
dbally/data_models/execution_result.py                       14       0  100.00%
dbally/embeddings/_exceptions.py                             15       6  60.00%   10-11, 20, 29-30, 39
dbally/embeddings/base.py                                     5       0  100.00%
dbally/embeddings/litellm.py                                 28      19  32.14%   7-8, 44-52, 69-85
dbally/gradio/gradio_interface.py                           100     100  0.00%    1-249
dbally/iql/_exceptions.py                                    24       1  95.83%   33
dbally/iql/_processor.py                                     80       7  91.25%   16, 47, 64, 70, 76, 85, 91
dbally/iql/_query.py                                         13       1  92.31%   8
dbally/iql/_type_validators.py                               39       2  94.87%   24, 28
dbally/iql/syntax.py                                         36       9  75.00%   6-9, 27, 36, 60, 63-66
dbally/iql_generator/iql_generator.py                        31       0  100.00%
dbally/iql_generator/iql_prompt_template.py                  12       1  91.67%   38
dbally/llms/base.py                                          32       1  96.88%   35
dbally/llms/litellm.py                                       24      10  58.33%   8-9, 48-54, 61, 79
dbally/llms/clients/_exceptions.py                           15       6  60.00%   10-11, 20, 29-30, 39
dbally/llms/clients/base.py                                  24       2  91.67%   46-47
dbally/llms/clients/litellm.py                               44      20  54.55%   8-9, 65-71, 97-118
dbally/nl_responder/nl_responder.py                          29       4  86.21%   75-84
dbally/nl_responder/nl_responder_prompt_template.py           7       0  100.00%
dbally/nl_responder/query_explainer_prompt_template.py        7       0  100.00%
dbally/prompts/common_validation_utils.py                    15       0  100.00%
dbally/prompts/prompt_template.py                            28       2  92.86%   27, 35
dbally/similarity/chroma_store.py                            37       0  100.00%
dbally/similarity/elastic_vector_search.py                   19      16  15.79%   5-102
dbally/similarity/elasticsearch_store.py                     22      19  13.64%   5-107
dbally/similarity/faiss_store.py                             38      35  7.90%    5-103
dbally/similarity/fetcher.py                                  5       0  100.00%
dbally/similarity/index.py                                   26       0  100.00%
dbally/similarity/sqlalchemy_base.py                         44      23  47.73%   17, 35-37, 46, 57-59, 68, 77, 86-89, 99-105, 123-126
dbally/similarity/store.py                                    7       0  100.00%
dbally/utils/errors.py                                        2       0  100.00%
dbally/view_selection/base.py                                 7       0  100.00%
dbally/view_selection/llm_view_selector.py                   20       0  100.00%
dbally/view_selection/random_view_selector.py                10      10  0.00%    1-35
dbally/view_selection/view_selector_prompt_template.py       11       2  81.82%   32-33
dbally/views/base.py                                         13       1  92.31%   51
dbally/views/decorators.py                                    6       0  100.00%
dbally/views/exposed_functions.py                            33       1  96.97%   24
dbally/views/methods_base.py                                 34       2  94.12%   75, 83
dbally/views/pandas_base.py                                  33       1  96.97%   64
dbally/views/sqlalchemy_base.py                              37       7  81.08%   48, 63-65, 83-87
dbally/views/structured.py                                   45       0  100.00%
dbally/views/freeform/text2sql/config.py                     21       1  95.24%   47
dbally/views/freeform/text2sql/errors.py                      6       3  50.00%   10-12
dbally/views/freeform/text2sql/view.py                       95      22  76.84%   70, 73, 76, 79, 82, 94, 164, 168-171, 174, 206, 218-219, 233, 246-251
dbally_cli/main.py                                            3       3  0.00%    1-5
dbally_codegen/autodiscovery.py                             107      12  88.79%   194-196, 217-230, 233-236, 305-306, 402-407
TOTAL                                                      1670     422  74.73%

Diff against main

Filename                                            Stmts    Miss  Cover
------------------------------------------------  -------  ------  --------
dbally/collection.py                                   +2      +1  -1.10%
dbally/audit/event_handlers/cli_event_handler.py      +11      +5  +4.34%
dbally/gradio/gradio_interface.py                    +100    +100  +100.00%
TOTAL                                                +113    +106  -4.97%

Results for commit: 9003cf8

Minimum allowed coverage is 60%

♻️ This comment has been updated with latest results

Copy link

Trivy scanning results.

karllu3 added 6 commits May 28, 2024 16:13
@karllu3 karllu3 changed the title draft: feat: Gradio Adater implementation feat: Gradio Adater implementation Jun 4, 2024
@karllu3 karllu3 requested a review from mhordynski June 4, 2024 08:48
karllu3 added 4 commits June 6, 2024 03:05
karllu3 added 2 commits June 6, 2024 14:24
karllu3 added 5 commits June 6, 2024 19:21
karllu3 added 2 commits June 7, 2024 16:56
karllu3 added 3 commits June 10, 2024 21:41
Copy link
Member

@mhordynski mhordynski left a comment

Choose a reason for hiding this comment

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

good job 🏅

@karllu3 karllu3 merged commit 83dded0 into main Jun 11, 2024
3 checks 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.

None yet

4 participants