Skip to content

Commit

Permalink
Disable streaming for condense prompts
Browse files Browse the repository at this point in the history
  • Loading branch information
bigadsoleiman committed Nov 7, 2023
1 parent 48f983f commit 45bd26f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def run_with_chain(self, user_prompt, workspace_id=None):
conversation = ConversationalRetrievalChain.from_llm(
self.llm,
WorkspaceRetriever(workspace_id=workspace_id),
condense_question_llm=self.get_llm(streaming=False),
condense_question_llm=self.get_llm({"streaming": False}),
condense_question_prompt=self.get_condense_question_prompt(),
combine_docs_chain_kwargs={"prompt": self.get_qa_prompt()},
return_source_documents=True,
Expand Down
1 change: 1 addition & 0 deletions lib/user-interface/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ export class UserInterface extends Construct {
});

new s3deploy.BucketDeployment(this, "UserInterfaceDeployment", {
prune: false,
sources: [asset, exportsAsset],
destinationBucket: websiteBucket,
distribution,
Expand Down

0 comments on commit 45bd26f

Please sign in to comment.