Skip to content

Commit

Permalink
Remove console prints
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianloose committed Nov 11, 2024
1 parent 7e0fd5f commit 2d0df40
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions app/llm/request_handler/basic_request_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ class BasicRequestHandler(RequestHandler):
def __init__(self, model_id: str):
self.model_id = model_id
self.llm_manager = LlmManager()
print("llm manager" + str(self.llm_manager.entries))

def complete(
self,
Expand All @@ -33,5 +32,4 @@ def chat(

def embed(self, text: str) -> list[float]:
llm = self.llm_manager.get_llm_by_id(self.model_id)
print("llm uiuiu" + str(llm))
return llm.embed(text)
1 change: 0 additions & 1 deletion app/pipeline/chat/lecture_chat_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ def __call__(self, dto: LectureChatPipelineExecutionDTO):
prompt_val = self.prompt.format_messages()
self.prompt = ChatPromptTemplate.from_messages(prompt_val)
try:
# self.callback.in_progress()
response = (self.prompt | self.pipeline).invoke({})
self._append_tokens(self.llm.tokens, PipelineEnum.IRIS_CHAT_LECTURE_MESSAGE)
response_with_citation = self.citation_pipeline(
Expand Down
4 changes: 0 additions & 4 deletions app/retrieval/lecture_retrieval.py
Original file line number Diff line number Diff line change
Expand Up @@ -512,10 +512,6 @@ def fetch_course_language(self, course_id):
"""
course_language = "english"

print(self.collection)
print(self.llm_embedding)
print(self.collection.query)

if course_id:
# Fetch the first object that matches the course ID with the language property
result = self.collection.query.fetch_objects(
Expand Down
1 change: 0 additions & 1 deletion app/web/status/status_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ def __init__(
def on_status_update(self):
"""Send a status update to the Artemis API."""
try:
print(self.url)
print(self.status.dict(by_alias=True))
requests.post(
self.url,
Expand Down

0 comments on commit 2d0df40

Please sign in to comment.