Skip to content

Commit

Permalink
Fix embedding method for Retriever (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
tanaysoni authored Jul 13, 2020
1 parent 5023fde commit 4c21556
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tutorials/Tutorial4_FAQ_style_QA.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@
"\n",
"# Get embeddings for our questions from the FAQs\n",
"questions = list(df[\"question\"].values)\n",
"df[\"question_emb\"] = retriever.create_embedding(texts=questions)\n",
"df[\"question_emb\"] = retriever.embed_queries(texts=questions)\n",
"\n",
"# Convert Dataframe to list of dicts and index them in our DocumentStore\n",
"docs_to_index = df.to_dict(orient=\"records\")\n",
Expand Down

0 comments on commit 4c21556

Please sign in to comment.