File tree 3 files changed +3
-4
lines changed 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
- from modules .new_model import Detective
1
+ from modules .model import Detective
2
2
3
3
# question = "find last house on Franklin Ave"
4
4
question = "find house with the largest address number on Franklin Ave"
Original file line number Diff line number Diff line change 1
1
import json
2
- import re
3
2
4
3
from langchain .chains .sql_database .query import create_sql_query_chain
5
4
from langchain_core .output_parsers import StrOutputParser
@@ -111,7 +110,6 @@ def build_langchain(self):
111
110
temperature = 0 ,
112
111
seed = 1 ,
113
112
model = MODEL ,
114
- # num_predict=128, # Output tokens limit
115
113
num_predict = 512 , # Output tokens limit
116
114
top_p = 0.95 ,
117
115
format = "json" ,
Original file line number Diff line number Diff line change 1
- from modules .new_model import Translator
1
+ from modules .model import Translator
2
2
3
3
response = Translator ("find all murder cases from SQL City" )
4
4
# response = Translator("Find who lives in the last house in Franklin Ave. Order house numbers")
12
12
print ((response .full_response ))
13
13
print ("\n Query:\n " , response .sql_query )
14
14
print ("\n Thinking:\n " , response .thinking )
15
+ # print("Prompt:\n", response.prompt())
You can’t perform that action at this time.
0 commit comments