Skip to content

armgit / txtai

Public Imported from GitHub
0

💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows

Update 03_Build_an_Embeddings_index_from_a_data_source.ipynb

csheargm39ded2f75b5b
diff --git a/examples/03_Build_an_Embeddings_index_from_a_data_source.ipynb b/examples/03_Build_an_Embeddings_index_from_a_data_source.ipynb
index c80427c6..f9058ebf 100644
--- a/examples/03_Build_an_Embeddings_index_from_a_data_source.ipynb
+++ b/examples/03_Build_an_Embeddings_index_from_a_data_source.ipynb
@@ -314,6 +314,14 @@
"df = pd.DataFrame(results, columns=[\"Title\", \"Published\", \"Reference\", \"Match\"])\n",
"\n",
"display(HTML(df.to_html(index=False)))"
+ #If this python script is run in vscode environment, the above line of code will not display the results.
+ #One option is to save the results in a local file data.html, and use the browser to open it to view the result.
+ #This method can be applied to all the other occurences of "display(HTML(df.to_html(index=False)))" in the rest of the example codes.
+ #Uncomment the following 4 lines of code if this is your situation:
+ #htmlData = df.to_html(index=False)
+ #with open("data.html", "w") as file:
+ # file.write(htmlData)
+ #print("done writing result to data.html.")
],
"execution_count": 5,
"outputs": [
@@ -532,4 +540,4 @@
]
}
]
-}
\ No newline at end of file
+}