Skip to content

Commit

Permalink
fix: summarize llm_model
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Gerard committed Jul 8, 2023
1 parent 852144d commit 35d0690
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def test(document: Document):
print("found summary in db")
return {"summary": indexed_summaries[2], "summary_list": indexed_summaries[3]}
# get model
llm_model = db.execute(text("SELECT * FROM config ORDER BY id DESC LIMIT 1")).first()[2]
llm_model = db.execute(text("SELECT * FROM config ORDER BY id DESC LIMIT 1")).first()[3]
s = Summarize(document=document, model=llm_model)
summary = s.get_summary()
entry = Summary(file_name=document.document, summary=summary.get('summary'),
Expand Down

0 comments on commit 35d0690

Please sign in to comment.