Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

remove cruft #111

Merged
merged 1 commit into from
Oct 31, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions sciphi/interface/llm/sciphi_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ def get_completion(
prompt_with_context, generation_config
).strip()
completion += latest_completion
print("latest_completion = ", latest_completion)

if not completion.endswith(SciPhiFormatter.RETRIEVAL_TOKEN):
break
Expand All @@ -132,7 +131,6 @@ def get_completion(
else f"{SciPhiFormatter.remove_cruft(completion)}"
)
context = self.rag_interface.get_contexts([context_query])[0]
print("context = ", context)
completion += f"{SciPhiFormatter.INIT_PARAGRAPH_TOKEN}{context}{SciPhiFormatter.END_PARAGRAPH_TOKEN}"
return SciPhiFormatter.remove_cruft(completion)

Expand Down
Loading