Skip to content

Commit 46ac723

Browse files
renamed new_model to model
1 parent b799af1 commit 46ac723

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

detective_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from modules.new_model import Detective
1+
from modules.model import Detective
22

33
# question = "find last house on Franklin Ave"
44
question = "find house with the largest address number on Franklin Ave"

modules/new_model.py renamed to modules/model.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import json
2-
import re
32

43
from langchain.chains.sql_database.query import create_sql_query_chain
54
from langchain_core.output_parsers import StrOutputParser
@@ -111,7 +110,6 @@ def build_langchain(self):
111110
temperature=0,
112111
seed=1,
113112
model=MODEL,
114-
# num_predict=128, # Output tokens limit
115113
num_predict=512, # Output tokens limit
116114
top_p=0.95,
117115
format="json",

translator_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from modules.new_model import Translator
1+
from modules.model import Translator
22

33
response = Translator("find all murder cases from SQL City")
44
# response = Translator("Find who lives in the last house in Franklin Ave. Order house numbers")
@@ -12,3 +12,4 @@
1212
print((response.full_response))
1313
print("\nQuery:\n", response.sql_query)
1414
print("\nThinking:\n", response.thinking)
15+
# print("Prompt:\n", response.prompt())

0 commit comments

Comments
 (0)