Skip to content

Commit 0c4622b

Browse files
손봉균손봉균
authored andcommitted
Fix: 리뷰에서 지적된 부분 보완
1 parent a2b2762 commit 0c4622b

File tree

3 files changed

+123
-7
lines changed

3 files changed

+123
-7
lines changed

.env.example

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
###############################################
2+
############## LLM API SELECTION ##############
3+
###############################################
4+
5+
# LLM_PROVIDER=openai
6+
# OPEN_AI_LLM_KEY=
7+
# OPEN_AI_LLM_MODEL=gpt-4o
8+
9+
# LLM_PROVIDER=gemini
10+
# GEMINI_API_KEY=
11+
# GEMINI_LLM_MODEL=gemini-2.0-flash-lite
12+
13+
# LLM_PROVIDER=azure
14+
# AZURE_OPENAI_LLM_ENDPOINT=
15+
# AZURE_OPENAI_LLM_KEY=
16+
# AZURE_OPENAI_LLM_MODEL=
17+
# AZURE_OPENAI_LLM_API_VERSION=
18+
19+
# LLM_PROVIDER=ollama
20+
# OLLAMA_LLM_BASE_URL=
21+
# OLLAMA_LLM_MODEL=
22+
23+
# LLM_PROVIDER=huggingface
24+
# HUGGING_FACE_LLM_REPO_ID=
25+
# HUGGING_FACE_LLM_ENDPOINT=
26+
# HUGGING_FACE_LLM_API_TOKEN=
27+
28+
# LLM_PROVIDER=bedrock
29+
# AWS_BEDROCK_LLM_ACCESS_KEY_ID=
30+
# AWS_BEDROCK_LLM_SECRET_ACCESS_KEY=
31+
# AWS_BEDROCK_LLM_REGION=us-west-2
32+
# AWS_BEDROCK_LLM_ENDPOINT_URL=https://bedrock.us-west-2.amazonaws.com
33+
# AWS_BEDROCK_LLM_MODEL=anthropic.claude-3-5-sonnet-20241022-v2:0\
34+
35+
###############################################
36+
########### Embedding API SElECTION ###########
37+
###############################################
38+
# Only used if you are using an LLM that does not natively support embedding (openai or Azure)
39+
# EMBEDDING_ENGINE='openai'
40+
# OPEN_AI_KEY=sk-xxxx
41+
# EMBEDDING_MODEL_PREF='text-embedding-ada-002'
42+
43+
# EMBEDDING_ENGINE='azure'
44+
# AZURE_OPENAI_ENDPOINT=
45+
# AZURE_OPENAI_KEY=
46+
# EMBEDDING_MODEL_PREF='my-embedder-model' # This is the "deployment" on Azure you want to use for embeddings. Not the base model. Valid base model is text-embedding-ada-002
47+
48+
# EMBEDDING_ENGINE='ollama'
49+
# EMBEDDING_BASE_PATH='http://host.docker.internal:11434'
50+
# EMBEDDING_MODEL_PREF='nomic-embed-text:latest'
51+
# EMBEDDING_MODEL_MAX_CHUNK_LENGTH=8192
52+
53+
# EMBEDDING_ENGINE='bedrock'
54+
# AWS_BEDROCK_EMBEDDING_ACCESS_KEY_ID=
55+
# AWS_BEDROCK_EMBEDDING_ACCESS_KEY=
56+
# AWS_BEDROCK_EMBEDDING_REGION=us-west-2
57+
# AWS_BEDROCK_EMBEDDING_MODEL_PREF=amazon.embedding-embedding-ada-002:0
58+
59+
# EMBEDDING_ENGINE='gemini'
60+
# GEMINI_EMBEDDING_API_KEY=
61+
# EMBEDDING_MODEL_PREF='text-embedding-004'
62+
63+
# EMBEDDING_ENGINE='huggingface'
64+
# HUGGING_FACE_EMBEDDING_REPO_ID=
65+
# HUGGING_FACE_EMBEDDING_MODEL=
66+
# HUGGING_FACE_EMBEDDING_API_TOKEN=

pyproject.toml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
[tool.black]
2+
line-length = 88
3+
target-version = ['py311']
4+
include = '\.pyi?$'
5+
exclude = '''
6+
(
7+
/(
8+
\.git
9+
| \.venv
10+
| build
11+
| dist
12+
)/
13+
)
14+
'''
15+
16+
[tool.poetry.group.dev.dependencies]
17+
pytest = "^8.3.5"
18+
19+
[project]
20+
name = "lang2sql"
21+
version = "0.1.9"
22+
description = ""
23+
authors = [
24+
{name = "Yoonjin Hwang",email = "[email protected]"}
25+
]
26+
readme = "README.md"
27+
requires-python = ">=3.11, <4.0"
28+
dependencies = [
29+
"langgraph (==0.2.62)",
30+
"datahub (==0.999.1)",
31+
"langchain (==0.3.14)",
32+
"langchain-community (==0.3.14)",
33+
"openai (==1.59.8)",
34+
"langchain-openai (==0.3.0)",
35+
"streamlit (==1.41.1)",
36+
"python-dotenv (==1.0.1)",
37+
"faiss-cpu (==1.10.0)",
38+
"pre-commit (==4.1.0)",
39+
"setuptools (>=78.1.1,<79.0.0)",
40+
"wheel (>=0.45.1,<0.46.0)",
41+
"twine (>=6.1.0,<7.0.0)",
42+
"langchain-aws (>=0.2.21,<0.3.0)",
43+
"langchain-google-genai (>=2.1.3,<3.0.0)",
44+
"langchain-ollama (>=0.3.2,<0.4.0)",
45+
"langchain-huggingface (>=0.1.2,<0.2.0)"
46+
]
47+
48+
49+
[build-system]
50+
requires = ["poetry-core>=2.0.0,<3.0.0"]
51+
build-backend = "poetry.core.masonry.api"

setup.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
import os
44
import glob
55

6-
with open("README.md", "r", encoding="utf-8") as fh:
6+
with open("docs/README.md", "r", encoding="utf-8") as fh:
77
long_description = fh.read()
88

99
# 프롬프트 파일들을 찾습니다
10-
prompt_files = glob.glob('prompt/*.md')
10+
prompt_files = glob.glob("prompt/*.md")
1111
prompt_files = [os.path.basename(f) for f in prompt_files]
1212

1313
setup(
@@ -19,13 +19,12 @@
1919
description="Lang2SQL - Query Generator for Data Warehouse",
2020
long_description=long_description,
2121
long_description_content_type="text/markdown",
22-
packages=find_packages() + ['prompt'], # prompt 패키지 직접 추가
22+
packages=find_packages(), # my_package를 자동으로 찾음
23+
packages=find_packages() + ["prompt"], # prompt 패키지 직접 추가
2324
package_data={
24-
'prompt': ['*.md', '*.py'], # prompt 디렉토리의 모든 .md 파일 포함
25+
"prompt": ["*.md", "*.py"], # prompt 디렉토리의 모든 .md 파일 포함
2526
},
26-
data_files=[
27-
('prompt', [os.path.join('prompt', f) for f in prompt_files])
28-
],
27+
data_files=[("prompt", [os.path.join("prompt", f) for f in prompt_files])],
2928
include_package_data=True,
3029
install_requires=[
3130
"langgraph==0.2.62",

0 commit comments

Comments
 (0)