-
Notifications
You must be signed in to change notification settings - Fork 907
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #485 from vanna-ai/get-function
Function RAG for SQL Generation
- Loading branch information
Showing
5 changed files
with
367 additions
and
26 deletions.
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ build-backend = "flit_core.buildapi" | |
|
||
[project] | ||
name = "vanna" | ||
version = "0.5.5" | ||
version = "0.6.0" | ||
authors = [ | ||
{ name="Zain Hoda", email="[email protected]" }, | ||
] | ||
|
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,26 @@ | ||
from abc import ABC, abstractmethod | ||
|
||
|
||
class VannaAdvanced(ABC): | ||
def __init__(self, config=None): | ||
self.config = config | ||
|
||
@abstractmethod | ||
def get_function(self, question: str, additional_data: dict = {}) -> dict: | ||
pass | ||
|
||
@abstractmethod | ||
def create_function(self, question: str, sql: str, plotly_code: str, **kwargs) -> dict: | ||
pass | ||
|
||
@abstractmethod | ||
def update_function(self, old_function_name: str, updated_function: dict) -> bool: | ||
pass | ||
|
||
@abstractmethod | ||
def delete_function(self, function_name: str) -> bool: | ||
pass | ||
|
||
@abstractmethod | ||
def get_all_functions(self) -> list: | ||
pass |
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
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.