-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Build .whl * Model path correction * Fix model access all-MiniLM-L6-v2 * Add control to adjust log levels * Model cache path fix
- Loading branch information
1 parent
063977e
commit 743d7d0
Showing
7 changed files
with
106 additions
and
51 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 |
---|---|---|
@@ -1,17 +1,15 @@ | ||
sentence_transformer = s3cmd get --recursive --skip-existing s3://h2o-model-gym/models/nlp/sentence_trasnsformer/all-MiniLM-L6-v1/ ./models/sentence_transformer/all-MiniLM-L6-v1 | ||
sentence_transformer = s3cmd get --recursive --skip-existing s3://h2o-model-gym/models/nlp/sentence_trasnsformer/all-MiniLM-L6-v2/ ./models/sentence_transformers/sentence-transformers_all-MiniLM-L6-v2 | ||
|
||
.PHONY: download-models | ||
|
||
all: download-models | ||
|
||
setup: download_models ## Setup | ||
mkdir -p ./var/lib/tmp/data | ||
mkdir -p ./var/lib/tmp/.cache | ||
python3 -m venv .sidekickvenv | ||
./.sidekickvenv/bin/python3 -m pip install --upgrade pip | ||
./.sidekickvenv/bin/python3 -m pip install wheel | ||
./.sidekickvenv/bin/python3 -m pip install -r requirements.txt | ||
|
||
download_models: | ||
mkdir -p ./models/sentence_transformer/all-MiniLM-L6-v1 | ||
mkdir -p ./models/sentence_transformers/sentence-transformers_all-MiniLM-L6-v2 | ||
$(sentence_transformer) |
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,20 +4,21 @@ version = "0.0.1" | |
license = "Proprietary" | ||
description = "An AI assistant for SQL" | ||
authors = [ | ||
"Pramit Choudhary <[email protected]>", | ||
"Pramit Choudhary <[email protected]>", | ||
"Michal Malohlava <[email protected]>" | ||
] | ||
readme = "README.md" | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"Environment :: Console", | ||
"Intended Audience :: Developers", | ||
"Development Status :: Alpha", | ||
"Environment :: CLI", | ||
"Intended Audience :: Developers, Analysts", | ||
"License :: Other/Proprietary License", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3.8+", | ||
"Topic :: Scientific/Engineering", | ||
"Topic :: Scientific/Engineering :: Artificial Intelligence" | ||
] | ||
packages = [{include = "sidekick"}] | ||
|
||
[tool.poetry.dependencies] | ||
python = ">=3.8.16,<3.10" | ||
|
@@ -36,6 +37,8 @@ sentence-transformers = "^2.2.2" | |
torch = "^2.0.1" | ||
sqlalchemy-utils = "^0.41.1" | ||
|
||
[tool.poetry.scripts] | ||
sql-sidekick = "sidekick.prompter:cli" | ||
|
||
[tool.poetry.dev-dependencies] | ||
pylint = { version = "^2.12.2", allow-prereleases = true } | ||
|
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 |
---|---|---|
|
@@ -6,3 +6,6 @@ HOST_NAME = "localhost" | |
USER_NAME = "postgres" | ||
PASSWORD = "abc" | ||
DB_NAME = "querydb" | ||
|
||
[LOGGING] | ||
LOG-LEVEL = "INFO" |
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