Skip to content

Commit

Permalink
Fix #199
Browse files Browse the repository at this point in the history
  • Loading branch information
MaartenGr committed Jan 3, 2024
1 parent 6638d44 commit f97900c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keybert/llm/_langchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def extract_keywords(self, documents: List[str], candidate_keywords: List[List[s
if candidates is not None:
prompt = prompt.replace("[CANDIDATES]", ", ".join(candidates))
input_document = Document(page_content=document)
keywords = self.chain.run(input_documents=input_document, question=self.prompt).strip()
keywords = self.chain.run(input_documents=[input_document], question=self.prompt).strip()
keywords = [keyword.strip() for keyword in keywords.split(",")]
all_keywords.append(keywords)

Expand Down

0 comments on commit f97900c

Please sign in to comment.