Skip to content

Commit

Permalink
Update parallel_pipeline.py (#396)
Browse files Browse the repository at this point in the history
  • Loading branch information
tpoisonooo authored Oct 15, 2024
1 parent 9c98f42 commit e9f726b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions huixiangdou/service/parallel_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,6 @@ async def process(self, sess: Session) -> AsyncGenerator[Session, None]:

citation = CitationGeneratePrompt(self.language)
prompt = citation.build(texts=context_texts, question=question)
with open('citation_generate_prompt.txt', 'w') as f:
f.write(prompt)
f.flush()
async for part in self.llm.chat_stream(prompt=prompt, history=history):
sess.delta = part
yield sess
Expand Down

0 comments on commit e9f726b

Please sign in to comment.