Improvements to explanations and minor edits

This commit is contained in:
Edward Donner
2025-01-05 12:51:20 -05:00
parent 90f3fe774a
commit e334b841ca
16 changed files with 59 additions and 26 deletions

View File

@@ -180,7 +180,13 @@
"source": [
"# Put the chunks of data into a Vector Store that associates a Vector Embedding with each chunk\n",
"\n",
"embeddings = OpenAIEmbeddings()"
"embeddings = OpenAIEmbeddings()\n",
"\n",
"# If you would rather use the free Vector Embeddings from HuggingFace sentence-transformers\n",
"# Then replace embeddings = OpenAIEmbeddings()\n",
"# with:\n",
"# from langchain.embeddings import HuggingFaceEmbeddings\n",
"# embeddings = HuggingFaceEmbeddings(model_name=\"sentence-transformers/all-MiniLM-L6-v2\")"
]
},
{