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:
Guillim 2020-09-22 09:01:04 +02:00 committed by GitHub
parent 8e044dc16f
commit fb5db59590
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 3 deletions

View File

@ -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
}
}

View File

@ -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