mirror of
https://github.com/deepset-ai/haystack.git
synced 2026-01-05 11:38:20 +00:00
Remove useless line from Tutorial4_FAQ_style_QA (#416)
* Update Tutorial4_FAQ_style_QA.py Used to be useful when `.apply()` was necessary, but not any longer * Update Tutorial4_FAQ_style_QA.ipynb
This commit is contained in:
parent
8e044dc16f
commit
fb5db59590
@ -189,7 +189,6 @@
|
||||
"# Get embeddings for our questions from the FAQs\n",
|
||||
"questions = list(df[\"question\"].values)\n",
|
||||
"df[\"question_emb\"] = retriever.embed_queries(texts=questions)\n",
|
||||
"df[\"question_emb\"] = df[\"question_emb\"]\n",
|
||||
"df = df.rename(columns={\"answer\": \"text\"})\n",
|
||||
"\n",
|
||||
"# Convert Dataframe to list of dicts and index them in our DocumentStore\n",
|
||||
@ -251,4 +250,4 @@
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 2
|
||||
}
|
||||
}
|
||||
|
||||
@ -67,7 +67,6 @@ print(df.head())
|
||||
# Get embeddings for our questions from the FAQs
|
||||
questions = list(df["question"].values)
|
||||
df["question_emb"] = retriever.embed_queries(texts=questions)
|
||||
df["question_emb"] = df["question_emb"]
|
||||
df = df.rename(columns={"answer": "text"})
|
||||
|
||||
# Convert Dataframe to list of dicts and index them in our DocumentStore
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user