Skip to content

Commit 087b91b

Browse files
committed
Update deps
1 parent 20ae6bb commit 087b91b

File tree

4 files changed

+6
-14
lines changed

4 files changed

+6
-14
lines changed

text_2_sql/data_dictionary/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,14 @@ A full data dictionary must be built for all the views / tables you which to exp
9393

9494
Manually creating the `entities.json` is a time consuming exercise. To speed up generation, a mixture of SQL Queries and an LLM can be used to generate a initial version. Existing comments and descriptions in the database, can be combined with sample values to generate the necessary descriptions. Manual input can then be used to tweak it for the use case and any improvements.
9595

96-
`data_dictionary_creator.py` contains a utility class that handles the automatic generation and selection of schemas from the source SQL database. It must be subclassed to the appropriate engine to handle engine specific queries and connection details.
96+
`./text_2_sql_core/data_dictionary/data_dictionary_creator.py` contains a utility class that handles the automatic generation and selection of schemas from the source SQL database. It must be subclassed to the appropriate engine to handle engine specific queries and connection details.
9797

9898
See `./generated_samples/` for an example output of the script. This can then be automatically indexed with the provided indexer for the **Vector-Based Approach**.
9999

100100
The following Databases have pre-built scripts for them:
101101

102-
- **Databricks:** `databricks_data_dictionary_creator.py`
103-
- **Snowflake:** `snowflake_data_dictionary_creator.py`
104-
- **TSQL:** `tsql_data_dictionary_creator.py`
102+
- **Databricks:** `./text_2_sql_core/data_dictionary/databricks_data_dictionary_creator.py`
103+
- **Snowflake:** `./text_2_sql_core/data_dictionary/snowflake_data_dictionary_creator.py`
104+
- **TSQL:** `./text_2_sql_core/data_dictionary/tsql_data_dictionary_creator.py`
105105

106106
If there is no pre-built script for your database engine, take one of the above as a starting point and adjust it.

text_2_sql/data_dictionary/requirements.txt

Lines changed: 0 additions & 8 deletions
This file was deleted.

text_2_sql/text_2_sql_core/src/text_2_sql_core/connectors/ai_search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from azure.core.credentials import AzureKeyCredential
66
from azure.search.documents.models import VectorizedQuery
77
from azure.search.documents.aio import SearchClient
8-
from environment import IdentityType, get_identity_type
8+
from text_2_sql_core.utils.environment import IdentityType, get_identity_type
99
import os
1010
import logging
1111
import base64

text_2_sql/text_2_sql_core/src/text_2_sql_core/connectors/sql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import os
55
import aioodbc
66
from typing import Annotated, Union
7-
from utils.ai_search import AISearchHelper
7+
from text_2_sql_core.connectors.ai_search import AISearchHelper
88
import json
99
import asyncio
1010
import sqlglot

0 commit comments

Comments
 (0)