mirror of
https://github.com/deepset-ai/haystack.git
synced 2026-01-07 20:46:31 +00:00
Fix embedding method for Retriever (#220)
This commit is contained in:
parent
5023fde2be
commit
4c21556a79
@ -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",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user