Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Merge branch 'main' into feat/summary-async-celery
  • Loading branch information
StanGirard committed May 21, 2024
commit 8eb4c4808a3e713753d565b279544b294ed84f9b
2 changes: 1 addition & 1 deletion backend/celery_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@
else:
raise ValueError(f"Unsupported broker URL: {CELERY_BROKER_URL}")

celery.autodiscover_tasks(["modules.assistant.ito"])
celery.autodiscover_tasks(["modules.sync", "modules","modules.assistant.ito", "middlewares", "packages"])
3 changes: 2 additions & 1 deletion backend/modules/assistant/ito/summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ async def process_assistant(self):


def map_reduce_chain():
llm = ChatLiteLLM(model="gpt-3.5-turbo", max_tokens=2000)
llm = ChatLiteLLM(model="gpt-4o", max_tokens=2000)

map_template = """The following is a document that has been divided into multiple sections:
{docs}
Expand Down Expand Up @@ -156,6 +156,7 @@ def map_reduce_chain():
reduce_prompt = PromptTemplate.from_template(reduce_template)

# Run chain
llm = ChatLiteLLM(model="gpt-4o", max_tokens=2000)
reduce_chain = LLMChain(llm=llm, prompt=reduce_prompt)

# Takes a list of documents, combines them into a single string, and passes this to an LLMChain
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.